You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Start a new game (preferable in single player as the LangTest GS was coded for single player usage)
Expected behaviour:
- The expected behaviour is that the GS should crash and complain that it cannot find STR_HELLO_WORLD. (because swedish.txt contain some non-UTF characters)
- (With German selected it may either crash or display a news message in google-translated German)
- Note: with correctly UTF8 encoded language files, of course the expected behaviour is that the translations should show correctly.
Current behaviour in OpenTTD (1.2.3, 1.3-testing and trunk):
- OpenTTD shows a news message "Hello and welcome {COMPANY}!" even if Swedish or German is selected as language in the game options.
---------
The reason for this bug appears to be because LanguageScanner in src/game/game_text.cpp uses a FileScanner::Scan overload version that doesn't look inside tar files. There is a FileScanner::Scan version that can look inside tars but it doesn't accept arbitrary sub directories.
Zuu opened the ticket and wrote:
Attachments
Reported version: 1.2.3
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5509
The text was updated successfully, but these errors were encountered: