Interface LanguageManager
- All Known Implementing Classes:
StargateLanguageManager
public interface LanguageManager
-
Method Summary
Modifier and TypeMethodDescriptiongetErrorMessage
(TranslatableMessage translatableMessage) Gets a formatted error messagegetMessage
(TranslatableMessage translatableMessage) Gets a formatted messagegetString
(TranslatableMessage translatableMessage) Gets a translated stringgetWarningMessage
(TranslatableMessage translatableMessage) Gets a formatted warning messagevoid
setLanguage
(String language) Sets the currently used language
-
Method Details
-
getErrorMessage
Gets a formatted error message- Parameters:
translatableMessage
-The translatable message to display as an error
- Returns:
The formatted error message
-
getWarningMessage
Gets a formatted warning message- Parameters:
translatableMessage
-The translatable message to display as an error
- Returns:
The formatted warning message
-
getMessage
Gets a formatted message- Parameters:
translatableMessage
-The translatable message to display
- Returns:
The formatted message
-
getString
Gets a translated string- Parameters:
translatableMessage
-The translatable message to translate
- Returns:
The corresponding translated message
-
setLanguage
Sets the currently used languageSets the language and loads everything from the language file
- Parameters:
language
-The language to change to
-