D 2013-03-09T13:07:50.281
L TranslateHowTo
P af9357b4813104d7c513bb6bb0d388f20ab29858
U devnewton
W 987
Before starting to translate, you will need to download and build the game sources: [[BuildHowTo]]
Adding a new language support to Newton Adventure need two steps:
- create a messages_${language}_${country}.properties file in the game/src/main/resources directory. Check messages.properties (default, english) and messages_fr_FR.properties file (french) for example. Note that you cannot write these file with utf-8 encoding. They must to be encoded as ISO-8859-1.
And yes java api choice sucks.
- create image button for each file following the pattern bt-*__${language}_${country}.png. They must be 256x256 32 bits RGBA png. You can create them using the button.svg at the end of this page as a template and the export function of Inkscape. Again check the french file as examples.
Z ba7d5c5e94d28fbb9cc8f0d7e9b6fcb8