Package se.datadosen.jalbum
Class Msg
java.lang.Object
se.datadosen.jalbum.Msg
Repository for internationalized strings
-
Field Summary
Modifier and TypeFieldDescriptionprotected static boolean
protected static Package
protected static SmartResourceBundle
protected static Set
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
static String
static String
static Locale
static SmartResourceBundle
static String
getShortcut
(String key) static String
static String
static String
Deprecated.static boolean
static boolean
isTranslated
(String key) static void
Register object for translation with setTexts() and set texts initiallystatic void
Remove object from translation with setTexts()static void
Reload resource bundle, for example after a change of languagestatic void
Traverse though fields declared within passed object and for each Action field annotated with @Icon, set the corresponding iconstatic void
setTexts()
Traverse all objects registered to be translated and pass them to the setTexts method of this classstatic void
Traverse though fields declared within passed object and for each Action field annotated with @Text or set the corresponding name or tool tip
-
Field Details
-
lastCallerPackage
-
temporaryBundle
-
toTranslate
-
debugMode
protected static boolean debugMode
-
-
Method Details
-
getResourceBundle
-
reloadBundle
public static void reloadBundle()Reload resource bundle, for example after a change of language -
getString
Deprecated. -
isTranslated
-
get
-
getShortcut
-
isPresent
-
getLocale
-
get
-
get
- Parameters:
caller
-key
-params
-- Returns:
- Since:
- 18.3
-
get
- Parameters:
caller
-key
-- Returns:
- Since:
- 18.3
-
getString
-
getString
-
maintainTranslated
Register object for translation with setTexts() and set texts initially- Parameters:
o
- object having fields annotated with @Text or @ToolTipText
-
releaseFromTranslation
Remove object from translation with setTexts()- Parameters:
o
- object having fields annotated with @Text or @ToolTipText
-
setTexts
public static void setTexts()Traverse all objects registered to be translated and pass them to the setTexts method of this class -
setTexts
Traverse though fields declared within passed object and for each Action field annotated with @Text or set the corresponding name or tool tip- Parameters:
o
-
-
setIcons
Traverse though fields declared within passed object and for each Action field annotated with @Icon, set the corresponding icon- Parameters:
o
-
-