ENH: update PO and POT files by a script#7230
Conversation
Number of messages in *.py files: 2180 New message(s): 265 Untranslated message(s) ar_001: 799 ( 36.7%) cs_CZ: 0 ( 0.0%) da_DK: 0 ( 0.0%) de_DE: 274 ( 12.6%) el_GR: 0 ( 0.0%) en_NZ: 0 ( 0.0%) en_US: 0 ( 0.0%) es_CO: 1788 ( 82.0%) es_ES: 1787 ( 82.0%) es_US: 1788 ( 82.0%) et_EE: 13 ( 0.6%) fa_IR: 5 ( 0.2%) fi_FI: 0 ( 0.0%) fr_FR: 223 ( 10.2%) he_IL: 1 ( 0.0%) hi_IN: 0 ( 0.0%) hu_HU: 0 ( 0.0%) it_IT: 1 ( 0.0%) ja_JP: 2176 ( 99.8%) ko_KR: 0 ( 0.0%) ms_MY: 10 ( 0.5%) nl_NL: 0 ( 0.0%) nn_NO: 0 ( 0.0%) pl_PL: 0 ( 0.0%) pt_PT: 1801 ( 82.6%) ro_RO: 0 ( 0.0%) ru_RU: 0 ( 0.0%) sv_SE: 0 ( 0.0%) tr_TR: 1 ( 0.0%) zh_CN: 1242 ( 57.0%) zh_TW: 662 ( 30.4%)
…re-translation-alert
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #7230 +/- ##
==========================================
- Coverage 12.28% 12.27% -0.01%
==========================================
Files 346 346
Lines 64066 64115 +49
==========================================
Hits 7870 7870
- Misses 56196 56245 +49
🚀 New features to boost your workflow:
|
|
oh @hsogo can your script change the wrap width to 79? It used the babel default of 76, by the looks, but because poedit defaults to 79 it means a lot of the apparent changes in the git file are actually just re-wraps. |
|
@peircej By the way, in my environment (Windows11, Poedit free version 3.6.1, "wrap at:"=79), text is not wrapped even if "wrap at:" option is set in Poedit. For example, a long sentence in messages.po generated by my script is wrapped as following: After editing this messages.po with Poedit, this entry is not wrapped as following: EDITED at 2025/07/09 |
generateTranslationTemplates.py was modified to updates PO files in addition to POT file.
With -c option, the script makes a commit if any files are updated.
Please see also #7206.
Quesition:
Project-Id-Version(PsychoPy version is stored) andPOT-Creation-Dateof all PO files. Is it Ok? Are there other metadata that should be updated?