I got a little bit lost after my first experiments and skim through the docs of defold. Is there any internationalization support in defold, or must I roll my own?
For the moment I am thinking mostly of text strings, possibly in utf16 charset.
No, there’s no support for this in the engine. You must roll your own. At King we export translations from our translation system into a Lua table, keyed on language code, and then per language keyed on translation keys. We load this translation table into a translation module and can via that module query for translated strings in a number of different ways. We also have utility functions to set texts on GUI text nodes, scaling of text nodes so that translated text fits within certain bounds and things like that. The current device language can be retrieved from sys.get_sys_info() and found in the device_language key.
None of it is very advances and I’m sure you’ll be able to create your own system with a little effort. (and if you do and it’s generic enough then consider sharing it here!)
I’ll probably roll out something that parses the script files and picks up any strings between a predefined method call; those would be my keys for the translation table.
Do you do anything special for unicode characters? Any trick for handling encoding?