Guide: Translating your UMC without WesCamp
Moderator: Forum Moderators
Re: Guide: Translating your UMC without WesCamp
That part of the WesCamp page has now been moved to GettextForWesnothDevelopers, and a big update was done afterwards.James_The_Invisible wrote: ↑June 8th, 2017, 9:55 am
- Make sure that you add-on can be translated. The wiki provides some instructions for this. You can stop reading at Getting your add-on into WesCamp as WesCamp is dead by now.
I'm thinking of doing (this weekend):
- Done: Replace that part of the WesCamp page with just a link to the new location
- Add
female_message
to the new location - Add Lua to the new location.
Re: Guide: Translating your UMC without WesCamp
This really doesn't help how to create .pot files. After reading this, I only found wmlxgettext.The template (.pot) file contains all of the strings that need to be translated in the .po files, but without the translations.
The .pot is generated from WML and Lua files using is a tool called wmlxgettext. On Wesnoth 1.13 and later, it is shipped with Wesnoth itself and can be used from Maintenance tools GUI. Just go to data/tools, launch GUI.pyw and switch to the wmlxgettext tab.
Pre-1.13 instructions on how to get and use it are in Nobun's forum posting.
Re: Guide: Translating your UMC without WesCamp
Thanks for the feedback. Here's a new revision of the second paragraph:
The Maintenance_tools page itself needs someone who uses Windows to check and update it.The .pot is generated from WML and Lua files using a tool called wmlxgettext. With Wesnoth 1.14.5 and later, this is shipped with Wesnoth itself as part of the Maintenance_tools and can be used from the Maintenance Tools' GUI. At the moment it's not documented on that page, but if you follow the instructions to get GUI.pyw running then you'll see there's a wmlxgettext tab.
Re: Guide: Translating your UMC without WesCamp
I works also without any use of the command line on Windows 10.wiki.wesnoth.org/Maintenance_tools wrote: Note to Windows Users: This means you have to run it from the Command Line. The command line may be reached by hitting Start, then Run, then "cmd" or "command" depending on your version of Windows.
All I have done:
- I have installed Python 3.7.3
- then I opened Wesnoths folder where the tools are to find
- then I selected GUI.pyw
- then I clicked 'open'
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
Re: Guide: Translating your UMC without WesCamp
Are .pot files important for campaign translating?
I mean, I know you can translate campaign without .pot files (can you?), but is it much easier with .pot files or it is the same?
I mean, I know you can translate campaign without .pot files (can you?), but is it much easier with .pot files or it is the same?
Re: Guide: Translating your UMC without WesCamp
Using Poedit, you can generate po.files/mo.files out of pot-files, and then translate them easily.
What is the name of the campaign you want to translate?
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
- Celtic_Minstrel
- Developer
- Posts: 2290
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Guide: Translating your UMC without WesCamp
I added a few notes to the C++ section (and syntax highlighting!) and added a stub section about translations in Lua. Feel free to expand on the latter.octalot wrote: ↑May 17th, 2019, 4:29 pmThat part of the WesCamp page has now been moved to GettextForWesnothDevelopers, and a big update was done afterwards.James_The_Invisible wrote: ↑June 8th, 2017, 9:55 am
- Make sure that you add-on can be translated. The wiki provides some instructions for this. You can stop reading at Getting your add-on into WesCamp as WesCamp is dead by now.
I'm thinking of doing (this weekend):
- Done: Replace that part of the WesCamp page with just a link to the new location
- Add
female_message
to the new location- Add Lua to the new location.
- James_The_Invisible
- Posts: 538
- Joined: October 28th, 2012, 1:58 pm
- Location: Somewhere in the Northlands, fighting dark forces
- Contact:
Re: Guide: Translating your UMC without WesCamp
I just updated the first post in this thread. I fixed the link to wiki a moved instructions for Wesnoth 1.14 before those for older versions (as 1.14 is the current stable series).
My content: For Power series
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
Ports: Danse Macabre Story of the Wose
Guides: How to translate your UMC
- Celtic_Minstrel
- Developer
- Posts: 2290
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Guide: Translating your UMC without WesCamp
Might be a good idea to also mention that you need to download and install Python 3 in order to use GUI.pyw. Especially on Windows, where Python isn't shipped with the OS. (I'm not sure if it's shipped with MacOS these days.)
Re: Guide: Translating your UMC without WesCamp
Some translation things I'd like help with:
- Updated translations for ANO; see this bug on GitHub: https://github.com/nemaara/A_New_Order/issues/10
- Updated translations for my forked campaigns from mainline: SotBEEE (potfile) and AToTBWaTD (potfile)
- Translations to more languages for ALA (potfile) besides just Italian (which is all it currently has)
- Help making TEG translatable; currently I am experiencing a bug that makes
wmlxgettext
choke on it: https://github.com/cooljeanius/The_Earths_Gut/issues/6
Last edited by egallager on July 5th, 2021, 4:16 am, edited 1 time in total.
Wesnoth-related GitHub repos:
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
Re: Guide: Translating your UMC without WesCamp
Update to this: TEG is now translatable! I'll be posting the potfile in its thread momentarily.egallager wrote: ↑June 14th, 2021, 10:17 pm Some translation things I'd like help with:Please let me know if you are able to help!
- Updated translations for ANO; see this bug on GitHub: https://github.com/nemaara/A_New_Order/issues/10
- Updated translations for my forked campaigns from mainline: SotBEEE (potfile) and AToTBWaTD (potfile)
- Translations to more languages for ALA (potfile) besides just Italian (which is all it currently has)
- Help making TEG translatable; currently I am experiencing a bug that makes
wmlxgettext
choke on it: https://github.com/cooljeanius/The_Earths_Gut/issues/6
Wesnoth-related GitHub repos:
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
- Celtic_Minstrel
- Developer
- Posts: 2290
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Guide: Translating your UMC without WesCamp
I think there should also be a link to this page on GettextForWesnothDevelopers, but I'm not sure where on that page is a good place to add it…
Re: Guide: Translating your UMC without WesCamp
I put it under "See Also": https://wiki.wesnoth.org/index.php?titl ... ldid=68488Celtic_Minstrel wrote: ↑July 5th, 2021, 4:42 am I think there should also be a link to this page on GettextForWesnothDevelopers, but I'm not sure where on that page is a good place to add it…
Wesnoth-related GitHub repos:
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
General mods collection, SotBEEE, AToTBWaTD, The Earth's Gut, A Little Adventure, FtF
Social media: Mastodon: @egallager@treehouse.systems, Steam: egallager
- Celtic_Minstrel
- Developer
- Posts: 2290
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: Guide: Translating your UMC without WesCamp
Yeah, that's definitely better than nothing! Thanks.