From 00d7d882712b28118386a53075e77a4ccd2dfe16 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sat, 16 Aug 2025 18:55:26 +0200 Subject: gradle: Disable sync_translations (#1076) The diffs created by sync_translations.py creates conflicts with the changes made on Weblate. It is disable to make merging translations from Weblate easier.--- sync_translations.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sync_translations.py') 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-*"): -- cgit v1.2.3