Skip to content

Albatross Language Manager

Sidpatchy edited this page Aug 18, 2022 · 1 revision

The Albatross Language Manager is a system which selects localizations on the fly using the Minecraft client's language setting. For simplicity, several rules are followed when choosing which localization should be used.

The rules for converting from Minecraft's internal language codes to ISO 639-3 codes is as follows:

copied from https://github.com/Sidpatchy/Albatross/blob/main/src/main/java/com/sidpatchy/albatross/File/AlbatrossLanguageManager.java
* Converts Minecraft's locale string to an ISO 639-3 language code.
*
* This took a long time, regardless, there are probably a considerable number of errors. If you find that I have
* made one, please create an issue or open a pull request.
*
* Includes languages found in Minecraft 1.19 and onward. If you desire a language that was removed before Minecraft
* 1.19, please open an issue or pull request.
*
* Andalusian and valencian intentionally select the Spanish translation as they do not have an ISO 639-3 code.
* If at some point in time this changes, please create an issue or open a pull request.
*
* "Joke" languages select the language they are based off. For example, LOLCAT selects English.
*
* Anglish selects english as it doesn't have an ISO 639-3 code. If this changes, open an issue or pull request.
*
* Interslavic selects Church Slavic ("chu") as according to 2 seconds on Wikipedia they're pretty similar. If this
* assumption is wrong, open an issue or pull request.

A detailed list can be found at: https://github.com/Sidpatchy/Albatross/blob/de90699cf12da1a70812b3c12db789b15b4b44bb/src/main/java/com/sidpatchy/albatross/File/AlbatrossLanguageManager.java#L119-L241

Clone this wiki locally