Skip to content
hectorl edited this page Nov 6, 2012 · 2 revisions

All language proccess is made in class.Lang.php. It creates a cookie to save the client selected language or the browser language.

By default, the static content localization is in langs/ folder. It uses one php file for each language. The file must be named as the language two digit code uppercase. Inside, there is a variable $t which is a big array with all translations (key => translation string).

But you can use any solution, just put it inside the get_translations method and remember to use the property $this->lang to get the two-digit client language.

Clone this wiki locally