Translations
This collection holds all translations for the game.
The collection may be instantiated loading any number of languages, but normally it contains either one (player-selected) language or all of them for the translation file writer.
Translatables have two forms: normal or containing placeholders (delimited by square brackets). Translation requests can have a third form: containing {subsentences} - these are split into their components and passed individually back into the translator, therefore they need no entry in this collection
See also
for more explanations (below)
Constructors
Types
Functions
Searches for the translation entry of a given text for a given language. This includes translations provided by mods from activeMods
Get all languages present in this
, used for TranslationFileWriter and TranslationTests
Get a list of supported languages for readAllLanguagesTranslation
Returns the equivalent of a space in the given language Defaults to a space if no translation is provided
Ensure all languages are loaded, used by TranslationFileWriter and TranslationTests
This reads all translations for a specific language, including all installed mods. Vanilla translations go into this
instance, mod translations into modsWithTranslations.
Properties
: Holds the completion percentage for each language, read from its file "completionPercentages.properties" which is generated by the TranslationFileWriter utility.