EORS simultaneous create and translate my era ?
Moderator: Forum Moderators
- francophone
- Posts: 393
- Joined: February 20th, 2010, 2:19 pm
EORS simultaneous create and translate my era ?
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 ?
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 ?
Re: EORS simultaneous create and translate my era ?
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:
Hopefully I've helped, and bonne chance with your translation!
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
- francophone
- Posts: 393
- Joined: February 20th, 2010, 2:19 pm
Re: EORS simultaneous create and translate my era ?
Thank you very much.
But the links do not work http://svn.gna.org/viewcvs/wesnoth/trun ... iew=markup
But the links do not work http://svn.gna.org/viewcvs/wesnoth/trun ... iew=markup
Re: EORS simultaneous create and translate my era ?
Gna is dead at the moment. It happens.