Class jLocale

Description

static class to get a localized string

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


	
			
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 27)
Methods
static get (line 62)

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 46)

gets the current country.

static string getCurrentCountry ()
static getCurrentLang (line 38)

gets the current lang

static string getCurrentLang ()

Documentation generated on Thu, 22 Mar 2012 22:16:26 +0100 by phpDocumentor 1.4.3