///////////////////////////////////////////////////////////////////////////// // Name: intl.h // Purpose: interface of wxLocale // Author: wxWidgets team // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** This is the layout direction stored in wxLanguageInfo and returned by wxApp::GetLayoutDirection(), wxWindow::GetLayoutDirection(), wxDC::GetLayoutDirection() for RTL (right-to-left) languages support. */ enum wxLayoutDirection { wxLayout_Default, wxLayout_LeftToRight, wxLayout_RightToLeft }; /** Encapsulates a ::wxLanguage identifier together with OS-specific information related to that language. @beginWxPerlOnly In wxPerl @c Wx::LanguageInfo has only one method: - Wx::LanguageInfo->new(language, canonicalName, WinLang, WinSubLang, Description) @endWxPerlOnly */ struct wxLanguageInfo { /// ::wxLanguage id. /// It should be greater than @c wxLANGUAGE_USER_DEFINED when defining your own /// language info structure. int Language; /** Tag for locale in BCP 47-like notation. @since 3.1.6 */ wxString LocaleTag; /// Canonical name of the language, e.g. @c fr_FR. wxString CanonicalName; /** Canonical reference including region. Set, if the name specifies the language only, e.g. fr_FR for fr. Empty, if region is unknown or already part of the name. @since 3.1.6 */ wxString CanonicalRef; //@{ /** Win32 language identifiers (LANG_xxxx, SUBLANG_xxxx). @onlyfor{wxmsw} */ wxUint32 WinLang, WinSublang; //@} /// Human-readable name of the language in English. wxString Description; /** Human-readable name of the language in this language itself. @since 3.1.6 */ wxString DescriptionNative; /// The layout direction used for this language. wxLayoutDirection LayoutDirection; /// Return the LCID corresponding to this language. /// @onlyfor{wxmsw} wxUint32 GetLCID() const; /** Return the locale name corresponding to this language usable with @c setlocale() on the current system. If setting locale for this language is not supported, the returned string is empty. */ wxString GetLocaleName() const; }; /** The type of a locale tag. @see wxLocaleIdent::GetTag() @since 3.1.6 */ enum wxLocaleTagType { /// Default (tag as given or else same as wxLOCALE_TAGTYPE_SYSTEM) wxLOCALE_TAGTYPE_DEFAULT, /// Default type of the system (platform-dependent). wxLOCALE_TAGTYPE_SYSTEM, /// BCP47-like type: [-