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

web translator - can't save translation with RAW_STRING variable (check bug?) #6543

Closed
DorpsGek opened this issue Mar 14, 2017 · 2 comments
Closed
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Phreeze opened the ticket and wrote:

Base lang string:{YELLOW}{CARGO_LONG}{RAW_STRING}

I translate into:

Translation:{YELLOW}{CARGO_LONG}{RAW_STRING}

(so it's just copy paste)

and get the error:
Error: String command for position 1 is wrong, base language uses {STRING}, the translation uses {RAW_STRING}

and it's not saved. somehow the error-checking doesn't know the "RAW_STRING" variable.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6543
@DorpsGek
Copy link
Member Author

Alberth wrote:

RAW_STRING is an implementation detail about the origin of the text. This may change through time. In order not to break all translations when such a change is made, the origin is only specified in the base language (src/lang/english.txt), all translations use {STRING} for all strings.
In this way, a change in string origin is restricted to a change in the base language only.

The string compiler (strgen) deals with copying the origin information to the translations, while generating the language files (I think, didn't check that).


This comment was imported from FlySpray: https://bugs.openttd.org/task/6543#comment14395

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Bug in external library

Moved to web translator (eints) project tracker. http://dev.openttdcoop.org/issues/8480

Flyspray clean up, closing here, thanks :)


This comment was imported from FlySpray: https://bugs.openttd.org/task/6543

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Network labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant