Anniversary Edition/Installer/Localization: Difference between revisions

m
link fix
m (wording)
m (link fix)
 
Line 7: Line 7:
By providing new .properties files, the AEI will automatically use the translated phrases in that file if the .properties files' locale matches the computer's locale setting. The locale of the .properties file is indicated by a suffix in the name. For instance, the German translation above came from MainWin_de.properties; "de" is the official [[wikipedia:ISO_639-1|ISO abbreviation]] for "German". (The original English files do not use a locale suffix.)
By providing new .properties files, the AEI will automatically use the translated phrases in that file if the .properties files' locale matches the computer's locale setting. The locale of the .properties file is indicated by a suffix in the name. For instance, the German translation above came from MainWin_de.properties; "de" is the official [[wikipedia:ISO_639-1|ISO abbreviation]] for "German". (The original English files do not use a locale suffix.)


For the default language, English, the .properties files are not accessible to the end user because they are built into the Installer executable, so in order to start translating strings, you should get the English .properties files from the AEI source code. Click [http://websvn.chrilly.net/listing.php?repname=Oni2&path=%2Fjava%2Finstaller2%2Fsrc%2Fnet%2Foni2%2Faeinstaller%2Flocalization%2F& here] to see the source directory that contains the English localization files.
For the default language, English, the .properties files are not accessible to the end user because they are built into the Installer executable, so in order to start translating strings, you should get the English .properties files from the AEI source code. Click [https://websvn.illy.bz/listing.php?repname=Oni2&path=%2Fjava%2Finstaller2%2Fsrc%2Fnet%2Foni2%2Faeinstaller%2Flocalization%2F& here] to see the source directory that contains the English localization files.


It's a good idea to make sure you know where the strings appear in the application, rather than translating blindly. For instance, despite its name, "menu.runOniFullTooltip", the sample string above will display when you hover over the "Run Oni (fullscreen)" button in the main window.
It's a good idea to make sure you know where the strings appear in the application, rather than translating blindly. For instance, despite its name, "menu.runOniFullTooltip", the sample string above will display when you hover over the "Run Oni (fullscreen)" button in the main window.