Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STR_NEWS_SUBSIDY_WITHDRAWN_SERVICE - order of {STRING} #62

Closed
Aswn opened this issue Oct 18, 2021 · 1 comment
Closed

STR_NEWS_SUBSIDY_WITHDRAWN_SERVICE - order of {STRING} #62

Aswn opened this issue Oct 18, 2021 · 1 comment

Comments

@Aswn
Copy link

Aswn commented Oct 18, 2021

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
Copy link
Contributor

glx22 commented Oct 18, 2021

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} ...

@Aswn Aswn closed this as completed Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants