Latest Posts

Topic: newlines in translations?

LiSrt

Topic Opener
Joined: 2010-10-02, 17:59
Posts: 11
Ranking
Pry about Widelands
Posted at: 2010-10-06, 12:02

When working on some of the en_GB translations I noticed there is a mixture of html new lines (the "
") and simple newline characters themselves (i.e. just what happens when pressing the enter/return keys).

My question is, which one should I use?

Also, will windows in Widelands lay out the text correctly if there aren't newlines? (i.e. if a window is resized, will the text lines shift correctly?)

Are newlines on Launchpad treated as just spaces in the game and we have to use "
"?

I don't want to risk having text running off the side of someone's screen while they are playing the game, or ending up with a huge unspaced wall of text if I don't use the "
".


Top Quote
timowi

Joined: 2009-11-01, 23:08
Posts: 146
Ranking
At home in WL-forums
Location: Germany
Posted at: 2010-10-06, 13:50

Always use exactly the same as in the original text. This depends on how the text is used in the game. Changing or skipping the line breaks will scramble the layout in widelands. What happens exactly again depends on how the strings are used in widelands. Newlines and "
" work in widelands. But again: Which one have to be used depends on the usage of the string.

Linebreaks must not be changed in the translations.

Timo


Top Quote