Internationalization
Thank you for your interest in translating the game! Here is how you can make a plugin that adds your translation of choice.
Note
You'll need to compile the source code in order to follow this tutorial. Using the NetBeans IDE is the simplest way to do so.
-
Find your language's tag from this list (it is listed as the subtag). Locales outside of this list are not supported.
-
Download the Sheowder source code (downloads) and add the tag to
processors/src/i18n/supported_locales.properties. Remove the=from the file. -
Build the game (in NetBeans, open the
Projectstab on the left. Right- clickSheowderand selectClean and Build). -
Copy all of the files from
build/classes/i18n/resource/toprocessors/src/i18n/resource/. Then, open each file and fill in the blanks. -
Build the game again and copy all files from
build/classes/i18n/resource/into a new directory. -
At the root of the new directory, create a file named
metadata.properties. In it, putLOCALE = [language tag](so for Chinese, for example, the file would containLOCALE = zh). -
Put both the
metadata.propertiesand thei18n/resource/into a zip (do not zip the parent directory). Ensure it has this internal structure:├── i18n │ └── resource └── metadata.properties -
Rename the zip so it has the extension
.jar.
Instruct your (Windows standard installation) users to put the jar in this directory to install it:
%USERPROFILE%\scoop\persist\sheowder\plugins
An example i18n plugin is included in the processors subproject
(i18n.example).