Interface LanguageManager

All Known Implementing Classes:
StargateLanguageManager

public interface LanguageManager
  • Method Details

    • getErrorMessage

      String getErrorMessage(TranslatableMessage translatableMessage)
      Gets a formatted error message
      Parameters:
      translatableMessage -

      The translatable message to display as an error

      Returns:

      The formatted error message

    • getWarningMessage

      String getWarningMessage(TranslatableMessage translatableMessage)
      Gets a formatted warning message
      Parameters:
      translatableMessage -

      The translatable message to display as an error

      Returns:

      The formatted warning message

    • getMessage

      String getMessage(TranslatableMessage translatableMessage)
      Gets a formatted message
      Parameters:
      translatableMessage -

      The translatable message to display

      Returns:

      The formatted message

    • getString

      String getString(TranslatableMessage translatableMessage)
      Gets a translated string
      Parameters:
      translatableMessage -

      The translatable message to translate

      Returns:

      The corresponding translated message

    • setLanguage

      void setLanguage(String language)
      Sets the currently used language

      Sets the language and loads everything from the language file

      Parameters:
      language -

      The language to change to