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 Stringprotected static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringprotected static Stringstatic Stringstatic Stringprotected static Stringstatic Stringprotected BundleHelperprotected static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringprotected Localestatic StringPreferences key for the user's Localestatic Stringstatic Stringprotected static Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringprotected static Stringprotected BundleHelperstatic Stringstatic String -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic StringformatDate(Date date)Return a standard formatted localised dateprotected BundleHelpergetBundleForKey(String id)protected BundleHelperstatic StringgetEditorString(String id)Deprecated, for removal: This API element is subject to removal in a future version.static 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 StringgetString(ResourceBundle bundle, String id)Deprecated, for removal: This API element is subject to removal in a future version.UsegetString(String, Object...)Insteadstatic Collection<Locale>protected BundleHelperstatic Collection<String>static StringgetVassalString(String id)Deprecated, for removal: This API element is subject to removal in a future version.UsegetString(String, Object...)Insteadstatic void
-
Field Details
-
VASSAL
- See Also:
- Constant Field Values
-
VASSAL_BUNDLE
- See Also:
- Constant Field Values
-
EDITOR_BUNDLE
- See Also:
- Constant Field Values
-
BASE_BUNDLE
- See Also:
- Constant Field Values
-
EN_BUNDLE
- See Also:
- Constant Field Values
-
vassalBundle
-
editorBundle
-
LOCALE_PREF_KEY
Preferences key for the user's Locale- See Also:
- Constant Field Values
-
supportedLocales
-
locale
-
DATE_FORMAT
- See Also:
- Constant Field Values
-
MODULE_BUNDLE
- 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
-
REPORT_FORMAT_LABEL
- See Also:
- Constant Field Values
-
COMMAND_NAME_LABEL
- See Also:
- Constant Field Values
-
KEYBOARD_COMMAND_LABEL
- See Also:
- Constant Field Values
-
NAME_FORMAT_LABEL
- See Also:
- Constant Field Values
-
MENU_COMMAND_LABEL
- See Also:
- Constant Field Values
-
HORIZONTAL_OFFSET_LABEL
- See Also:
- Constant Field Values
-
VERTICAL_OFFSET_LABEL
- See Also:
- Constant Field Values
-
VALUE_LABEL
- See Also:
- Constant Field Values
-
-
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
-
getVassalString
Deprecated, for removal: This API element is subject to removal in a future version.UsegetString(String, Object...)InsteadLocalize a VASSAL user interface string- Parameters:
id- String id- Returns:
- Localized result
-
getEditorString
Deprecated, for removal: This API element is subject to removal in a future version.UsegetString(String, Object...)InsteadLocalize a VASSAL Module Editor String- Parameters:
id- String Id- Returns:
- Localized Result
-
getString
@Deprecated(since="2020-08-06", forRemoval=true) public static String getString(ResourceBundle bundle, String id)Deprecated, for removal: This API element is subject to removal in a future version.UsegetString(String, Object...)InsteadLocalize a string using the supplied resource bundle- Parameters:
bundle- Resource bundleid- String Id- Returns:
- Localized result
-
setLocale
-
getLocale
-
formatDate
Return a standard formatted localised date- Parameters:
date- date to format- Returns:
- formatted localized date
-
getString(String, Object...)Instead