Page 1 of 1

Problem with string restriction in the online translator

Posted: 15 Apr 2013 21:29
by GunChleoc
I would like to translate:
{ORANGE}{STRING}{BLACK} required in winter
as:
{BLACK}Feum air {ORANGE}{STRING}{BLACK} sa gheamhradh
but I get an error message:

Code: Select all

Too many {BLACK} commands
http://translator.openttd.org/en/trunk/ ... RED_WINTER

I could do some manoeuvering with the translation if this can't be fixed, but it would make the sentence rather strained. I suspect other languages/strings might have similar problems where the word order differs from English.

ETA: Here's another example:
{BLACK}Town is {RED}not{BLACK} growing
The negation in Gaelic has to come at the front. This is obligatory in the language:
{RED}Chan eil {BLACK}a' fàs
and I get:

Code: Select all

Missing a {BLACK} command
http://translator.openttd.org/en/trunk/ ... OW_STOPPED

Of course, I could add an extraneous {BLACK} in this case that doesn't do anything, but the basic problem still remains.

Maybe the solution we need is that the translator checks if every colour is there, but does not check how often it is there.

Re: Problem with string restriction in the online translator

Posted: 18 Apr 2013 16:57
by Joel A
This probably doesn't address the general problem, but do you reallly need the first {BLACK} in the string below? As far as I've understood, black is the default text colour.
{BLACK}Feum air {ORANGE}{STRING}{BLACK} sa gheamhradh

Re: Problem with string restriction in the online translator

Posted: 18 Apr 2013 17:56
by frosch
@GunChleoc: We almost completely broke the WebTranslator, but you might now try again to enter your translation.
Thanks TrueBrain for making it work in the end again :)

@Joel A: There is no such thing like a default colour. In fact, if the english string starts with a colour code, and the translation does not, it might start with a random colour. (different on every redraw)

Re: Problem with string restriction in the online translator

Posted: 22 Apr 2013 07:45
by GunChleoc
It's working now, thank you! :bow: