Class CI_Lang - echiong/testRepo GitHub Wiki
##Class CI_Lang
Language Class
Package: [[CodeIgniter<a href="Package CodeIgniter.Libraries.md">Libraries]]
Category:
Language
Author:
ExpressionEngine Dev Team
Link:
http://codeigniter.com/user_guide/libraries/language.html
Located at system/core/Lang.php
##Methods summary
public __construct ( )
Constructor
public mixed load ( mixed $langfile = '', string $idiom = '', boolean $return = FALSE, boolean $add_suffix = TRUE, string $alt_path = '' )
Load a language file
Parameters
$langfile
mixed
the name of the language file to be loaded. Can be an array
$idiom
string
the language (english, etc.)
$return
boolean
return loaded array of translations
$add_suffix
boolean
add suffix to $langfile
$alt_path
string
alternative path to look for language file
Returns
mixed
public string line ( string $line = '' )
Fetch a single line of text from the language array
Parameters
$line
string
$line the language line
Returns
string
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="language" id="$language">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
$language
array()
<div class="description detailed">
List of translations
</div>
</div></td>
</tr>
<tr data-order="is_loaded" id="$is_loaded">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
$is_loaded
array()
<div class="description detailed">
List of loaded language files
</div>
</div></td>
</tr>
</table>