Where are the mainline strings?

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

Moderator: Forum Moderators

Post Reply
User avatar
Atreides
Posts: 1039
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Where are the mainline strings?

Post by Atreides »

I've tried searching for them but nada. I'm guessing they're in the binary .mo files. Is there a list of what strings are available? I've used the dozen files in my many add-ons but discovered that not all strings are included. Where can one find all of them? Should there not be a master mainline-strings.cfg file?
User avatar
octalot
General Code Maintainer
Posts: 777
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Where are the mainline strings?

Post by octalot »

In the source tree, they're po/domain/domain.pot. For example, https://github.com/wesnoth/wesnoth/blob/master/po/wesnoth-lib/wesnoth-lib.pot

lib is a library, the campaign Liberty has po/wesnoth-l/wesnoth-l.pot.
User avatar
GunChleoc
Translator
Posts: 506
Joined: September 28th, 2012, 7:35 am
Contact:

Re: Where are the mainline strings?

Post by GunChleoc »

The game engine uses .mo files - they can be generated from the po files and are binary versions of them. There's some gettext command for that, or if you want to do it manually, you can export them with Virtaal or PoEdit or similar translation editors. Then look for directories called LC_MESSAGES in the wesnoth directory to see where you need to put them.
User avatar
Atreides
Posts: 1039
Joined: March 30th, 2019, 10:38 pm
Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off

Re: Where are the mainline strings?

Post by Atreides »

GunChleoc wrote: May 16th, 2021, 3:53 pm The game engine uses .mo files - they can be generated from the po files and are binary versions of them. There's some gettext command for that, or if you want to do it manually, you can export them with Virtaal or PoEdit or similar translation editors. Then look for directories called LC_MESSAGES in the wesnoth directory to see where you need to put them.
I recently installed poedit. It is wonderful. It autogenerates .mo files although they need to be renamed and moved to fit wesnoth.

I also discovered that while .mo files are in fact binary data files I was actually always able to view them using midnight commander as text. I just never tried!

P.S. Looking forward to WL 1.0 :)
Post Reply