Robert Müller
fd4f61e601
Fix performance regression in copy_fix.py
2024-05-19 19:47:12 +02:00
Robert Müller
e341c56c35
Fix possibly-used-before-assignment
in copy_fix.py
...
Always initialize the variables `local` and `supported` instead of initializing them conditionally, to fix the false-positive `possibly-used-before-assignment` pylint detection.
Closes #8369 .
2024-05-16 20:46:14 +02:00
Robert Müller
cddbc78592
Add RFC 3066 language tags to language index
...
Add RFC 3066 language tags to language index in order to identify the language to select when first starting the game based on the user's locale.
Multiple language tags can be specified per entry separated with a semicolon, as some languages have different tags that do not share a unique prefix (e.g., Simplified and Traditional Chinese).
2023-03-21 21:17:40 +01:00
Dennis Felsing
5ee7ffa33f
Fix twlang decode to handle context lines properly
...
Context line is always one line above. If we don't do this we end up
with empty [Graphics] context lines in the translation files.
2023-02-25 10:40:33 +01:00
Jupeyy
dff876d58c
Add Localizable hint
2022-12-13 17:53:32 +01:00
Rafael Fontenelle
cd14660307
Fix misspellings
2022-10-25 13:51:56 -03:00
def
7379a64004
[WIP] Require Python 3.6 (f-strings) and fix pylints
...
So far only done scripts directory, will do the rest if this is
considered good
2022-07-27 09:37:24 +02:00
def
13a8dfa307
Add pylint
...
and fix occurences
2020-12-09 10:40:28 +01:00
def
5b24e95b29
Check translations in github, check formatting strings, fix
2020-11-12 08:57:20 +01:00
def
3daa798639
Implement script/languages support for contexts
2020-09-15 10:30:49 +02:00
def
59cf78be24
Always recreate the language files in same order
...
Alphabetically as the files are located in directory structure.
Keeps the language files more stable
2020-06-30 21:38:14 +02:00
def
2d581e0612
copy_fix: Don't generate comment line, just add missing translations at the end
2020-06-26 23:28:44 +02:00
def
2d6e56fec8
Translation fixes
...
- Code didn't work with newlines, get rid of them
- Some stylistic improvements
2020-06-26 18:34:50 +02:00
def
f925822c5e
Add instructions for translation stats
2020-06-25 22:12:35 +02:00
def
31ae4c4d5a
use pid in file names of temporary files
...
to prevent race conditions with multiple clients running when saving
maps, config on quit, during upgrade
2020-02-12 23:14:30 +01:00
Dennis Felsing
0498df2508
Update localizations (Thanks to Cellegen for report)
...
- Remove duplicate laser entries
- Update menus_settings.cpp comment for scripts
- Update instructions for scripts
- Run script to get updated localizations
2019-12-02 09:09:01 +01:00
heinrich5991
41d0f86b12
Use __file__
instead of sys.argv[0]
...
Thanks to @bojidar-bg for the hint.
2018-07-25 09:17:10 +02:00
heinrich5991
945ea1cf28
Make language scripts callable from anywhere
2018-07-25 09:17:09 +02:00
heinrich5991
3a8cc43e13
Move language scripts to scripts/
2018-07-25 00:34:02 +02:00