Lagrange [work/v1.10]

Updated language strings

=> 218000e5558db83514cb041de80d2f1af006f6c5

diff --git a/po/compile.py b/po/compile.py
index af0e422b..adf5a403 100755
--- a/po/compile.py
+++ b/po/compile.py
@@ -35,6 +35,9 @@ ESCAPES = {
     't': '\t',
     'v': '\v',
 }
+missing_count = {}
+for lang in BUILD_LANGS:
+    missing_count[lang] = 0
 
 if '--new' in sys.argv:
     MODE = 'new'
@@ -122,6 +125,7 @@ if MODE == 'compile':
     for src in os.listdir('.'):
         if src.endswith('.po') and src.split('.')[0] in BUILD_LANGS:
             # Make a binary blob with strings sorted by ID.
+            lang_id = src[:-3]
             have_ids = set()
             compiled = bytes()
             lang = parse_po(src)
@@ -130,11 +134,16 @@ if MODE == 'compile':
             # Take missing strings from the base language.
             for msg_id in BASE_STRINGS:
                 if msg_id not in have_ids and not msg_id[:-2] in PLURALS:
-                    print('%10s' % src, 'missing:', msg_id)
+                    #print('%10s' % src, 'missing:', msg_id)
+                    missing_count[lang_id] += 1
                     lang.append((msg_id, BASE_STRINGS[msg_id]))
             for msg_id, msg_str in sorted(lang):
                 compiled += compile_string(msg_id, msg_str)
-            open(f'../res/lang/{src[:-3]}.bin', 'wb').write(compiled)
+            open(f'../res/lang/{lang_id}.bin', 'wb').write(compiled)
+    # Show statistics.
+    for lang_id in missing_count:
+        if missing_count[lang_id] > 0:
+            print('%7s: %4d missing' % (lang_id, missing_count[lang_id]))
 
 elif MODE == 'new':
     messages = parse_po('en.po')
diff --git a/res/lang/ru.bin b/res/lang/ru.bin
index ae868a8b..4febb613 100644
Binary files a/res/lang/ru.bin and b/res/lang/ru.bin differ
diff --git a/res/lang/tok.bin b/res/lang/tok.bin
index 3e511a6f..9e36f8b0 100644
Binary files a/res/lang/tok.bin and b/res/lang/tok.bin differ
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.10/cdiff/218000e5558db83514cb041de80d2f1af006f6c5
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
56.208927 milliseconds
Gemini-to-HTML Time
0.203246 milliseconds

This content has been proxied by September (ba2dc).