scripting - When exporting XLIFF from Xcode, how to exclude dummy strings? -
i'm using xcode's editor > export localization...
export xliff file translation translations main.storyboard includes lot of unnecessary strings, placeholders/dummies useful @ design time.
how exclude such strings xliff file?
i've written script excludes translation.
how works?
cmd-line: python strip_loc.py input.xliff output.xliff exclude_list.txt [-v]
example usage:python strip_loc.py en.xliff en-stripped.xliff exclude_words.txt -v
exclude_list.txt file string per line. script parses list , creates dictionary of banned words. if translation source containing 1 of these strings encountered, whole translation unit removed output xml/xliff.
Comments
Post a Comment