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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -