OpenTTD / eints

WebTranslator for OpenTTD and its add-ons
GNU General Public License v2.0
6 stars 10 forks source link

STR_NEWS_SUBSIDY_WITHDRAWN_SERVICE - order of {STRING} #62

Closed Aswn closed 2 years ago

Aswn commented 2 years ago

en string: {BIG_FONT}{BLACK}Subsidy withdrawn:{}{}{STRING} service from {STRING} to {STRING} is no longer subsidised

string with context: {BIG_FONT}{BLACK}Subsidy withdrawn:{}{}{STRING1} service from {STRING2} to {STRING3} is no longer subsidised

context translated to: {BIG_FONT}{BLACK}Subsidy withdrawn:{}{} from {STRING2} to {STRING3} {STRING1} service is no longer subsidised

But I dont believe the context is translated properly in the current output. can someone clarify this or am I missing something?

glx22 commented 2 years ago

You can reorder parameters if you need for the translation. See https://wiki.openttd.org/en/Archive/Source/OpenTTDDevBlackBook/Format%20of%20langfiles#changing-word-order It's quickly mentionned at the end of https://translator.openttd.org/static/docs/strings.html#string-commands section

In your example it would be ... from {1:STRING} to {2:STRING} {0:STRING} ...