mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-15 04:23:58 +02:00
Get lang name in more right way
This commit is contained in:
@@ -45,7 +45,7 @@ if (!in_array("all", $langs) || !in_array("en", $langs))
|
|||||||
|
|
||||||
if (in_array("all", $langs))
|
if (in_array("all", $langs))
|
||||||
$langs = array_map(
|
$langs = array_map(
|
||||||
function($i) { return str_replace("src/i18n/", "", str_replace(".json", "", $i)); },
|
function($lang_file) {return pathinfo($lang_file)['filename']; },
|
||||||
glob("src/i18n/*.json")
|
glob("src/i18n/*.json")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user