1999-02-15 18:04:52 -05:00
\section { \class { wxLocale} } \label { wxlocale}
1999-02-16 15:17:02 -05:00
wxLocale class encapsulates all language-dependent settings and is a
generalization of the C locale concept.
1999-02-15 18:04:52 -05:00
2004-05-04 04:27:20 -04:00
In wxWidgets this class manages message catalogs which contain the translations
1999-02-15 18:04:52 -05:00
of the strings used to the current language.
2001-11-23 17:08:45 -05:00
\perlnote { In wxPerl you can't use the '\_ ' function name, so
the { \tt Wx::Locale} module can export the { \tt gettext} and
{ \tt gettext\_ noop} under any given name.
2004-02-21 20:16:32 -05:00
2000-12-20 11:10:46 -05:00
\begin { verbatim}
2001-11-23 17:08:45 -05:00
# this imports gettext ( equivalent to Wx::GetTranslation
# and gettext_ noop ( a noop )
# into your module
use Wx::Locale qw(:default);
2000-12-20 11:10:46 -05:00
# ....
2001-11-23 17:08:45 -05:00
# use the functions
print gettext( ``Panic!'' );
2000-12-20 11:10:46 -05:00
2001-11-23 17:08:45 -05:00
button = Wx::Button->new( window, -1, gettext( ``Label'' ) );
\end { verbatim}
2004-02-21 20:16:32 -05:00
2001-11-23 17:08:45 -05:00
If you need to translate a lot of strings, then adding gettext( ) around
each one is a long task ( that is why \_ ( ) was introduced ), so just choose
a shorter name for gettext:
2004-02-21 20:16:32 -05:00
2001-11-23 17:08:45 -05:00
\begin { verbatim}
#
use Wx::Locale 'gettext' => 't',
'gettext_ noop' => 'gettext_ noop';
# ...
# use the functions
print t( ``Panic!!'' );
# ...
2000-12-20 11:10:46 -05:00
\end { verbatim}
2004-02-21 20:16:32 -05:00
} %
2000-12-20 11:10:46 -05:00
1999-02-15 18:04:52 -05:00
\wxheading { Derived from}
No base class
1999-02-26 20:26:26 -05:00
\wxheading { See also}
2002-12-05 07:04:51 -05:00
\helpref { Internationalization overview} { internationalization} ,\\
\helpref { Internat sample} { sampleinternat}
1999-02-26 20:26:26 -05:00
1999-02-16 15:17:02 -05:00
\wxheading { Include files}
<wx/intl.h>
2007-07-28 08:21:03 -04:00
\wxheading { Library}
\helpref { wxBase} { librarieslist}
2001-01-18 19:20:49 -05:00
1999-02-15 18:04:52 -05:00
\latexignore { \rtfignore { \wxheading { Members} } }
2001-01-18 19:20:49 -05:00
2004-07-12 18:22:31 -04:00
2001-01-18 19:20:49 -05:00
\membersection { Supported languages} \label { wxlanguage}
2004-08-15 11:29:34 -04:00
See \helpref { list of recognized language constants} { languagecodes} .
These constants may be used to specify the language
2001-01-18 19:20:49 -05:00
in \helpref { Init} { wxlocaleinit} and are returned by
\helpref { GetSystemLanguage} { wxlocalegetsystemlanguage} :
2001-03-25 17:19:44 -05:00
1999-02-15 18:04:52 -05:00
\membersection { wxLocale::wxLocale} \label { wxlocaledefctor}
\func { } { wxLocale} { \void }
This is the default constructor and it does nothing to initialize the object:
1999-02-16 15:17:02 -05:00
\helpref { Init()} { wxlocaleinit} must be used to do that.
1999-02-15 18:04:52 -05:00
2001-01-18 19:20:49 -05:00
\func { } { wxLocale} { \param { int } { language} , \param { int } { flags =
wxLOCALE\_ LOAD\_ DEFAULT | wxLOCALE\_ CONV\_ ENCODING} }
See \helpref { Init()} { wxlocaleinit} for parameters description.
2007-03-26 17:05:04 -04:00
\func { } { wxLocale} { \param { const wxString\& } { name} , \param { const wxString\& } { short = wxEmptyString} , \param { const wxString\& } { locale = wxEmptyString} , \param { bool } { bLoadDefault = true} , \param { bool } { bConvertEncoding = false} }
1999-02-15 18:04:52 -05:00
2001-01-18 19:20:49 -05:00
See \helpref { Init()} { wxlocaleinit} for parameters description.
1999-02-15 18:04:52 -05:00
The call of this function has several global side effects which you should
understand: first of all, the application locale is changed - note that this
will affect many of standard C library functions such as printf() or strftime().
Second, this wxLocale object becomes the new current global locale for the
application and so all subsequent calls to wxGetTranslation() will try to
translate the messages using the message catalogs for this locale.
2001-01-18 19:20:49 -05:00
2004-07-12 18:22:31 -04:00
1999-02-15 18:04:52 -05:00
\membersection { wxLocale::\destruct { wxLocale} } \label { wxlocaledtor}
\func { } { \destruct { wxLocale} } { \void }
1999-02-16 15:17:02 -05:00
The destructor, like the constructor, also has global side effects: the previously
1999-02-15 18:04:52 -05:00
set locale is restored and so the changes described in
\helpref { Init} { wxlocaleinit} documentation are rolled back.
2004-07-12 18:22:31 -04:00
1999-02-15 18:04:52 -05:00
\membersection { wxLocale::AddCatalog} \label { wxlocaleaddcatalog}
2007-03-26 17:05:04 -04:00
\func { bool} { AddCatalog} { \param { const wxString\& } { domain} }
1999-02-15 18:04:52 -05:00
2007-03-26 17:05:04 -04:00
\func { bool} { AddCatalog} { \param { const wxString\& } { domain} , \param { wxLanguage} { msgIdLanguage} , \param { const wxString\& } { msgIdCharset} }
2004-06-23 16:30:32 -04:00
2000-07-15 15:51:35 -04:00
Add a catalog for use with the current locale: it is searched for in standard
1999-02-16 15:17:02 -05:00
places (current directory first, then the system one), but you may also prepend
1999-02-15 18:04:52 -05:00
additional directories to the search path with
1999-02-16 15:17:02 -05:00
\helpref { AddCatalogLookupPathPrefix()} { wxlocaleaddcataloglookuppathprefix} .
1999-02-15 18:04:52 -05:00
2004-06-23 16:30:32 -04:00
All loaded catalogs will be used for message lookup by
\helpref { GetString()} { wxlocalegetstring} for the current locale.
1999-02-15 18:04:52 -05:00
2003-01-17 19:16:34 -05:00
Returns true if catalog was successfully loaded, false otherwise (which might
1999-02-15 18:04:52 -05:00
mean that the catalog is not found or that it isn't in the correct format).
2004-06-23 16:30:32 -04:00
The second form of this method takes two additional arguments,
\arg { msgIdLanguage} and \arg { msgIdCharset} .
\arg { msgIdLanguage} specifies the language of "msgid" strings in source code
(i.e. arguments to \helpref { GetString} { wxlocalegetstring} ,
\helpref { wxGetTranslation} { wxgettranslation} and the
\helpref { \_ ()} { underscore} macro). It is used if AddCatalog cannot find any
catalog for current language: if the language is same as source code language,
then strings from source code are used instead.
\arg { msgIdCharset} lets you specify the charset used for msgids in sources
in case they use 8-bit characters (e.g. German or French strings). This
argument has no effect in Unicode build, because literals in sources are
Unicode strings; you have to use compiler-specific method of setting the right
charset when compiling with Unicode.
By default (i.e. when you use the first form), msgid strings are assumed
to be in English and written only using 7-bit ASCII characters.
If you have to deal with non-English strings or 8-bit characters in the source
code, see the instructions in
\helpref { Writing non-English applications} { nonenglishoverview} .
2004-07-12 18:22:31 -04:00
1999-02-15 18:04:52 -05:00
\membersection { wxLocale::AddCatalogLookupPathPrefix} \label { wxlocaleaddcataloglookuppathprefix}
\func { void} { AddCatalogLookupPathPrefix} { \param { const wxString\& } { prefix} }
Add a prefix to the catalog lookup path: the message catalog files will be
2005-02-28 16:16:23 -05:00
looked up under prefix/<lang>/LC\_ MESSAGES, prefix/<lang> and prefix
1999-02-15 18:04:52 -05:00
(in this order).
2005-02-28 16:16:23 -05:00
This only applies to subsequent invocations of AddCatalog().
2004-07-12 18:22:31 -04:00
2001-01-18 19:20:49 -05:00
\membersection { wxLocale::AddLanguage} \label { wxlocaleaddlanguage}
2001-03-25 17:19:44 -05:00
\func { static void} { AddLanguage} { \param { const wxLanguageInfo\& } { info} }
2001-01-18 19:20:49 -05:00
Adds custom, user-defined language to the database of known languages. This
2002-06-07 16:15:28 -04:00
database is used in conjunction with the first form of
2001-01-18 19:20:49 -05:00
\helpref { Init} { wxlocaleinit} .
wxLanguageInfo is defined as follows:
\begin { verbatim}
struct WXDLLEXPORT wxLanguageInfo
{
int Language; // wxLanguage id
wxString CanonicalName; // Canonical name, e.g. fr_ FR
#ifdef _ _ WIN32_ _
wxUint32 WinLang, WinSublang; // Win32 language identifiers
// (LANG_ xxxx, SUBLANG_ xxxx)
#endif
wxString Description; // human-readable name of the language
} ;
\end { verbatim}
{ \it Language} should be greater than wxLANGUAGE\_ USER\_ DEFINED.
2001-11-23 17:08:45 -05:00
\perlnote { In wxPerl Wx::LanguageInfo has only one method:\par
Wx::LanguageInfo->new( language, canonicalName, WinLang, WinSubLang, Description )}
2001-01-18 19:20:49 -05:00
2004-07-12 18:22:31 -04:00
2004-09-29 07:25:34 -04:00
\membersection { wxLocale::FindLanguageInfo} \label { wxlocalefindlanguageinfo}
2003-02-04 11:43:10 -05:00
2005-02-06 12:27:04 -05:00
\func { static wxLanguageInfo *} { FindLanguageInfo} { \param { const wxString\& } { locale} }
2003-02-04 11:43:10 -05:00
This function may be used to find the language description structure for the
given locale, specified either as a two letter ISO language code (for example,
"pt"), a language code followed by the country code ("pt\_ BR") or a full, human
readable, language description ("Portuguese-Brazil").
Returns the information for the given language or { \tt NULL} if this language
is unknown. Note that even if the returned pointer is valid, the caller should
{ \it not} delete it.
\wxheading { See also}
\helpref { GetLanguageInfo} { wxlocalegetlanguageinfo}
2001-01-18 19:20:49 -05:00
2004-07-12 18:22:31 -04:00
2001-01-18 19:20:49 -05:00
\membersection { wxLocale::GetCanonicalName} \label { wxlocalegetcanonicalname}
2004-11-07 16:34:15 -05:00
\constfunc { wxString} { GetCanonicalName} { \void }
2001-01-18 19:20:49 -05:00
Returns the canonical form of current locale name. Canonical form is the
one that is used on UNIX systems: it is a two- or five-letter string in xx or
xx\_ YY format, where xx is ISO 639 code of language and YY is ISO 3166 code of
the country. Examples are "en", "en\_ GB", "en\_ US" or "fr\_ FR".
This form is internally used when looking up message catalogs.
Compare \helpref { GetSysName} { wxlocalegetsysname} .
2004-07-12 18:22:31 -04:00
2001-01-18 19:20:49 -05:00
\membersection { wxLocale::GetLanguage} \label { wxlocalegetlanguage}
\constfunc { int} { GetLanguage} { \void }
Returns \helpref { wxLanguage} { wxlanguage} constant of current language.
Note that you can call this function only if you used the form of
\helpref { Init} { wxlocaleinit} that takes wxLanguage argument.
2004-07-12 18:22:31 -04:00
2002-09-07 18:53:04 -04:00
\membersection { wxLocale::GetLanguageInfo} \label { wxlocalegetlanguageinfo}
\constfunc { static wxLanguageInfo *} { GetLanguageInfo} { \param { int } { lang} }
Returns a pointer to wxLanguageInfo structure containing information about the
given language or { \tt NULL} if this language is unknown. Note that even if the
returned pointer is valid, the caller should { \it not} delete it.
See \helpref { AddLanguage} { wxlocaleaddlanguage} for the wxLanguageInfo
description.
2004-07-12 18:22:31 -04:00
As with \helpref { Init} { wxlocaleinit} , \texttt { wxLANGUAGE\_ DEFAULT} has the
special meaning if passed as an argument to this function and in this case the
result of \helpref { GetSystemLanguage()} { wxlocalegetsystemlanguage} is used.
2003-06-13 06:16:19 -04:00
\membersection { wxLocale::GetLanguageName} \label { wxlocalegetlanguagename}
\constfunc { static wxString} { GetLanguageName} { \param { int } { lang} }
Returns English name of the given language or empty string if this
language is unknown.
2004-07-12 18:22:31 -04:00
See \helpref { GetLanguageInfo} { wxlocalegetlanguageinfo} for a remark about
special meaning of \texttt { wxLANGUAGE\_ DEFAULT} .
2001-01-18 19:20:49 -05:00
2000-08-08 02:11:51 -04:00
\membersection { wxLocale::GetLocale} \label { wxlocalegetlocale}
2007-03-26 17:05:04 -04:00
\constfunc { const wxString\& } { GetLocale} { \void }
2000-08-08 02:11:51 -04:00
Returns the locale name as passed to the constructor or
2001-01-18 19:20:49 -05:00
\helpref { Init()} { wxlocaleinit} . This is full, human-readable name,
e.g. "English" or "French".
2000-08-08 02:11:51 -04:00
2004-07-12 18:22:31 -04:00
2000-08-08 02:11:51 -04:00
\membersection { wxLocale::GetName} \label { wxlocalegetname}
2007-03-26 17:05:04 -04:00
\constfunc { const wxString\& } { GetName} { \void }
2000-08-08 02:11:51 -04:00
Returns the current short name for the locale (as given to the constructor or
the Init() function).
2004-07-12 18:22:31 -04:00
2000-08-08 02:11:51 -04:00
\membersection { wxLocale::GetString} \label { wxlocalegetstring}
2007-03-26 17:05:04 -04:00
\constfunc { const wxString\& } { GetString} { \param { const wxString\& } { origString} , \param { const wxString\& } { domain = wxEmptyString} }
2000-08-08 02:11:51 -04:00
2007-03-26 17:05:04 -04:00
\constfunc { const wxString\& } { GetString} { \param { const wxString\& } { origString} , \param { const wxString\& } { origString2} , \param { size\_ t } { n} , \param { const wxString\& } { domain = NULL} }
2003-10-04 18:43:46 -04:00
2000-08-08 02:11:51 -04:00
Retrieves the translation for a string in all loaded domains unless the szDomain
parameter is specified (and then only this catalog/domain is searched).
Returns original string if translation is not available
(in this case an error message is generated the first time
a string is not found; use \helpref { wxLogNull} { wxlogoverview} to suppress it).
2003-10-04 18:43:46 -04:00
The second form is used when retrieving translation of string that has
different singular and plural form in English or different plural forms in some
2007-03-26 17:05:04 -04:00
other language. It takes two extra arguments: \arg { origString}
2003-10-13 17:37:02 -04:00
parameter must contain the singular form of the string to be converted.
It is also used as the key for the search in the catalog.
2007-03-26 17:05:04 -04:00
The \arg { origString2} parameter is the plural form (in English).
2003-10-13 17:37:02 -04:00
The parameter \arg { n} is used to determine the plural form. If no
2007-03-26 17:05:04 -04:00
message catalog is found \arg { origString} is returned if `n == 1',
otherwise \arg { origString2} .
See \urlref { GNU gettext manual} { http://www.gnu.org/manual/gettext/html\_ chapter/gettext\_ 10.html\# SEC150} for additional information on plural forms handling.
2003-10-04 18:43:46 -04:00
2004-06-23 16:30:32 -04:00
This method is called by the \helpref { wxGetTranslation} { wxgettranslation}
function and \helpref { \_ ()} { underscore} macro.
2000-08-08 02:11:51 -04:00
\wxheading { Remarks}
Domains are searched in the last to first order, i.e. catalogs
added later override those added before.
2004-07-12 18:22:31 -04:00
2004-07-25 11:30:42 -04:00
\membersection { wxLocale::GetHeaderValue} \label { wxlocalegetheadervalue}
2007-03-26 17:05:04 -04:00
\constfunc { wxString} { GetHeaderValue} { \param { const wxString\& } { header} , \param { const wxString\& } { domain = wxEmptyString} }
2004-07-25 11:30:42 -04:00
2007-03-26 17:05:04 -04:00
Returns the header value for header \arg { header} . The search for \arg { header} is case sensitive. If an \arg { domain}
2004-07-25 11:30:42 -04:00
is passed, this domain is searched. Else all domains will be searched until a header has been found.
The return value is the value of the header if found. Else this will be empty.
2001-01-18 19:20:49 -05:00
\membersection { wxLocale::GetSysName} \label { wxlocalegetsysname}
\constfunc { wxString} { GetSysName} { \void }
Returns current platform-specific locale name as passed to setlocale().
Compare \helpref { GetCanonicalName} { wxlocalegetcanonicalname} .
2004-07-12 18:22:31 -04:00
2001-05-31 16:27:37 -04:00
\membersection { wxLocale::GetSystemEncoding} \label { wxlocalegetsystemencoding}
\constfunc { static wxFontEncoding} { GetSystemEncoding} { \void }
Tries to detect the user's default font encoding.
Returns \helpref { wxFontEncoding} { wxfont} value or
{ \bf wxFONTENCODING\_ SYSTEM} if it couldn't be determined.
2004-07-12 18:22:31 -04:00
2001-05-31 16:27:37 -04:00
\membersection { wxLocale::GetSystemEncodingName} \label { wxlocalegetsystemencodingname}
\constfunc { static wxString} { GetSystemEncodingName} { \void }
Tries to detect the name of the user's default font encoding. This string isn't
particularly useful for the application as its form is platform-dependent and
so you should probably use
\helpref { GetSystemEncoding} { wxlocalegetsystemencoding} instead.
Returns a user-readable string value or an empty string if it couldn't be
determined.
2004-07-12 18:22:31 -04:00
2001-01-18 19:20:49 -05:00
\membersection { wxLocale::GetSystemLanguage} \label { wxlocalegetsystemlanguage}
2001-03-25 17:19:44 -05:00
\constfunc { static int} { GetSystemLanguage} { \void }
2001-01-18 19:20:49 -05:00
Tries to detect the user's default language setting.
Returns \helpref { wxLanguage} { wxlanguage} value or
{ \bf wxLANGUAGE\_ UNKNOWN} if the language-guessing algorithm failed.
2004-07-12 18:22:31 -04:00
1999-02-15 18:04:52 -05:00
\membersection { wxLocale::Init} \label { wxlocaleinit}
2001-01-18 19:20:49 -05:00
\func { bool} { Init} { \param { int } { language = wxLANGUAGE\_ DEFAULT} , \param { int } { flags =
wxLOCALE\_ LOAD\_ DEFAULT | wxLOCALE\_ CONV\_ ENCODING} }
2007-03-26 17:05:04 -04:00
\func { bool} { Init} { \param { const wxString\& } { name} , \param { const wxString\& } { short = wxEmptyString} , \param { const wxString\& } { locale = wxEmptyString} , \param { bool } { bLoadDefault = true} , \param { bool } { bConvertEncoding = false} }
1999-02-15 18:04:52 -05:00
2001-01-18 19:20:49 -05:00
The second form is deprecated, use the first one unless you know what you are
doing.
1999-02-16 15:17:02 -05:00
2001-01-18 19:20:49 -05:00
\wxheading { Parameters}
\docparam { language} { \helpref { wxLanguage} { wxlanguage} identifier of the locale.
wxLANGUAGE\_ DEFAULT has special meaning -- wxLocale will use system's default
language (see \helpref { GetSystemLanguage} { wxlocalegetsystemlanguage} ).}
\docparam { flags} { Combination of the following:
2004-06-18 13:57:47 -04:00
2001-01-18 19:20:49 -05:00
\begin { twocollist} \itemsep =0pt
\twocolitem { \windowstyle { wxLOCALE\_ LOAD\_ DEFAULT} } { Load the message catalog
2004-05-04 04:27:20 -04:00
for the given locale containing the translations of standard wxWidgets messages
2001-01-18 19:20:49 -05:00
automatically.}
\twocolitem { \windowstyle { wxLOCALE\_ CONV\_ ENCODING} } { Automatically convert message
2002-03-15 18:29:22 -05:00
catalogs to platform's default encoding. Note that it will do only basic
2001-01-18 19:20:49 -05:00
conversion between well-known pair like iso8859-1 and windows-1252 or
iso8859-2 and windows-1250. See \helpref { Writing non-English applications} { nonenglishoverview} for detailed
2002-03-15 18:29:22 -05:00
description of this behaviour. Note that this flag is meaningless in Unicode build.}
2001-01-18 19:20:49 -05:00
\end { twocollist}
}
2007-03-26 17:05:04 -04:00
\docparam { name} { The name of the locale. Only used in diagnostic messages.}
2001-01-18 19:20:49 -05:00
2007-03-26 17:05:04 -04:00
\docparam { short} { The standard 2 letter locale abbreviation; it is used as the
2001-01-18 19:20:49 -05:00
directory prefix when looking for the message catalog files.}
2007-03-26 17:05:04 -04:00
\docparam { locale} { The parameter for the call to setlocale(). Note that it is
2001-01-18 19:20:49 -05:00
platform-specific.}
2003-01-17 19:16:34 -05:00
\docparam { bLoadDefault} { May be set to false to prevent loading of the message catalog
2004-05-04 04:27:20 -04:00
for the given locale containing the translations of standard wxWidgets messages.
2001-01-18 19:20:49 -05:00
This parameter would be rarely used in normal circumstances.}
2003-01-17 19:16:34 -05:00
\docparam { bConvertEncoding} { May be set to true to do automatic conversion of message
2001-01-01 06:32:56 -05:00
catalogs to platform's native encoding. Note that it will do only basic
conversion between well-known pair like iso8859-1 and windows-1252 or
iso8859-2 and windows-1250.
See \helpref { Writing non-English applications} { nonenglishoverview} for detailed
2001-01-18 19:20:49 -05:00
description of this behaviour.}
1999-02-15 18:04:52 -05:00
The call of this function has several global side effects which you should
understand: first of all, the application locale is changed - note that this
will affect many of standard C library functions such as printf() or strftime().
Second, this wxLocale object becomes the new current global locale for the
2004-06-23 16:30:32 -04:00
application and so all subsequent calls to
\helpref { wxGetTranslation()} { wxgettranslation} will try to
1999-02-15 18:04:52 -05:00
translate the messages using the message catalogs for this locale.
2003-01-17 19:16:34 -05:00
Returns true on success or false if the given locale couldn't be set.
1999-02-15 18:04:52 -05:00
2004-07-12 18:22:31 -04:00
2006-09-10 19:28:20 -04:00
\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.
2006-12-01 23:52:46 -05:00
\newsince { 2.7.1} .
2006-09-10 19:28:20 -04:00
1999-02-15 18:04:52 -05:00
\membersection { wxLocale::IsLoaded} \label { wxlocaleisloaded}
1999-02-16 15:17:02 -05:00
\constfunc { bool} { IsLoaded} { \param { const char* } { domain} }
2003-01-17 19:16:34 -05:00
Check if the given catalog is loaded, and returns true if it is.
1999-02-15 18:04:52 -05:00
1999-02-16 15:17:02 -05:00
According to GNU gettext tradition, each catalog
normally corresponds to 'domain' which is more or less the application name.
1999-02-15 18:04:52 -05:00
See also: \helpref { AddCatalog} { wxlocaleaddcatalog}
2004-07-12 18:22:31 -04:00
2000-08-08 02:11:51 -04:00
\membersection { wxLocale::IsOk} \label { wxlocaleisok}
1999-02-15 18:04:52 -05:00
2000-08-08 02:11:51 -04:00
\constfunc { bool} { IsOk} { \void }
1999-02-16 15:17:02 -05:00
2003-01-17 19:16:34 -05:00
Returns true if the locale could be set successfully.
1999-02-16 15:17:02 -05:00