Isaiah Odhner
1c7f7015cb
Fix unlocalized buttons
2023-04-24 20:28:57 -04:00
Isaiah Odhner
ac6f9cf2a6
Comment / add docstrings to hotkey handling code
2023-04-24 14:46:14 -04:00
Isaiah Odhner
505605c660
Add typing to preprocess.py script that I'm not using
...
ChatGPT did most of this for me. I just said "Please add type annotations to this code. Surround the code in a Markdown code block."
and then fixed the Generator and the lambda.
2023-04-22 21:53:51 -04:00
Isaiah Odhner
11f3319ced
Complete type checking of file I'm not even using
2023-04-22 21:18:05 -04:00
Isaiah Odhner
9f06373cb7
Add a bunch more type checking hints/assertions
2023-04-22 20:51:51 -04:00
Isaiah Odhner
4f8ea8a93d
Strictly type check i18n.py
2023-04-22 17:45:04 -04:00
Isaiah Odhner
91dd804f4a
Fix type annotation for interpolations
(*varargs gives a tuple)
2023-04-22 14:24:49 -04:00
Isaiah Odhner
adcaed47cd
Handle base language (English) better
...
- Don't log an error about a missing language file at startup.
- Don't append to untranslated.txt for strings that don't need
translation because they're already in the target language.
I could use an early return for this too, but it's not important.
2023-04-19 02:59:48 -04:00
Isaiah Odhner
0ee058216e
Position submenu
2023-04-19 00:09:40 -04:00
Isaiah Odhner
4cbafea3cb
Show accelerators/shortcuts in menus
2023-04-18 23:34:05 -04:00
Isaiah Odhner
ac8c3819cf
Some things aren't translated yet
2023-04-18 18:55:45 -04:00
Isaiah Odhner
c5f7c9f387
Rename "Rectangular Select" to "Select" to match MS Paint and for localization
2023-04-18 18:55:45 -04:00
Isaiah Odhner
40d8662801
Track untranslated strings
2023-04-18 18:55:45 -04:00
Isaiah Odhner
973f67240d
WIP: i18n
...
Giving up on the python translation of the RC file parsing and pre-processing for now, in favor of simply parsing the JS files already generated, which is a much simpler task.
2023-04-18 03:31:47 -04:00
Isaiah Odhner
df1ddcc318
Don't escape Unicode characters so much...
2023-04-18 02:32:47 -04:00
Isaiah Odhner
b480d5a0b2
Add leniency like JS has...
2023-04-18 02:23:35 -04:00
Isaiah Odhner
160beeb6ce
Disable code for updating index.html
2023-04-18 02:23:03 -04:00
Isaiah Odhner
2e4d6e9c16
Fix several errors in JS->Python translation
2023-04-18 02:17:53 -04:00
Isaiah Odhner
c05bf1200d
Fix SyntaxError: f-string expression part cannot include a backslash
...
and one about the quotes
2023-04-18 01:52:54 -04:00
Isaiah Odhner
7192a0a0b5
Add some, but not many, of the comments omitted during translation to Python
2023-04-18 01:19:20 -04:00
Isaiah Odhner
6a943389be
Convert localization JavaScript code to Python using ChatGPT
2023-04-18 00:37:48 -04:00
Isaiah Odhner
ab690e8f5c
Add localization folder from JS Paint
...
This folder was last updated at this commit:
4a9163fb6d
2023-04-18 00:30:05 -04:00