[1mdiff --git a/po/compile.py b/po/compile.py[m
[1mindex af0e422b..adf5a403 100755[m
[1m--- a/po/compile.py[m
[1m+++ b/po/compile.py[m
[36m@@ -35,6 +35,9 @@[m [mESCAPES = {[m
't': '\t',[m
'v': '\v',[m
}[m
[32m+[m[32mmissing_count = {}[m
[32m+[m[32mfor lang in BUILD_LANGS:[m
[32m+[m[32m missing_count[lang] = 0[m
[m
if '--new' in sys.argv:[m
MODE = 'new'[m
[36m@@ -122,6 +125,7 @@[m [mif MODE == 'compile':[m
for src in os.listdir('.'):[m
if src.endswith('.po') and src.split('.')[0] in BUILD_LANGS:[m
# Make a binary blob with strings sorted by ID.[m
[32m+[m[32m lang_id = src[:-3][m
have_ids = set()[m
compiled = bytes()[m
lang = parse_po(src)[m
[36m@@ -130,11 +134,16 @@[m [mif MODE == 'compile':[m
# Take missing strings from the base language.[m
for msg_id in BASE_STRINGS:[m
if msg_id not in have_ids and not msg_id[:-2] in PLURALS:[m
[31m- print('%10s' % src, 'missing:', msg_id)[m
[32m+[m[32m #print('%10s' % src, 'missing:', msg_id)[m
[32m+[m[32m missing_count[lang_id] += 1[m
lang.append((msg_id, BASE_STRINGS[msg_id]))[m
for msg_id, msg_str in sorted(lang):[m
compiled += compile_string(msg_id, msg_str)[m
[31m- open(f'../res/lang/{src[:-3]}.bin', 'wb').write(compiled)[m
[32m+[m[32m open(f'../res/lang/{lang_id}.bin', 'wb').write(compiled)[m
[32m+[m[32m # Show statistics.[m
[32m+[m[32m for lang_id in missing_count:[m
[32m+[m[32m if missing_count[lang_id] > 0:[m
[32m+[m[32m print('%7s: %4d missing' % (lang_id, missing_count[lang_id]))[m
[m
elif MODE == 'new':[m
messages = parse_po('en.po')[m
[1mdiff --git a/res/lang/ru.bin b/res/lang/ru.bin[m
[1mindex ae868a8b..4febb613 100644[m
Binary files a/res/lang/ru.bin and b/res/lang/ru.bin differ
[1mdiff --git a/res/lang/tok.bin b/res/lang/tok.bin[m
[1mindex 3e511a6f..9e36f8b0 100644[m
Binary files a/res/lang/tok.bin and b/res/lang/tok.bin differ
text/plain
This content has been proxied by September (ba2dc).