mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-06 07:43:14 +02:00
Default Languages loading issue fix
This commit is contained in:
parent
704bec368f
commit
f26977adb3
|
@ -3366,7 +3366,8 @@ function lng($txt) {
|
|||
$tr['en']['Settings'] = 'Settings'; $tr['en']['Language'] = 'Language';
|
||||
$tr['en']['MemoryUsed'] = 'Memory used'; $tr['en']['PartitionSize'] = 'Partition size';
|
||||
|
||||
$tr = fm_get_translations($tr);
|
||||
$i18n = fm_get_translations($tr);
|
||||
$tr = $i18n ? $i18n : $tr;
|
||||
|
||||
if (!strlen($lang)) $lang = 'en';
|
||||
if (isset($tr[$lang][$txt])) return fm_enc($tr[$lang][$txt]);
|
||||
|
|
Loading…
Reference in a new issue