aboutsummaryrefslogtreecommitdiffstats
path: root/include/language.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-10-13 02:14:19 +0200
committerMax Kostikov <max@kostikov.co>2018-10-13 02:14:19 +0200
commit6ae9ef571ea02aa5b80c575de70ecec1289c21db (patch)
treed275d72937108399e742ca9b99852cb96ada85b4 /include/language.php
parent8e5189464e59ca1899d7dbd3ee7302d26b25b297 (diff)
downloadvolse-hubzilla-6ae9ef571ea02aa5b80c575de70ecec1289c21db.tar.gz
volse-hubzilla-6ae9ef571ea02aa5b80c575de70ecec1289c21db.tar.bz2
volse-hubzilla-6ae9ef571ea02aa5b80c575de70ecec1289c21db.zip
Update language.php
Diffstat (limited to 'include/language.php')
-rw-r--r--include/language.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/language.php b/include/language.php
index 38e38fd69..c56d5acda 100644
--- a/include/language.php
+++ b/include/language.php
@@ -277,9 +277,8 @@ function tf() {
$r = "";
$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 '$'"));
+ $r = trim(shell_exec("sed -n '5p' view/".$lang."/hstrings.php | grep 'return' | tr -d '$'"));
return ($r != "" ? $r : "return 0;");
}