Package gaiasky.util.i18n
Class I18n
java.lang.Object
gaiasky.util.i18n.I18n
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
forceInit
(com.badlogic.gdx.files.FileHandle main, com.badlogic.gdx.files.FileHandle objects) static String
static Locale
getLocaleFromLanguageTag
(String languageTag) static boolean
hasMessage
(String key) static boolean
static void
Initializes the i18n system with the main and the objects bundle.static void
initialize
(com.badlogic.gdx.files.FileHandle main, com.badlogic.gdx.files.FileHandle objects) static void
initialize
(Path main, Path objects) static String
static String
static String
static String
static String
static String
-
Field Details
-
messages
public static com.badlogic.gdx.utils.I18NBundle messages -
objects
public static com.badlogic.gdx.utils.I18NBundle objects -
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
-
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
-
exists
-
get
-
msg
-
msgOr
-
obj
-
objOr
-
msg
-
obj
-
hasMessage
-
hasObject
-