Locale
A PHRUTS_Locale object represents a specific geographical, political, or cultural region. An operation that requires a PHRUTS_Locale to perform its task is called locale-sensitive and uses the PHRUTS_Locale to tailor information for the user.
The language argument is a valid ISO Language Code. These codes are the lower-case, two-letter codes as defined by ISO-639. You can find a full list of these codes at a number of sites, such as: http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt.
The country argument is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166. You can find a full list of these codes at a number of sites, such as: http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html.
The variant argument is a vendor or browser-specific code. For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX. Where there are two variants, separate them with an underscore, and put the most important one first. For example, a Traditional Spanish collation might construct a locale with parameters for language, country and variant as: "es", "ES", "Traditional_WIN".
Located in /util/PHRUTS_Locale.php (line 51)
PHRUTS_Locale which represents the English speaking portion of Canada.
PHRUTS_Locale which represents the French speaking portion of Canada.
PHRUTS_Locale which represents China.
Same as SIMPLIFIED_CHINESE PHRUTS_Locale.
PHRUTS_Locale which represents the Chinese language.
The default locale.
PHRUTS_Locale which represents the English language.
PHRUTS_Locale which represents France.
PHRUTS_Locale which represents the French language.
PHRUTS_Locale which represents the German language.
PHRUTS_Locale which represents Germany.
PHRUTS_Locale which represents the Italian language.
PHRUTS_Locale which represents Italy.
PHRUTS_Locale which represents Japan.
PHRUTS_Locale which represents the Japanese language.
PHRUTS_Locale which represents Korea.
PHRUTS_Locale which represents the Korean language.
PHRUTS_Locale which represents the People's Republic of China.
Same as CHINA Locale.
Locale which represents the Chinese language as used in China.
PHRUTS_Locale which represents Taiwan.
Same as TRADITIONAL_CHINESE Locale.
PHRUTS_Locale which represents the Chinese language as used in Taiwan.
Same as TAIWAN Locale.
PHRUTS_Locale which represents the United Kingdom.
PHRUTS_Locale which represents the United States.
The country code, as returned by getCountry().
The language code, as returned by getLanguage().
The variant code, as returned by getVariant().
Returns the default PHRUTS_Locale.
The default locale is generally once set on start up and then never changed. Normally you should use this locale for everywhere you need a locale. The initial setting matches the default locale, the user has chosen.
Changes the default locale.
Normally only called on program start up.
Construct a locale from language, country, variant.
Compares two locales.
To be equal, obj must be a Locale with the same language, country and variant code.
Returns the country code of this locale.
Returns the language code of this locale.
Returns the variant code of this locale.
Gets the string representation of the current locale.
This consists of the language, the country, and the variant, separated by an underscore. The variant is listed only if there is a language or country.
Examples : 'en', 'de_DE', '_GB', 'en_US_WIN', 'de__POSIX', 'fr__MAC'
Documentation generated on Sat, 31 May 2008 15:46:18 +0200 by phpDocumentor 1.4.1