Gwt internationalization
there are three (open) questions about GWT internationalization, I have:
1) Is it a (huge) performance issue, only use "Messages" for constant and parameterized text (which is possible) where you usually use "Messages" and "Constants"?
2) Is there a way to specify the source code in the source code, whose translations can then be listed somewhere? (e.g., Translate("Hello")
in source code, not in the properties file, for example, Spanish Hello = Β‘Hola!
)
3) Do you know of any translation tools that generate properties and interfaces for you?
Thank you Advance!
a source to share
1) I am not aware of any performance issues with constant messages. Since all the code ends up as optimized JavaScript anyway, this seems like a minimal problem to me.
2) You can use annotation DefaultMessage
:
@DefaultMessage("Hello")
String hello();
In this case, if no matching translation file is found, the default message is used.
3) i18nCreator
a source to share