Commit Graph

923 Commits

Author SHA1 Message Date
Guðni Már Gilbert 0dbae6b609 Remove MSG_BTN_MORE from translation files 2023-03-19 16:52:40 +00:00
3d-gussner 8b49d241d2 revert BTN_MORE non-translated 2023-03-15 07:03:41 +01:00
3d-gussner 731ea14bd8 Fix Swedish translation
Thanks to @jmd73
2023-03-14 11:21:46 +01:00
3d-gussner ce1c059ade update pot and po files 2023-03-14 09:04:07 +01:00
3d-gussner e951a106d6 Messages fit to pages 2023-03-14 08:56:46 +01:00
3d-gussner 3db8233e4d Consistant wording `Tuit` 2023-03-14 08:32:35 +01:00
3d-gussner 8604c93ccc Shorten messages as users will contact support anyway 2023-03-14 08:32:16 +01:00
3d-gussner 4c5948d048 Update Solvak translation
Thanks to @ingbrzy
2023-03-14 08:32:01 +01:00
3d-gussner a5146bc2e3 Fix 2 Swedish 2023-03-14 08:31:46 +01:00
3d-gussner b2cf8fb874 Fix Swedish
Thanks @Painkiller56 for review
2023-03-14 08:31:34 +01:00
3d-gussner 0cd807faf1 Fix Firmware_cs.po 2023-03-14 08:30:55 +01:00
3d-gussner 79a2bbf86b Translate missing messages part y 2023-03-14 08:30:41 +01:00
3d-gussner 5582fbf71e Translate missing messages part x 2023-03-14 08:30:27 +01:00
3d-gussner 22e70faa71 Remove `MMU2` and `MMU unit` messages
Saves 26byte of flash
Saves -368 byte in trasnlations
2023-03-14 08:30:15 +01:00
3d-gussner 7676df88a4 Rename forgotten `MMU2` message to `MMU` 2023-03-14 08:30:03 +01:00
3d-gussner 61f89246e8 Fix build too long translation 2023-03-14 08:27:45 +01:00
3d-gussner 588985b7f1 more missing translations 2023-03-14 08:27:25 +01:00
3d-gussner 235c4ae943 Do not `MSG_BTN_MORE` translate 2023-03-14 08:26:39 +01:00
3d-gussner b9a20d0678 Update translations part 2 2023-03-14 08:25:44 +01:00
3d-gussner 97a969c495 Add missing translations
Part 1
2023-03-14 08:25:22 +01:00
3d-gussner 9721a87ef2 Raname `MMU2` message to `MMU` as everywhere 2023-03-14 08:24:50 +01:00
3d-gussner 03778226ca Remove `Select Extruder:` message
Post fix PR4064 for update.po*.py scripts
2023-03-14 08:24:12 +01:00
3d-gussner 93598ef00d Change some messages to be max three rows instead of two
Yes|No are now located at the 4th row and so messages can
use three rows. This should allow improvement in some translations.
2023-03-14 08:23:40 +01:00
3d-gussner 1ea85f0453 Shorten translations 2023-03-14 08:21:48 +01:00
3d-gussner 31bfbb4ed0
Merge pull request #4023 from DRracer/rename-eject-mmu
PFW-1497 Change Eject filament -> Eject from MMU
2023-02-23 10:48:35 +01:00
3d-gussner e6c3130ef3
Update SK po file
Thanks to @ingbrzy see https://github.com/prusa3d/Prusa-Firmware/pull/4023#issuecomment-1436084153
2023-02-21 07:24:21 +01:00
3d-gussner 792a39c416
Merge pull request #3754 from gudnimg/languages-gudni
Update language script to run on Windows
2023-02-20 19:10:50 +01:00
gudnimg 940f5b7214 Add executable permission for update-po.py and update-pot.py on Linux 2023-02-20 17:53:41 +00:00
D.R.racer 1283c2c216 Reformat to fit to 4 lines 2023-02-18 21:15:55 +01:00
Snakzi 82d9819af3 Fix grammatical errors 2023-02-18 21:15:55 +01:00
D.R.racer fe71fa77a6 Update NO translation 2023-02-18 17:40:09 +01:00
D.R.racer 6f066db443 Update HU translation 2023-02-18 17:39:30 +01:00
D.R.racer 5cd60636f9 Add missing translations + shorten to 16 chars 2023-02-18 17:39:30 +01:00
D.R.racer ec1ae321b3 ES translation 2023-02-18 17:39:30 +01:00
D.R.racer 98e7c15928 Change Eject filament -> Eject from MMU
PFW-1497
2023-02-18 17:39:30 +01:00
Guðni Már Gilbert 526e02a041 Fix an issue with using --file argument
The following command did not work in the lang folder:
python .\update-po.py --file ./po/Firmware_cs.po

To resolve this we just extract the filename from
the path and use the constant PO_DIR to make
sure the path is always the same.
2023-02-18 10:30:18 +00:00
Guðni Már Gilbert b6ef8ea32c Add a backup of po files 2023-02-18 10:13:34 +00:00
gudnimg 280a904799 ubuntu: subprocess does not allow extended glob
It's my understanding that we cannot use extended globbing
on Linux because
of the way I am invoking the lang-extract
script.  the python script is not run through bash/shell.

We would need to perhaps use Shell = True in check_call() but
then the all the input arguments needs to be one string.

This commit was tested on Ubuntu 22.04.1 LTS
2023-02-18 09:53:57 +00:00
Guðni Már Gilbert 327254d091 Expand glob in update-pot on Windows only 2023-02-18 09:53:57 +00:00
Guðni Már Gilbert 62c87a1fe5 Adjust module docstring 2023-02-18 09:53:57 +00:00
Guðni Már Gilbert b14f3780d4 Add mutually exclusive arguments --file and --all
Only one of these arguments must be supplied, or argparse raises an error.
2023-02-18 09:53:57 +00:00
Guðni Már Gilbert 4a93288353 Update README 2023-02-18 09:53:57 +00:00
Guðni Már Gilbert d90859e6a6 Add requirements.txt 2023-02-18 09:53:57 +00:00
Guðni Már Gilbert 7966633c1a Allow languages to be updated from any directory
Now these commands will work:
python .\lang\update-po.py
python .\lang\update-pot.py

When current working directory is
.\Prusa-Firmware\

Previously, you'd need to call the
script within the lang folder.
2023-02-18 09:53:56 +00:00
Guðni Már Gilbert 53ced0cb21 languages: Add new script update-pot.py 2023-02-18 09:53:56 +00:00
Guðni Már Gilbert 65d7605623 languages: update lang-extract.py
Fix an issue where it does not run on Windows.
When the input argument is regex, we must first search for the files
using said regex pattern and then creating a list of files.
When opening the files, the encoding needs to be utf-8.
2023-02-18 09:53:56 +00:00
Guðni Már Gilbert 12123d6d52 languages: create new script update_po.py
The script should do the same work as when one run update_po.sh
The Python script can be run on Windows too.
2023-02-18 09:53:56 +00:00
3d-gussner 8b1b632164 Fix copy/paste typo thanks to @gudnimg 2023-02-10 14:35:36 +01:00
3d-gussner 4f8dbb19fd Fix `M862.x` LCD messages
As the new menue adds a Yes/No option the messages
need to be limited to c=20 r=3
Updated/shortened all translations
2023-02-10 14:35:36 +01:00
3d-gussner ca978080c4 Change to Thermal model
Add prusa.io/tm-cal link
and update all TM related translations
2023-02-08 15:36:59 +01:00