Update language.php

This commit is contained in:
Max Kostikov 2018-10-13 00:12:17 +02:00
parent de59300aaf
commit 3e19c4ddae

View File

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