nsILocale
From MDC
The nsILocale interface is used to determine the locale in use for a particular category of text.
Contents |
nsILocale is defined in intl/locale/idl/nsILocale.idl. It is scriptable and
unfrozen (hasn't changed since Mozilla 1.0).
Inherits from: nsISupports
[edit] Method overview
AString getCategory(in AString category);
|
[edit] Methods
[edit] getCategory()
Retrieves a string with the current locale name.
AString getCategory(AString category);
[edit] Parameters
- category
- A string representing the category to retrieve the locale for. Valid strings are stored in nsILocal.idl. Currently those are:
NSILOCALE_COLLATENSILOCALE_CTYPENSILOCALE_MONETARYNSILOCALE_NUMERICNSILOCALE_TIMENSILOCALE_MESSAGES
[edit] Return value
Returns the name of the locale.