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

Attached to Project: OpenTTD
Opened by Tom Schaack (Phreeze) - Tuesday, 14 March 2017, 08:29 GMT
Last edited by andythenorth (andythenorth) - Monday, 21 August 2017, 19:26 GMT
Type Bug
Category Network
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



I translate into:


(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.
This task depends upon

Closed by  andythenorth (andythenorth)
Monday, 21 August 2017, 19:26 GMT
Reason for closing:  Bug in external library
Additional comments about closing:  Moved to web translator (eints) project tracker.
Flyspray clean up, closing here, thanks :)
Comment by Alberth (Alberth) - Sunday, 19 March 2017, 10:00 GMT
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).