From d946aa470ff504c3689797a53b52b88362d7f93e Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 30 Mar 2016 13:06:18 -0500 Subject: Add language_helper.py This script is intended to make managing the language files a little easier. This script reads the English and supplied other language files and compares the 2 and reorders and rewrites the other language to a new XML file such that all the strings are placed in the same order as the English file. It will place commented out string lines for items that are not present in the new file and will not include any strings in the new file that are no longer present in the English source. There is also a version tag that may be compared if present between the English and other language in case a translation string changes. Change-Id: If49d7efbf99c033d9736af971a78ed8455ac5c6f --- scripts/README | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts/README') diff --git a/scripts/README b/scripts/README index ff8b36621..0191d8ffa 100644 --- a/scripts/README +++ b/scripts/README @@ -25,3 +25,17 @@ Usage: python compare_xml.py -o target.xml + + +language_helper.py + +This script reads the English and supplied other language files and +compares the 2 and reorders and rewrites the other language to a new +XML file such that all the strings are placed in the same order as +the English file. It will place commented out string lines for items +that are not present in the new file and will not include any strings +in the new file that are no longer present in the English source. +There is also a version tag that may be compared if present between +the English and other language in case a translation string changes. + +python language_helper.py -o ../gui/theme/common/languages/es.xml -- cgit v1.2.3