Description of Translation

author fhabermann

 Methods

add translation by locale and path to file

addTranslation(\type $locale, \type $file) 

Parameters

$locale

\type

$file

\type

get active locale

getLocale() 

getLocaleFile()

getLocaleFile() 

get array with translations

getTranslations($ordered) : array

Parameters

$ordered

return ordered list by key

Returns

array

load translations from path

loadTranslations(\type $path) 

Parameters

$path

\type

set active locale

setLocale($locale, bool $saveInSession) 

Parameters

$locale

$saveInSession

bool

 Properties

 

$locale 
 

$translations : \$translations