Class Locale
Locale
Namespace: Xoops
Copyright: 2011-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: trabis lusopoemas@gmail.com
Located at oops_lib/Xoops/Locale.php
Copyright: 2011-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: trabis lusopoemas@gmail.com
Located at oops_lib/Xoops/Locale.php
public static
string
|
|
public static
|
|
public static
DateTimeZone
|
|
public static
|
|
protected static
DateTimeZone
|
#
newDateTimeZone( string $timeZoneName )
Instantiate a new DateTimeZone object for a timezone name, with fallback to UTC on error |
public static
DateTimeZone
|
|
public static
DateTimeZone
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
string
|
|
public static
string
|
|
protected static
string
|
|
protected static
string
|
|
public static
array
|
#
getUserLocales( )
getUserLocales() Returns the user locales Normally it returns an array like this: 1. Forced language 2. Language in $_GET['lang'] 3. Language in $_SESSION['lang'] 4. HTTP_ACCEPT_LANGUAGE 5. Fallback language Note: duplicate values are deleted. |
public static
string
|
#
normalizeLocale( string $locale, string $separator = '_', boolean $withScript = true )
Convert a locale designation to a normal form ll_Ssss_CC, where ll is language code Ssss is the script code, if specified CC is the country code, if specified |
string |
FALLBACK_LOCALE
|
#
'en_US'
|
protected static
|
$currentLocale
|
#
null
|
protected static
|
$currentTimeZone
|
#
null
|
protected static
|
$defaultTimeZone
|
#
null
|
protected static
|
$systemTimeZone
|
#
null
|
protected static
array
|
$userLocales
|
#
array()
|