aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-13 00:12:17 +0200
committerMax Kostikov <max@kostikov.co>2018-10-13 00:12:17 +0200
commit3e19c4ddae0a07bece54b9a4240431e5261bfcc3 (patch)
treea20fa611634636345df765b8634ce06bc80916c9 /include
parentde59300aafe33f9a026360baa3e921992864ec73 (diff)
downloadvolse-hubzilla-3e19c4ddae0a07bece54b9a4240431e5261bfcc3.tar.gz
volse-hubzilla-3e19c4ddae0a07bece54b9a4240431e5261bfcc3.tar.bz2
volse-hubzilla-3e19c4ddae0a07bece54b9a4240431e5261bfcc3.zip
Update language.php
Diffstat (limited to 'include')
-rw-r--r--include/language.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/language.php b/include/language.php
index 556752cf9..72ceb67b0 100644
--- a/include/language.php
+++ b/include/language.php
@@ -277,12 +277,12 @@ function ta($k){
*/
function tf() {
- $r = '';
+ $r = "";
$lang = str_replace('-', '_', App::$language);
- if(function_exists('string_plural_select_'.$lang)) {
- $r = trim(shell_exec("sed -n '5p' view/".$lang."/hstrings.php | tr -d '$'"));
- }
- return $r;
+ $file = "view/$lang/hstrings.php";
+ if(file_exists($file))
+ $r = trim(shell_exec("sed -n '5p' ".$file." | tr -d '$'"));
+ return $r != "" ? $r : "return 0;";
}
/**