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 String
protected static String
static String
static String
static String
static String
static String
static String
static String
protected static String
static String
static String
protected static String
static String
protected BundleHelper
protected static String
static String
static String
static String
static String
static String
static String
static String
protected Locale
static String
Preferences key for the user's Localestatic String
static String
protected static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
static String
protected static String
protected BundleHelper
static String
static String
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static String
formatDate(Date date)
Return a standard formatted localised dateprotected BundleHelper
getBundleForKey(String id)
protected BundleHelper
static String
getEditorString(String id)
Deprecated, for removal: This API element is subject to removal in a future version.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 String
getString(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 BundleHelper
static Collection<String>
static String
getVassalString(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