Package net.minheur.techno_lib.lang
Class LanguageGenProvider.TranslationBuilder
java.lang.Object
net.minheur.techno_lib.lang.LanguageGenProvider.TranslationBuilder
- Enclosing class:
- LanguageGenProvider
The class that handles adding languages.
Remember to add the method with the correct name when adding a new language to supported ones.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdding a translation for the en_us lang file.Adding a translation for the fr_fr lang file.Adding a translation for a specific language a value.
-
Field Details
-
key
The id of the language the instance is handling.
-
-
Constructor Details
-
TranslationBuilder
-
-
Method Details
-
lang
Adding a translation for a specific language a value.- Parameters:
langId- the id of the lang you are adding a traduction invalue- the value of this translation- Returns:
- the actual translation pack you are creating
-
en_us
Adding a translation for the en_us lang file.- Parameters:
value- the value of the translation- Returns:
- the actual translation pack you are creating
-
fr_fr
Adding a translation for the fr_fr lang file.- Parameters:
value- the value of the translation- Returns:
- the actual translation pack you are creating
-