Class lang

Description

Class for doing simple translations

Located in /lib/lang.php (line 14)


	
			
Variable Summary
static mixed $dict
static mixed $language
Method Summary
static void getLanguage ()
static void init ()
static void loadModuleLanguage (string $module)
static void loadModuleSystemLanguage (string $module)
static string translate (string $sentence)
Variables
static mixed $dict = array () (line 18)
  • access: public
static mixed $language = '' (line 16)
  • access: public
Methods
static getLanguage (line 20)
static void getLanguage ()
static init (line 31)

method for initing and loading correct language

includes translations found in database and translations found in top translation directory (lang),

static void init ()
static loadModuleLanguage (line 86)
static void loadModuleLanguage (string $module)
  • string $module: the base module to load (e.g. content or account)
static loadModuleSystemLanguage (line 107)
static void loadModuleSystemLanguage (string $module)
  • string $module: the base module to load (e.g. content or account)
static translate (line 72)

method for doing translations. If a translation is not found we prepend the untranslated string with 'NT' (needs translation)

  • return: translated string
static string translate (string $sentence)
  • string $sentence: the sentence to translate.

Documentation generated on Fri, 17 Dec 2010 17:56:35 +0100 by phpDocumentor 1.4.3