Package VASSAL.i18n
Class Resources
java.lang.Object
VASSAL.i18n.Resources
public class Resources extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Resources.VassalPropertyClassLoader
Custom Class Loader for loading VASSAL property files. -
Field Summary
-
Method Summary
Modifier and Type Method Description static void
addSupportedLocale(Locale l)
static String
formatDate(Date date)
Return a standard formatted localised dateprotected BundleHelper
getBundleForKey(String id)
protected BundleHelper
getEditorBundle()
Collection<String>
getEditorKeys()
static String
getEditorString(String id)
Deprecated.static Locale
getLocale()
static String
getString(String id)
Localize a user interface String.static String
getString(String id, Object... params)
static String
getString(ResourceBundle bundle, String id)
Deprecated.static Collection<Locale>
getSupportedLocales()
protected BundleHelper
getVassalBundle()
static Collection<String>
getVassalKeys()
static String
getVassalString(String id)
Deprecated.static void
setLocale(Locale l)
-
Field Details
-
vassalBundle
-
editorBundle
-
LOCALE_PREF_KEY
Preferences key for the user's Locale- See Also:
- Constant Field Values
-
supportedLocales
-
locale
-
DATE_FORMAT
-
MODULE_BUNDLE
- See Also:
- Constant Field Values
-
VASSAL
- See Also:
- Constant Field Values
-
ADD
- See Also:
- Constant Field Values
-
REMOVE
- See Also:
- Constant Field Values
-
INSERT
- See Also:
- Constant Field Values
-
YES
- See Also:
- Constant Field Values
-
NO
- See Also:
- Constant Field Values
-
CANCEL
- See Also:
- Constant Field Values
-
SAVE
- See Also:
- Constant Field Values
-
OK
- See Also:
- Constant Field Values
-
MENU
- See Also:
- Constant Field Values
-
LOAD
- See Also:
- Constant Field Values
-
QUIT
- See Also:
- Constant Field Values
-
EDIT
- See Also:
- Constant Field Values
-
NEW
- See Also:
- Constant Field Values
-
FILE
- See Also:
- Constant Field Values
-
TOOLS
- See Also:
- Constant Field Values
-
HELP
- See Also:
- Constant Field Values
-
CLOSE
- See Also:
- Constant Field Values
-
DATE_DISPLAY
- See Also:
- Constant Field Values
-
NEXT
- See Also:
- Constant Field Values
-
REFRESH
- See Also:
- Constant Field Values
-
SELECT
- See Also:
- Constant Field Values
-
EDITOR_PREFIX
- See Also:
- Constant Field Values
-
BUTTON_TEXT
- See Also:
- Constant Field Values
-
TOOLTIP_TEXT
- See Also:
- Constant Field Values
-
BUTTON_ICON
- See Also:
- Constant Field Values
-
HOTKEY_LABEL
- See Also:
- Constant Field Values
-
COLOR_LABEL
- See Also:
- Constant Field Values
-
NAME_LABEL
- See Also:
- Constant Field Values
-
DESCRIPTION
- See Also:
- Constant Field Values
-
BASE_BUNDLE
- See Also:
- Constant Field Values
-
EN_BUNDLE
- See Also:
- Constant Field Values
-
-
Method Details
-
getSupportedLocales
-
addSupportedLocale
-
getVassalKeys
-
getEditorKeys
-
getString
Localize a user interface String.- Parameters:
id
- String Id- Returns:
- Localized result
-
getBundleForKey
-
getEditorBundle
-
getVassalBundle
-
getVassalString
Deprecated.Localize a VASSAL user interface string- Parameters:
id
- String id- Returns:
- Localized result
-
getEditorString
Deprecated.Localize a VASSAL Module Editor String- Parameters:
id
- String Id- Returns:
- Localized Result
-
getString
Deprecated.Localize a string using the supplied resource bundle- Parameters:
bundle
- Resource bundleid
- String Id- Returns:
- Localized result
-
getString
-
setLocale
-
getLocale
-
formatDate
Return a standard formatted localised date- Parameters:
date
- date to format- Returns:
- formatted localized date
-