Commit Graph

106 Commits

Author SHA1 Message Date
Ben V. Brown
dbd3d3f95a Merge branch 'master' into font-reorganize 2021-04-17 09:38:49 +10:00
Alvin Wong
fadb25273e Impl. font compression demo 2021-04-17 05:18:19 +08:00
Alvin Wong
6f4f4d9733 Move string compression to Python
... so that the script can know its uncompressed size and calculate the
appropriate buffer size.
2021-04-16 17:55:30 +08:00
discip
b03343886e Merge branch 'master' into patch-2 2021-04-15 18:11:44 +02:00
Alvin Wong
90426b2b22 Change TranslationEditor to handle fonts spec 2021-04-15 14:32:09 +08:00
Alvin Wong
cf154114d7 Change translation defs to specify fonts to use 2021-04-15 14:32:09 +08:00
Alvin Wong
9f179f2371 Make BitmapEditor work with hex escape literals 2021-04-15 14:32:09 +08:00
Alvin Wong
e601b762b0 Change font table in Python to use bytes literals 2021-04-15 14:32:09 +08:00
Alvin Wong
4f28b3d48a Split font tables into sections 2021-04-15 14:32:09 +08:00
discip
64fdf0b7ec Update translation_EN.json 2021-04-15 03:31:57 +02:00
discip
d1d6ce5403 Update translation_DE.json 2021-04-15 03:19:45 +02:00
Ben V. Brown
17913573bd Merge branch 'master' into master 2021-04-13 21:43:08 +10:00
Pauli Jokela
f11a70ab2b Updated Finnish translation 2021-04-13 14:14:47 +03:00
Alvin Wong
4a6b55c52c Merge branch 'master' into string-compression 2021-04-13 18:31:16 +08:00
Alvin Wong
460d48fafb Reduce code duplication 2021-04-13 18:30:27 +08:00
Ben V. Brown
022879babd Merge pull request #924 from alvinhochun/lang-jp
Add Japanese translation
2021-04-13 08:24:11 +10:00
Alvin Wong
545349da1b Update Chinese translations 2021-04-12 21:41:52 +08:00
Alvin Wong
07fb8adb7f Impl. initial translation strings compression 2021-04-12 19:57:29 +08:00
Alvin Wong
2f2575c0b7 Refactor make_translation.py to split parsing and writing 2021-04-12 17:20:19 +08:00
skishida
df1507f761 Update translation_JA_JP.json
updating subtle expression
2021-04-12 00:57:11 +09:00
skishida
e774ff6e15 Update translation_JA_JP.json
Translation in `LockingMode` has been fixed.
other is just updating nuance
2021-04-12 00:40:58 +09:00
skishida
b16afb90f4 Update translation_JA_JP.json 2021-04-11 20:48:36 +09:00
Alvin Wong
570fa16d44 Some refactoring of make_translation.py 2021-04-11 00:05:06 +08:00
Alvin Wong
d53245f8a3 Simplify some Python code 2021-04-10 19:40:33 +08:00
Alvin Wong
f86629657a Fix python type hints
(Checked using mypy)
2021-04-10 02:24:25 +08:00
Alvin Wong
b17e49f54f Do suffix merging for translations
The size savings are very negligible but I implemented it anyway.
2021-04-10 00:44:48 +08:00
Alvin Wong
4061a35b6f Refactor make_translation bytes escaping
- Change font table to store bytes instead of escape sequences
- Add function to convert bytes to escape sequences
- Update tests
2021-04-09 23:04:38 +08:00
Alvin Wong
880920da96 Change TranslationStrings to pointer 2021-04-09 22:22:19 +08:00
Alvin Wong
7d6d7d11c0 Put translation str indices into a struct 2021-04-09 17:20:24 +08:00
Alvin Wong
82620c685d Change translation strs to be stored in one block 2021-04-09 14:45:33 +08:00
Alvin Wong
4810a67e2e Remove unused translation strings 2021-04-09 00:46:10 +08:00
federicodilo
6120057e81 Small update in italian translation 2021-04-08 12:54:49 +02:00
Alvin Wong
dbcd093c77 Add Japanese translation 2021-04-07 18:46:22 +08:00
Ben V. Brown
0cd6382c02 Merge pull request #923 from alvinhochun/zh_cn
Add ZH_CN translation
2021-04-07 19:37:17 +10:00
Alvin Wong
2d33708e9e Add ZH_CN translation 2021-04-07 16:09:03 +08:00
Ziuta
51ad1762e4 Shortcut 2021-04-06 17:19:21 +02:00
Ziuta
5ee81f9fbd Update PL translation 2021-04-06 16:57:26 +02:00
Ben V. Brown
d9100d1625 add black 2021-04-05 19:15:02 +10:00
Alvin Wong
87c0cc162c Fix empty str in NO translation with old text 2021-04-05 16:40:36 +08:00
Alvin Wong
dd1801925b Change menu text to use whole screen msg format 2021-04-05 16:40:36 +08:00
Alvin Wong
ab1b48a0f2 Change ResetOKMessage to use warnUser 2021-04-05 16:40:36 +08:00
Alvin Wong
33901b688a Change warnUser to use printWholeScreen 2021-04-05 16:40:36 +08:00
Alvin Wong
e01361ddde Add messageWarn translation definition type 2021-04-05 16:40:31 +08:00
Alvin Wong
55fa5c95e4 Change SettingsShortNames to use one string
This unifies its behaviour with SettingsMenuEntries.
2021-04-05 15:48:06 +08:00
Ryan Jarvis
513728a1d1 Cleanup make_translation.py (PEP8, Python3, etc.) 2021-04-03 17:19:36 -07:00
Alvin Wong
80b86ea083 Remove unused menu strings 2021-03-29 03:26:39 +08:00
Alvin Wong
c549c77aaf Refactor: Use enum to index settings descriptions 2021-03-24 23:58:45 +08:00
Alvin Wong
337b48df5b Remove em-dash from strings 2021-03-21 18:44:43 +08:00
Alvin Wong
f1d4ec007e Reorganize font table of CJK languages
Move all CJK symbols to the end of the font table so we can skip the
filler for the CJK symbols in the small font table to save space.
2021-03-21 18:15:58 +08:00
Ben V. Brown
6eaacfa4a8 Merge branch 'master' into update-ci 2021-03-21 21:01:18 +11:00