Skip to content
abidibo edited this page Mar 21, 2012 · 6 revisions

This is the module used to manage languages in Jeff. Jeff can manage an indefinite number of languages. These languages are inserted and managed through this module. Each language maybe set to active or inactive. Only active languages appears in the choose box and may be chosen by the user. There is one language set as default, is the one used if no different one is chosen. At this moment Jeff can manage translation of each kind of string in the code, but not yet the database data.

To use localization when writing code or templates, just create an identifier for the string and call it through the function __() (defined in the php function library), i.e. __('cardDescription'). Then put the right translation in the localization files associated with the id cardDescription. The system will then select the proper string depending on the navigation language.

##languageController extends controller

##language extends model

Clone this wiki locally