\LanguageManager

Class takes care of the translation.

Summary

Methods
Properties
Constants
init()
setLanguage()
getAllLanguages()
getCurrentLanguage()
getTranslation()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
updateClasses()
$allLangs
$trans
$lang
N/A

Properties

$allLangs

$allLangs : 

Type

$trans

$trans : 

Type

$lang

$lang : 

Type

Methods

init()

init() 

Load Translation and set on other classes

setLanguage()

setLanguage(  $lang) 

Change the language of the site see $allLangs for list

Parameters

$lang

getAllLanguages()

getAllLanguages() 

Gets all languages and their names

getCurrentLanguage()

getCurrentLanguage() 

Gets the current language Key.

getTranslation()

getTranslation(  $key) 

Gets the current translation for a key

Parameters

$key

updateClasses()

updateClasses() 

Sets the current language to system classes