added wxLocale::IsAvailable() (extended patch 1547191)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-09-10 23:28:20 +00:00
parent 6ea0cc70f7
commit cec5ffc46d
5 changed files with 87 additions and 7 deletions

View File

@@ -58,6 +58,7 @@ All:
- Added wxDir::FindFirst() (Francesco Montorsi)
- Added wxPlatformInfo class (Francesco Montorsi)
- Added wxLocale::IsAvailable() (Creighton)
All (GUI):

View File

@@ -418,6 +418,24 @@ translate the messages using the message catalogs for this locale.
Returns true on success or false if the given locale couldn't be set.
\membersection{wxLocale::IsAvailable}\label{wxlocaleisavailable}
\func{static bool}{IsAvailable}{\param{int }{lang}}
Check whether the operating system and/or C run time environment supports
this locale. For example in Windows 2000 and Windows XP, support for many
locales is not installed by default. Returns \true if the locale is
supported.
The argument \arg{lang} is the wxLanguage identifier. To obtain this for a
given a two letter ISO language code, use
\helpref{FindLanguageInfo}{wxlocalefindlanguageinfo} to obtain its
wxLanguageInfo structure. See \helpref{AddLanguage}{wxlocaleaddlanguage} for
the wxLanguageInfo description.
\newsince{2.7.1}. Currently only implemented under Windows.
\membersection{wxLocale::IsLoaded}\label{wxlocaleisloaded}
\constfunc{bool}{IsLoaded}{\param{const char* }{domain}}