help with translation file

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

Moderators: Forum Moderators, Developers

Post Reply
User avatar
Adamant14
Posts: 897
Joined: April 24th, 2010, 1:14 pm

help with translation file

Post by Adamant14 » August 27th, 2015, 7:34 pm

I maintain the campaign A Vision Blinded.
Today Dalan94 has sent me the french translation.
I added it to the 1.12 version, and loaded it up to the server.
But for some reason it wont work.
Because I have no idea about translations, please can someone download the campaign and check what is wrong?
Thanks in advance.
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR

User avatar
James_The_Invisible
Posts: 509
Joined: October 28th, 2012, 1:58 pm
Location: Somewhere in the Northlands, fighting dark forces
Contact:

Re: help with translation file

Post by James_The_Invisible » August 27th, 2015, 9:04 pm

You have found the right place for the file but you need to compile it to .mo file. Probably the easiest way to do it, would be opening the .po file in program called Poedit (or a similar one) and clicking File - Compile to MO ...

dalan94
Posts: 8
Joined: August 26th, 2013, 5:01 pm

Re: help with translation file

Post by dalan94 » August 27th, 2015, 9:09 pm

You have to compile the .po file to a .mo file. And it's the .mo file that you have to put in the translation folder.
If you are under Linux you can compile the file with

Code: Select all

msgfmt wesnoth-A_Vision_Blinded.po -o wesnoth-A_Vision_Blinded.mo
If you use Windows I think that the software poedit (http://poedit.net/) can do that.

EDIT : Agree with James_The_Invisible

User avatar
Adamant14
Posts: 897
Joined: April 24th, 2010, 1:14 pm

Re: help with translation file

Post by Adamant14 » August 27th, 2015, 9:20 pm

That's it, it works now.
Thank you both.
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR

User avatar
GunChleoc
Translator
Posts: 476
Joined: September 28th, 2012, 7:35 am
Contact:

Re: help with translation file

Post by GunChleoc » August 31st, 2015, 3:37 pm

Just for completeness: In Windows, it is sufficient if you just save the file with PoEdit, it will automatically also generate an mo file as well. If you use Virtaal, there is an export function to generate the mo.

Post Reply