_init()
delete()
get()
get_lang()
load()
save()
set()
set_lang()
$fallback
$lines
$loaded_files
_init()
delete(string $item, string $group, string | null $language) : array | bool
string
a (dot notated) language key
string
group
string
null
name of the language to set, null for the configured language
array
bool
the \Arr::delete result, success boolean or array of success booleansget(string $line, array $params, mixed $default, string | null $language) : mixed
string
key for the line
array
array of params to str_replace
mixed
default value to return
string
null
name of the language to get, null for the configured language
mixed
either the line or default when not foundget_lang() : string
string
currently active languageload(mixed $file, mixed $group, string | null $language, bool $overwrite, bool $reload) : array
mixed
string file | language array | Lang_Interface instance
mixed
null for no group, true for group is filename, false for not storing in the master lang
string
null
name of the language to load, null for the configured language
bool
true for array_merge, false for \Arr::merge
bool
true to force a reload even if the file is already loaded
\FuelException |
---|
array
the (loaded) language arraysave(string $file, string | array $lang, string | null $language) : bool
string
desired file name
string
array
master language array key or language array
string
null
name of the language to load, null for the configured language
\LangException |
---|
bool
false when language is empty or invalid else \File::update resultset(string $line, mixed $value, string $group, string | null $language) : void
string
a (dot notated) language key
mixed
the language string
string
group
string
null
name of the language to set, null for the configured language
set_lang(string $language, bool $reload) : bool
string
name of the language to activate
bool
true to force a reload of already loaded language files
bool
success boolean, false if no language or the current was passed, true otherwise$fallback : array
$lines : array
$loaded_files : array