class CI_Lang
-
load($langfile[, $idiom = ''[, $return = FALSE[, $add_suffix = TRUE[, $alt_path = '']]]])
-
Parameters: - $langfile (mixed) – Language file to load or array with multiple files
- $idiom (string) – Language name (i.e. ‘english’)
- $return (bool) – Whether to return the loaded array of translations
- $add_suffix (bool) – Whether to add the ‘_lang’ suffix to the language file name
- $alt_path (string) – An alternative path to look in for the language file
Returns: Array of language lines if $return is set to TRUE, otherwise void
Return type: mixed
Loads a language file.
-
line($line[, $log_errors = TRUE])
-
Parameters: - $line (string) – Language line key name
- $log_errors (bool) – Whether to log an error if the line isn’t found
Returns: Language line string or FALSE on failure
Return type: string
Fetches a single translation line from the already loaded language files, based on the line’s name.
Please login to continue.