aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-13 01:36:24 +0200
committerMax Kostikov <max@kostikov.co>2018-10-13 01:36:24 +0200
commit8e5189464e59ca1899d7dbd3ee7302d26b25b297 (patch)
treeec2157ba64feeab27abf700a63aa582eae45ccaf
parent0de713ff363cadd706c27606553cc555ddc3a48a (diff)
downloadvolse-hubzilla-8e5189464e59ca1899d7dbd3ee7302d26b25b297.tar.gz
volse-hubzilla-8e5189464e59ca1899d7dbd3ee7302d26b25b297.tar.bz2
volse-hubzilla-8e5189464e59ca1899d7dbd3ee7302d26b25b297.zip
Update 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;");
}