-
Notifications
You must be signed in to change notification settings - Fork 0
CI_Lang
Mathieu Nayrolles edited this page Jan 20, 2016
·
1 revision
Language Class
- Class name: CI_Lang
- Namespace:
public array $language = array()
List of translations
- Visibility: public
public array $is_loaded = array()
List of loaded language files
- Visibility: public
void CI_Lang::__construct()
Class constructor
- Visibility: public
void|array<mixed,string> CI_Lang::load(mixed $langfile, string $idiom, boolean $return, boolean $add_suffix, string $alt_path)
Load a language file
- Visibility: public
- $langfile mixed - <p>Language file name</p>
- $idiom string - <p>Language name (english, etc.)</p>
- $return boolean - <p>Whether to return the loaded array of translations</p>
- $add_suffix boolean - <p>Whether to add suffix to $langfile</p>
- $alt_path string - <p>Alternative path to look for the language file</p>
string CI_Lang::line(string $line, boolean $log_errors)
Language line
Fetches a single line of text from the language array
- Visibility: public
- $line string - <p>Language line key</p>
- $log_errors boolean - <p>Whether to log an error message if the line is not found</p>