mirror of
https://github.com/friendica/friendica
synced 2025-04-27 11:10:12 +00:00
Update function and sprintf
Update variable to static function and remove sprintf wrappers
This commit is contained in:
parent
7158aa7ded
commit
f7e9b74dca
3 changed files with 9 additions and 8 deletions
|
@ -115,12 +115,12 @@ class L10n
|
|||
while ($p = dba::fetch($addons)) {
|
||||
$name = $p['name'];
|
||||
if (file_exists("addon/$name/lang/$lang/strings.php")) {
|
||||
include("addon/$name/lang/$lang/strings.php");
|
||||
include "addon/$name/lang/$lang/strings.php";
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists("view/lang/$lang/strings.php")) {
|
||||
include("view/lang/$lang/strings.php");
|
||||
include "view/lang/$lang/strings.php";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -184,9 +184,10 @@ class L10n
|
|||
if (is_array($t)) {
|
||||
$plural_function = 'string_plural_select_' . str_replace('-', '_', $lang);
|
||||
if (function_exists($plural_function)) {
|
||||
$plural_function = 'stringPluralSelectDefault';
|
||||
$i = $plural_function($count);
|
||||
} else {
|
||||
$i = self::stringPluralSelectDefault($count);
|
||||
}
|
||||
$i = $plural_function($count);
|
||||
$s = $t[$i];
|
||||
} else {
|
||||
$s = $t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue