Revert "Merge branch 'patch-11' into 'dev'"

This reverts commit e518445853, reversing
changes made to 8ce240b95c.
This commit is contained in:
Mario Vavti
2018-10-13 17:18:42 +02:00
parent cf277261dc
commit c36773674e
4 changed files with 25 additions and 65 deletions

View File

@@ -254,34 +254,6 @@ function tt($singular, $plural, $count, $ctx = ''){
}
}
/**
* @brief Return slash separated string of plurals translation forms
*
* @param string $k key in translations array
* @return string
*/
function ta($k){
$t = App::$strings[$k];
if (is_array($t))
$t = implode("/", $t);
return ($t == "" ? $k : $t);
}
/**
* @brief Return string_plural_select_xx function code
*
* @return string
*/
function tf() {
$r = "";
$lang = str_replace('-', '_', App::$language);
if(function_exists("string_plural_select_".$lang))
$r = trim(shell_exec("sed -n '5p' view/".$lang."/hstrings.php | grep 'return' | tr -d '$'"));
return ($r != "" ? $r : "return 0;");
}
/**
* @brief Provide a fallback which will not collide with a function defined in
* any language file.