po-translator

Discuss and coordinate development of mainline and user-made content translations.

Moderator: Forum Moderators

Post Reply
User avatar
hermestrismi
Posts: 737
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

po-translator

Post by hermestrismi »

I know how hard is it to translate a long campaign line by line so I created this po manager to make it possible to extract all msgids, copy them into a .txt file, translate them with any translator then upload them back to po file.
note that this not meant to replace poEditor and it is not fully working (working and tested but limited especially for multi lines) but to help and facilitate the job.
Steps are explained and comments especially bug reports are welcome .
Attachments
po-translator.rar
(8.91 KiB) Downloaded 16 times
translated_strings 28.txt
sample of translated strings ready to upload back
(1.49 KiB) Downloaded 17 times
Michal-
Posts: 6
Joined: January 18th, 2021, 10:16 pm
Location: Czechia

Re: po-translator

Post by Michal- »

Hi, hermestrismi,

first, I have been following your work on the Wesnoth translation, and find you efforts admirable.

Second, I have put together some pieces and would like to share the result:

Code: Select all

michal@ryzetka:~/tbfw/wesnoth-cs$ LANG=C w.sh deepl help
./wesnoth-help.po: 769 translated messages, 2 untranslated messages.
------------------------------
 PO trans translator
------------------------------
Input: /tmp/tmp.72nbEJRlI9
Translate: from en to cs
Output dir: /tmp/tmp.DZ2AfMDL9U/
Translating progress:           
 2/2 [============================] 100%
Translated : 2 sentences
DONE!
/home/michal/tbfw/wesnoth-cs
......................................................................................................... done.
./wesnoth-help.po: 769 translated messages, 2 fuzzy translations.
The chain comprise of DeepL API (free for up to 500k chars/month), gettext utils and potrans. If you want further details, just let me know.
User avatar
hermestrismi
Posts: 737
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

Re: po-translator

Post by hermestrismi »

thank you for sharing .
unfortunately , I can't get an API key. my purpose is to help not to replace . of course, there better solutions but not with all features combined .
User avatar
hermestrismi
Posts: 737
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

Re: po-translator

Post by hermestrismi »

version 0.0.2
notable improvements :
- better handling of multi-line sentences
- handle plural form.
- display fuzzy sentences
Attachments
Screenshot 2025-06-22 122907.png
po-translator2.rar
(107.76 KiB) Downloaded 11 times
User avatar
hermestrismi
Posts: 737
Joined: February 6th, 2016, 11:28 pm
Location: Tunisia
Contact:

Re: po-translator

Post by hermestrismi »

the new version , tested heavily.
link: https://github.com/nadhem000/Wesnoth-Toolkit-Hub
1. Download file as .zip,
2. un-zip it,
3. open 'Wesnoth Tools Hub',
4. open '/po-translator.html' or 'po_File_Dictionary_Extractor.html' in a browser,
5. follow 'how to use' instructions.
Attachments
Screenshot 2025-06-30 212202.png
Screenshot 2025-06-30 212120.png
Screenshot 2025-06-30 212043.png
Screenshot 2025-06-30 211957.png
Screenshot 2025-06-30 211834.png
Screenshot 2025-06-30 211737.png
Post Reply