Re: Translation of Simutrans - time to move to gettext?
Reply #20 –
maybe documentation is missing here. The meaning of the %x formatting symbols depend on the context. Please refer to the English/German translation and guess, where the string is used (or ask on the forum). The %x symbols are placeholders for other content: Usually some other text (for %s) or numbers for %d,%i is inserted. Text could be: city, industry, good names etc.
As to the station names: The strings to be translated look like
[0..9A..Z](extern|suburb|center)
ie strings to translate are 0extern .. 9extern, Aextern..Zextern etc.
These are used for generating town halt names:
- *center .. for stations within city limits (+-2)
- *suburb .. for stations near cities
- *extern .. for station outside of the city
The translation can have two or three occurences of %s:
0suburb
%s school %s %s
1suburb
%s garden rose %s
Upon creating a new halt name the %s are replaced as:
- the first %s becomes the name of the city
- if there are three %s's, then the second one becomes the direction from the city center
- the last %s becomes the halt type, ie translation of "H", "BF", "Dock", "Airport"
The above mentioned strings then would become for example
Praha school north Airport
Berlin garden rose station
Please feel free to put this piece of documentation on the wiki or elsewhere.