Problems translating in multiplayer

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

Moderator: Forum Moderators

Post Reply
User avatar
tekelili
Posts: 1038
Joined: August 19th, 2009, 9:28 pm

Problems translating in multiplayer

Post by tekelili »

I have created a gettext file with macros of translatable mainline strings for my campaign. It looks work well for simple usage (I havent checked all strings in MP), but the problem is when game is saved and loaded, translation becomes to host language for all players and observers (this is a problem in a MP campaign).

Maybe there is a solution for this, because some strings didnt look affected for this bug (perhaps using insert_tag, or "|" after variables is related... not really clue)

Any hint? :hmm:


Edit: An easy way to reproduce bug:

Code: Select all

#################################
#textdomain wesnoth-help
#################################

#define DIFFICULTY
    _ "Difficulty: " #enddef

Code: Select all

[objectives]
.
.
    [note]
        description={DIFFICULTY}+$difficulty_name
    [/note]
[/objectives]
this is translated correctly to different languages, but doing a save/reload will show for all people "Difficulty" translated to host language
Be aware English is not my first language and I could have explained bad myself using wrong or just invented words.
World Conquest II
Post Reply