EORS simultaneous create and translate my era ?

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

Moderator: Forum Moderators

Post Reply
User avatar
francophone
Posts: 393
Joined: February 20th, 2010, 2:19 pm

EORS simultaneous create and translate my era ?

Post by francophone »

How to make a translation ?
I found a tutorial but it speaks to edit a .mo file existing.
In my case I creat an era (http://www.wesnoth.org/forum/viewtopic.php?f=19&t=28960) and I want to do simultaneously in English and French. A lot of texts and names are actually created in French and translated into English, not vice versa. So I would prepare the French translation as soon as the design of the text.
And then, I would do it gradually. As soon as I put the new text, put the french translation.
So how can do this .mo file (What name if this is important ?) ? Where put it and especially how (re)call it ?
For example :
Quote:
#ifdef MULTIPLAYER
{@campaigns/EORsolar_MP_era/}
{@campaigns/EORsolar_MP_era/macros}
{@campaigns/EORsolar_MP_era/translations}
...

Is this it ?
User avatar
MrEPIC
Posts: 103
Joined: June 9th, 2009, 12:20 am
Location: GMT-6/-5

Re: EORS simultaneous create and translate my era ?

Post by MrEPIC »

Bonjour! (Don't mistaken this, I'm not French)
Basically, to make a French translation appear in the game, you would first need to make a .pot file, which is the file from which you will translate into other languages, such as French. I believe that the correct term for this file is a template. You would name this file wesnoth-EORsolar_MP_era.pot (whatever you have in your #textdomain). You would structure it like this one: http://svn.gna.org/viewcvs/wesnoth/trun ... iew=markup After you do this, you can use a program such as Poedit to fill in translations for the strings in the .pot file to make a .po file. An example you may want to see of what a po file would like is here: http://svn.gna.org/viewcvs/wesnoth/trun ... iew=markup. Once you do this, Poedit should save a .po file and a .mo file (at least that's what is has done for me), but if it did not create a .mo file, you can make your own from the .po file by following the instructions here:http://www.gnu.org/software/gettext/man ... l#Binaries You would put the mo file at @campaigns/EORsolar_MP_era/translations/fr/LC_MESSAGES/ under the name of wesnoth-EORsolar_MP_era.mo. Therefore the full file name and directory would be:

Code: Select all

@campaigns/EORsolar_MP_era/translations/fr/LC_MESSAGES/wesnoth-EORsolar_MP_era.mo
Hopefully I've helped, and bonne chance with your translation!
3 player co-op campaign: The Haunted Woods (v1.6.19)
1v1 campaign: Tug of War (v0.4.0)
User avatar
francophone
Posts: 393
Joined: February 20th, 2010, 2:19 pm

Re: EORS simultaneous create and translate my era ?

Post by francophone »

Thank you very much.
But the links do not work http://svn.gna.org/viewcvs/wesnoth/trun ... iew=markup
AI
Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: EORS simultaneous create and translate my era ?

Post by AI »

Gna is dead at the moment. It happens.
Post Reply