Package VASSAL.i18n
Class Resources
java.lang.Object
VASSAL.i18n.Resources
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassCustom Class Loader for loading VASSAL property files. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringstatic final Stringstatic final Stringprotected static final Stringstatic final Stringprotected BundleHelperprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected Localestatic final StringPreferences key for the user's Localestatic final Stringstatic final Stringprotected static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringprotected BundleHelperstatic final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic StringformatDate(Date date) Return a standard formatted localised dateprotected BundleHelperprotected BundleHelperstatic Localestatic StringgetString Return a translated string for the specified key, using the current language bundlesstatic StringgetString Return a translated string for the specified key, using the current language bundlesstatic Collection<Locale> protected BundleHelperstatic 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
-