Class jLocale

Description

static class to get a localized string

Located in /core/jLocale.class.php (line 169)


	
			
Variable Summary
static mixed $bundles
Method Summary
static string get (string $key, [array $args = null], [string $locale = null], [string $charset = null])
static string getCurrentCountry ()
static string getCurrentLang ()
Variables
static mixed $bundles = array() (line 173)
Methods
static get (line 208)

gets the correct string, for a given language.

if it can't get the correct language, it will try to gets the string from the default language. if both fails, it will raise an exception.

  • return: the localized string
static string get (string $key, [array $args = null], [string $locale = null], [string $charset = null])
  • string $key: the key of the localized string
  • array $args: arguments to apply to the localized string with sprintf
  • string $locale: the lang code. if null, use the default language
  • string $charset: the charset code. if null, use the default charset
static getCurrentCountry (line 192)

gets the current country.

static string getCurrentCountry ()
static getCurrentLang (line 184)

gets the current lang

static string getCurrentLang ()

Documentation generated on Wed, 07 Sep 2011 13:47:34 +0200 by phpDocumentor 1.4.3