Update language.php
This commit is contained in:
parent
0de713ff36
commit
8e5189464e
@ -276,9 +276,10 @@ function ta($k){
|
|||||||
function tf() {
|
function tf() {
|
||||||
|
|
||||||
$r = "";
|
$r = "";
|
||||||
$file = "view/".str_replace('-', '_', App::$language)."/hstrings.php";
|
$lang = str_replace('-', '_', App::$language);
|
||||||
if(file_exists($file))
|
$file = "view/$lang/hstrings.php";
|
||||||
$r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'"));
|
if(function_exists("string_plural_select_".$lang))
|
||||||
|
$r = trim(shell_exec("sed -n '5p' ".$file." | grep 'return' | tr -d '$'"));
|
||||||
return ($r != "" ? $r : "return 0;");
|
return ($r != "" ? $r : "return 0;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user