Sorry, we don't support your browser.  Install a modern browser

Update in-game translation on language change#241

Short description:
The current translation feature (so far as I could see) does not support updating game strings while playing the game. I don’t expect players to change their language while in game… but as a developer of mods this would be great. It would greatly improve the ease of testing new languages without having to reload the mod each time.

Current behavior:

  1. Create a button with text “{en}Hello World {fr}I don’t speak French”
  2. Change language of TTS to a different language (in this case French)
  3. Button still says “Hello World”

Expected behavior:

  1. Create a button with text “{en}Hello World {fr}I don’t speak French”
  2. Change language of TTS to a different language (in this case French)
  3. Button says “I don’t speak French”

I understand it can be quite costly to update all strings / labels / buttons on each language change, but it would make the feature so much better than it currently is.
Looking forward to your suggestions and insights.

5 years ago

It supports.

The game searches for the current language in each line, and if it does not find it, then takes the LAST language in the line. Therefore, English should always be the last:

{fr}Bière{ru}Пиво{en}Beer

5 years ago