diff options
Diffstat (limited to 'sync_translations.py')
| -rw-r--r-- | sync_translations.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sync_translations.py b/sync_translations.py index fe76623..3d0ab7d 100644 --- a/sync_translations.py +++ b/sync_translations.py @@ -1,5 +1,5 @@ import xml.etree.ElementTree as ET -import glob, os +import glob, os, sys # Edit every strings.xml files: # - Add missing translation as comments @@ -87,6 +87,10 @@ def sync_metadata(value_dir, strings): sync_meta_file("short_description.txt", ("short_description", None)) sync_meta_file("full_description.txt", ("store_description", None)) +if len(sys.argv) < 2 or sys.argv[1] != "sync": + print("Syncing of translation files is no longer needed. Run with 'sync_translation.py sync' to do it anyway.") + exit(1) + baseline = parse_strings_file("res/values/strings.xml") for value_dir in glob.glob("res/values-*"): |
