[Scummvm-git-logs] scummvm master -> 08843c55549ec9937434f1fa5fc8a7aa5bc6a041
lephilousophe
noreply at scummvm.org
Wed May 28 20:04:28 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
08843c5554 ANDROID: Don't use fuzzy strings for Android translations
Commit: 08843c55549ec9937434f1fa5fc8a7aa5bc6a041
https://github.com/scummvm/scummvm/commit/08843c55549ec9937434f1fa5fc8a7aa5bc6a041
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-05-28T22:04:00+02:00
Commit Message:
ANDROID: Don't use fuzzy strings for Android translations
ScummVM translations also do that.
Also terminate XML files with a newline.
Changed paths:
devtools/generate-android-i18n-strings.py
diff --git a/devtools/generate-android-i18n-strings.py b/devtools/generate-android-i18n-strings.py
index 94d2917a4d5..427a2ac6592 100755
--- a/devtools/generate-android-i18n-strings.py
+++ b/devtools/generate-android-i18n-strings.py
@@ -61,7 +61,7 @@ def extract_translations(file):
po_file = polib.pofile(os.path.join(BASE_PATH, 'po', file + '.po'))
translations = {}
for entry in po_file:
- if entry.msgid and entry.msgstr:
+ if entry.msgid and entry.msgstr and not entry.fuzzy:
translations[entry.msgid] = entry.msgstr
return translations
@@ -124,7 +124,9 @@ def generate_translated_xml(file):
if not os.path.exists(dir):
os.makedirs(dir)
- tree.write(os.path.join(dir, 'strings.xml'), encoding='utf-8', xml_declaration=True)
+ with open(os.path.join(dir, 'strings.xml'), 'wb') as f:
+ tree.write(f, encoding='utf-8', xml_declaration=True)
+ f.write(b'\n')
def get_po_files():
More information about the Scummvm-git-logs
mailing list