Package VASSAL.i18n
Class Resources
java.lang.Object
VASSAL.i18n.Resources
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Custom Class Loader for loading VASSAL property files. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static final String
static final String
static final String
protected static final String
static final String
protected BundleHelper
protected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected Locale
static final String
Preferences key for the user's Localestatic final String
static final String
protected static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
protected static final String
protected BundleHelper
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
formatDate
(Date date) Return a standard formatted localised dateprotected BundleHelper
protected BundleHelper
static Locale
static String
getString Return a translated string for the specified key, using the current language bundlesstatic String
getString Return a translated string for the specified key, using the current language bundlesstatic Collection
<Locale> protected BundleHelper
static Collection
<String> static void
-
Field Details
-
VASSAL
- See Also:
-
VASSAL_BUNDLE
- See Also:
-
EDITOR_BUNDLE
- See Also:
-
BASE_BUNDLE
- See Also:
-
EN_BUNDLE
- See Also:
-
vassalBundle
-
editorBundle
-
LOCALE_PREF_KEY
Preferences key for the user's Locale- See Also:
-
supportedLocales
-
locale
-
DATE_FORMAT
- See Also:
-
MODULE_BUNDLE
- See Also:
-
ADD
- See Also:
-
REMOVE
- See Also:
-
INSERT
- See Also:
-
YES
- See Also:
-
NO
- See Also:
-
CANCEL
- See Also:
-
SAVE
- See Also:
-
OK
- See Also:
-
MENU
- See Also:
-
LOAD
- See Also:
-
QUIT
- See Also:
-
EDIT
- See Also:
-
NEW
- See Also:
-
FILE
- See Also:
-
TOOLS
- See Also:
-
HELP
- See Also:
-
CLOSE
- See Also:
-
DATE_DISPLAY
- See Also:
-
NEXT
- See Also:
-
REFRESH
- See Also:
-
SELECT
- See Also:
-
EDITOR_PREFIX
- See Also:
-
BUTTON_TEXT
- See Also:
-
TOOLTIP_TEXT
- See Also:
-
BUTTON_ICON
- See Also:
-
HOTKEY_LABEL
- See Also:
-
COLOR_LABEL
- See Also:
-
NAME_LABEL
- See Also:
-
DESCRIPTION
- See Also:
-
REPORT_FORMAT_LABEL
- See Also:
-
COMMAND_NAME_LABEL
- See Also:
-
KEYBOARD_COMMAND_LABEL
- See Also:
-
NAME_FORMAT_LABEL
- See Also:
-
MENU_COMMAND_LABEL
- See Also:
-
HORIZONTAL_OFFSET_LABEL
- See Also:
-
VERTICAL_OFFSET_LABEL
- See Also:
-
VALUE_LABEL
- See Also:
-
-
Method Details
-
getSupportedLocales
-
addSupportedLocale
-
getVassalKeys
-
getEditorKeys
-
getString
getString Return a translated string for the specified key, using the current language bundles- Parameters:
id
- Key of string to translate- Returns:
- Translated String
-
getString
getString Return a translated string for the specified key, using the current language bundles- Parameters:
id
- Key of string to translateparams
- Additional parameters that need to be inserted into the string- Returns:
- Translated String
-
getBundleForKey
-
getEditorBundle
-
getVassalBundle
-
setLocale
-
getLocale
-
formatDate
Return a standard formatted localised date- Parameters:
date
- date to format- Returns:
- formatted localized date
-