Internationalization

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Guillaume
Posts: 103
Joined: August 25th, 2003, 12:11 pm
Location: France
Contact:

Internationalization

Post by Guillaume »

Hi,

Would it be possible when a new version is released to have the new strings to translate in a separate file, or at least in the beginning of the sample translation with separator between every adding.
Indeed, it really painfull to retrieve in the sample_translation.cfg the new strings to translate and to check with the already translated file :(

It was simple at the beginning, but as more and more strings have to be translated, it become more difficult to find the new ones.

Regards.
Dave
Founding Developer
Posts: 7071
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave »

There is a utility called merge_translations that comes with the program. Build it by going,

make merge_translations

(actually with 0.4.7 I have just noticed a bug in the Makefile that may cause this not to build. You'll have to add in ${SDL_LIBS} with the linker options. Will be fixed in the next version).

then you can run this utility using, for instance,

Code: Select all

./merge_translations data/translations/french.cfg data/sample_translation.cfg  > new_french.cfg
What this will do is create a new French translation file, which contains already-translated strings in French, and the not-yet-translated strings still in English, at the top of the file. Comments clearly tell you which strings are which.

There is also a utility called make_translation which ships, which can be used to generate the sample_translation.cfg file, however this file is also shipped with the distribution, so you shouldn't need to use make_translation.

Hope that helps!

David
Guillaume
Posts: 103
Joined: August 25th, 2003, 12:11 pm
Location: France
Contact:

Post by Guillaume »

Well,

of course that will help me. Thanks a lot for this great news. :D

Guillaume
Post Reply