-
Notifications
You must be signed in to change notification settings - Fork 3
3. Adding translations
If you're interested in translating aspects of HoloPrint into other languages, your contributions would be greatly appreciated! Here are the steps you can follow to add a new language:
Tip
A device which can create and modify files and a text editor are needed.
Start by copying translations/en.lang
and name it LANGUAGE CODE.lang
. Next, add LANGUAGE CODE
and the language name to translations/languages.json
. The language code is only used internally for the pack generation UI and can be anything you want. The language name is how it will appear on the website language picker. You can then translate everything in the new JSON file.
A few basic syntax extensions similar to Markdown are available:
- Using
`...`
will show something in a monospace font - Using
[Link text](https://url.com)
will display a link to another webpage
Start by adding the MCBE language code for the target language to packTemplate/texts/languages.json
. Next, copy packTemplate/texts/en_US.lang
and rename it to match the desired language. Text in {}
like {PACK_NAME}
are placeholders for relevant pack info which will be substituted in later.
It can be quite confusing, so I recommend playing around with it a bit and seeing how it appears in-game. If you have any questions or issues, feel free to create a discussion.
In this repository, there's a small resource pack which forces all structure block buttons to show, regardless of device. This is needed for Android players as the export button is hidden by default. Translations for the pack name and description would also be appreciated
Follow the same steps as translating the main in-game translations, except that everything belongs in the assets/structureBlockButtonAdderPack/texts
folder.