From 218000e5558db83514cb041de80d2f1af006f6c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sat, 6 Nov 2021 11:44:24 +0200
Subject: [PATCH 1/1] Updated language strings
Cleaned up output of the string compilation script.
po/compile.py | 13 +++++++++++--
res/lang/ru.bin | Bin 43872 -> 43848 bytes
res/lang/tok.bin | Bin 26592 -> 26584 bytes
3 files changed, 11 insertions(+), 2 deletions(-)
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:
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)
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 ae868a8b5440f5f0325cfc6a86715d753a073eea..4febb61380a53345af01a020b55c758853664a52 100644
GIT binary patch
delta 214
zcmaEGjp@WSrVVC{lg$|`CU0P@+N{m=oNKZ$ujAxUUgym-c{eyt_VSOOyv#qEt5o5_
z?h9Kl?7i4DxiMH|vO<9FWWNC8$xQqo3{mglA63S+hX#gY>Um(Ig%<8KbvY
C!V
zViQANX|7&UWl3tWo*{$kWWNbglQSpC02N$p0V%k!8>}ELGY6_*K2X7~2{L9t1sxX~
hF6_A20yQHoKd%IA2C~eB4G`^MIU@$u&HNJsr2x3pTx<XU
delta 242
zcmX?cjp@NPrVVC{j8&7(7%PC}I>su-s?8cq&$)mceqKi)8Nlld6q?Mt0mO0kj|P(S
zz~oPVZy?(xz!*rDgUHRR0zOFrIdiftfaDbrxtS+NQbnq&RN=zL3mY!%yx7E$SDLGr
zR9TW*tY^reS~b~rf|NOu^o4yFHi4C-W##~t7yy-&DqL&<>AkQUNdm05dxDf4k~BhZ
YeqISg@8p9MKn}V+K?dlQ?-K&003+yRL;wH)
diff --git a/res/lang/tok.bin b/res/lang/tok.bin
index 3e511a6fa8ca1ca470072d26172e1c8f74fc4979..9e36f8b058acfed57be861952ce026a7ca0896c7 100644
GIT binary patch
delta 79
zcmaEGp7F+c#t9ELK1^rZ?8&}KY4RUUyUo^GWkQ=b+2~7Xl``a&=IW(o=A;(u88BpK
d<twN{h4S-CKtjctC8;^7c?znV`9d!V0RSCo9pC@}
delta 88
zcmca{p7FtX#t9D?t2RDJXJf3|?9RSPiLq+(Pfa@@$6TvS2uQ89(U%adDrLwk&DBfG
l%t<ZQGhoQf%2!aWn2UQoEs{WkzZOg)UXOvr6a|ApitsAgcfX
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).