Update language.php
This commit is contained in:
parent
de59300aaf
commit
3e19c4ddae
@ -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;";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user