Class I18n

java.lang.Object
gaiasky.util.i18n.I18n

public class I18n extends Object
  • Field Details

    • messages

      public static com.badlogic.gdx.utils.I18NBundle messages
    • objects

      public static com.badlogic.gdx.utils.I18NBundle objects
    • locale

      public static Locale locale
  • Constructor Details

    • I18n

      public I18n()
  • Method Details

    • initialize

      public static void initialize()
      Initializes the i18n system with the main and the objects bundle. The main bundle contains the application messages. The objects bundle contains the object names.
    • initialize

      public static void initialize(Path main, Path objects)
    • initialize

      public static void initialize(com.badlogic.gdx.files.FileHandle main, com.badlogic.gdx.files.FileHandle objects)
    • forceInit

      public static boolean forceInit(com.badlogic.gdx.files.FileHandle main, com.badlogic.gdx.files.FileHandle objects)
    • getLocaleFromLanguageTag

      public static Locale getLocaleFromLanguageTag(String languageTag)
    • exists

      public static boolean exists(String key)
    • get

      public static String get(String key)
    • msg

      public static String msg(String key)
    • msgOr

      public static String msgOr(String key, String defaultValue)
    • obj

      public static String obj(String key)
    • objOr

      public static String objOr(String key, String defaultValue)
    • msg

      public static String msg(String key, Object... params)
    • obj

      public static String obj(String key, Object... params)
    • hasMessage

      public static boolean hasMessage(String key)
    • hasObject

      public static boolean hasObject(String key)