Problem with string restriction in the online translator

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
GunChleoc
Engineer
Engineer
Posts: 108
Joined: 21 Dec 2012 12:34
Contact:

Problem with string restriction in the online translator

Post 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.
Joel A
Engineer
Engineer
Posts: 23
Joined: 07 May 2012 12:06

Re: Problem with string restriction in the online translator

Post 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
Note to self: Jag har bidragit till den svenska översättningen av OTTD, FIRS och Supercheese's Eyecandy Road Vehicles.
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Problem with string restriction in the online translator

Post 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)
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
GunChleoc
Engineer
Engineer
Posts: 108
Joined: 21 Dec 2012 12:34
Contact:

Re: Problem with string restriction in the online translator

Post by GunChleoc »

It's working now, thank you! :bow:
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 3 guests