leper/0ad

Localization of components

Closed this issue · 2 comments

How do we localize strings coming from components?
These can be sent over the network as messages or be part of the simulation state (and must therefore not differ).
Localization should most likely be deferred to the GUI code.

There should definitely not be any translation in the simulation, in fact it might even be worth having tests to ensure it's impossible to translate in JS simulation scripts (I don't know if the engine hooks are exposed there or not). GUIInterface isn't synchronized, but it still seems risky to allow translation even at that point.

Is discussed and fixed in #14

Simulation can mark a string for translation (but the string will stay in English). While the actual translation happens in the GUI.