FUEL CMS User Guide : Version 1.3.2


My Language Helper

This helper is designed to help with language files.

Function Reference [+]

lang('$key', ['$args'=NULL])

Get translated local strings with arguments. Overwrites CI langauge_helper to have a more useful args.

Returns

string

Parameters

(string) $key 
(mixed) $args 

json_lang([$js_localized=array()], ['$return_json'=TRUE])

Creates an array or JSON aobject for your javascript files that need localization.

Returns

string

Parameters

(array) $js_localized 
(boolean) $return_json 

detect_lang(['$set_config'=FALSE])

Detects any specified language settings pulling from the URI, query string and then the user's browser settings.

Returns

string

Parameters

(boolean) $set_config Determines whether to set the "langauge" config property