Package megamek
Class SuiteOptions
java.lang.Object
megamek.SuiteOptions
- Direct Known Subclasses:
MMOptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis is a temporary Locale getter for dates, which sets the stage for suite-wide localization.This is a temporary Locale getter, which sets the stage for suite-wide localization.static LocaleReturns the Locale used for formatting and parsing numbers (grouping and decimal separators).
-
Field Details
-
userPreferences
-
-
Constructor Details
-
SuiteOptions
protected SuiteOptions()
-
-
Method Details
-
getLocale
This is a temporary Locale getter, which sets the stage for suite-wide localization. -
getDateLocale
This is a temporary Locale getter for dates, which sets the stage for suite-wide localization. -
getNumberFormatLocale
Returns the Locale used for formatting and parsing numbers (grouping and decimal separators). Each application applies this as the defaultLocale.Category.FORMATLocale at startup so that numbers display the same way throughout the suite, regardless of the operating system's regional settings or the chosen UI language.This is fixed to
Locale.USfor now and is the hook for a future user-facing number format option.- Returns:
- the Locale to use for number formatting
-