Classes | |
struct | wxLanguageInfo |
Encapsulates a wxLanguage identifier together with OS-specific information related to that language. More... | |
class | wxLocale |
wxLocale class encapsulates all language-dependent settings and is a generalization of the C locale concept. More... | |
Functions | |
wxLocale * | wxGetLocale () |
Get the current locale object (note that it may be nullptr!) More... | |
enum wxLayoutDirection |
This is the layout direction stored in wxLanguageInfo and returned by wxApp::GetLayoutDirection(), wxWindow::GetLayoutDirection(), wxDC::GetLayoutDirection() for RTL (right-to-left) languages support.
Enumerator | |
---|---|
wxLayout_Default | |
wxLayout_LeftToRight | |
wxLayout_RightToLeft |
enum wxLocaleCategory |
The category of locale settings.
Enumerator | |
---|---|
wxLOCALE_CAT_NUMBER | Number formatting. |
wxLOCALE_CAT_DATE | Date/time formatting. |
wxLOCALE_CAT_MONEY | Monetary values formatting. |
wxLOCALE_CAT_DEFAULT | Default category for the wxLocaleInfo value. This category can be used for values which only make sense for a single category, e.g. wxLOCALE_SHORT_DATE_FMT which can only be used with wxLOCALE_CAT_DATE. As this is the default value of the second parameter of wxLocale::GetInfo(), wxLOCALE_CAT_DATE can be omitted when asking for wxLOCALE_SHORT_DATE_FMT value.
|
enum wxLocaleForm |
The values understood by wxUILocale::GetLocalizedName().
The values specify the form of a localized name.
Enumerator | |
---|---|
wxLOCALE_FORM_NATIVE | Name should be returned in the language of the locale itself. |
wxLOCALE_FORM_ENGLISH | Name should be returned in English. |
enum wxLocaleInfo |
The values understood by wxLocale::GetInfo().
Note that for the wxLOCALE_*_FMT
constants (the date and time formats), the strings returned by wxLocale::GetInfo() use strftime() or, equivalently, wxDateTime::Format() format. If the relevant format couldn't be determined, an empty string is returned – there is no fallback value so that the application could determine the best course of actions itself in such case.
All of these values are used with wxLOCALE_CAT_DATE
in wxLocale::GetInfo() or, more typically, with wxLOCALE_CAT_DEFAULT
as they only apply to a single category.
enum wxLocaleInitFlags |
enum wxLocaleName |
The values understood by wxUILocale::GetLocalizedName().
The corresponding strings can be used to display the information in the UI.
Enumerator | |
---|---|
wxLOCALE_NAME_LOCALE | Display name of a locale. |
wxLOCALE_NAME_LANGUAGE | Display name of the language of a locale. |
wxLOCALE_NAME_COUNTRY | Display name of the country/region of a locale. |
enum wxLocaleTagType |
The type of a locale tag.
wxLocale* wxGetLocale | ( | ) |
Get the current locale object (note that it may be nullptr!)