aboutsummaryrefslogtreecommitdiffstats
path: root/include/language.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/language.php')
-rw-r--r--include/language.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/language.php b/include/language.php
index 790c036d3..38e38fd69 100644
--- a/include/language.php
+++ b/include/language.php
@@ -276,9 +276,10 @@ function ta($k){
function tf() {
$r = "";
- $file = "view/".str_replace('-', '_', App::$language)."/hstrings.php";
- if(file_exists($file))
- $r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'"));
+ $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 '$'"));
return ($r != "" ? $r : "return 0;");
}