Localization
The default installation of FUEL CMS currently only comes with the English langauge. However, localization efforts are underway on the FUEL CMS Languages GitHub repo.
The following are some key areas in which you can utilize FUEL's localization functionality.
The lang() Function
The lang() overwrites the CodeIgniter lang() function to provide the added benfits of passing arguments to your language files (uses sprintf() function).
The json_lang() Function
The json_lang() function allows for language values to be passed to the javascript. This function creates a Javascript JSON object based on an array of language key values.
Form_builder Class
The Form_builder class is used throughout FUEL CMS to create the forms used to manage module data. To allow for the localized labels in the module forms, the lang_prefix property can be used and will look for labels in language files using the format form_label_{literal}{field_name}{/literal}, if not label value is supplied.
Data_table Class
Similar to the Form_builder class, the Data_table class also has a lang_prefix property. This prefix is used for localizing the table column headers. The prefix is set in FUEL to be the same as the Form_builder's which is form_label_.
The js_localized Module Property
The js_localized property can be added to your modules if you have have javascript that needs to use some localized text. You can provide it an array of language key values and it will be added to the list of language keys that get translated into a JSON object for your javascript files to consume. If you are using a jqx type controller that extends the BaseFuelController.js, there will be a localized property and a lang() method on the controller that provides access to the JSON language object.