I wrote a script that excludes a specific translation.
How it works?
cmd string: python strip_loc.py input .xliff output .xliff exclude_list .txt [-v]
Using an example:
python strip_loc.py en.xliff en-stripped.xliff exclude_words.txt -v
The exclude_list.txt file is a file with a line in line. The script parses this list and creates a dictionary of forbidden words. If a translation is found with a source containing one of these lines, the entire translation unit is deleted from the output xml / xliff file.
source share