Update language.php

This commit is contained in:
Max Kostikov 2018-10-13 02:14:19 +02:00
parent 8e5189464e
commit 6ae9ef571e

View File

@ -277,9 +277,8 @@ function tf() {
$r = "";
$lang = str_replace('-', '_', App::$language);
$file = "view/$lang/hstrings.php";
if(function_exists("string_plural_select_".$lang))
$r = trim(shell_exec("sed -n '5p' ".$file." | grep 'return' | tr -d '$'"));
$r = trim(shell_exec("sed -n '5p' view/".$lang."/hstrings.php | grep 'return' | tr -d '$'"));
return ($r != "" ? $r : "return 0;");
}