_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
stringa (dot notated) language key
stringgroup
stringnullname of the language to set, null for the configured language
arrayboolthe \Arr::delete result, success boolean or array of success booleansget(string $line, array $params, mixed $default, string | null $language) : mixed
stringkey for the line
arrayarray of params to str_replace
mixeddefault value to return
stringnullname of the language to get, null for the configured language
mixedeither the line or default when not foundget_lang() : string
stringcurrently active languageload(mixed $file, mixed $group, string | null $language, bool $overwrite, bool $reload) : array
mixedstring file | language array | Lang_Interface instance
mixednull for no group, true for group is filename, false for not storing in the master lang
stringnullname of the language to load, null for the configured language
booltrue for array_merge, false for \Arr::merge
booltrue to force a reload even if the file is already loaded
\FuelException |
|---|
arraythe (loaded) language arraysave(string $file, string | array $lang, string | null $language) : bool
stringdesired file name
stringarraymaster language array key or language array
stringnullname of the language to load, null for the configured language
\LangException |
|---|
boolfalse when language is empty or invalid else \File::update resultset(string $line, mixed $value, string $group, string | null $language) : void
stringa (dot notated) language key
mixedthe language string
stringgroup
stringnullname of the language to set, null for the configured language
set_lang(string $language, bool $reload) : bool
stringname of the language to activate
booltrue to force a reload of already loaded language files
boolsuccess boolean, false if no language or the current was passed, true otherwise$fallback : array
$lines : array
$loaded_files : array