mirror of
https://github.com/friendica/friendica
synced 2024-12-23 15:20:17 +00:00
Notice in tt fixed that happens with chinese translations
This commit is contained in:
parent
4a7e9fe96a
commit
0c56538cd5
1 changed files with 8 additions and 1 deletions
|
@ -6,6 +6,7 @@ namespace Friendica\Core;
|
||||||
|
|
||||||
use Friendica\BaseObject;
|
use Friendica\BaseObject;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
|
use Friendica\Core\System;
|
||||||
|
|
||||||
require_once 'boot.php';
|
require_once 'boot.php';
|
||||||
require_once 'include/dba.php';
|
require_once 'include/dba.php';
|
||||||
|
@ -193,7 +194,13 @@ class L10n extends BaseObject
|
||||||
} else {
|
} else {
|
||||||
$i = self::stringPluralSelectDefault($count);
|
$i = self::stringPluralSelectDefault($count);
|
||||||
}
|
}
|
||||||
$s = $t[$i];
|
|
||||||
|
// for some languages there is only a single array item
|
||||||
|
if (!isset($t[$i])) {
|
||||||
|
$s = $t[0];
|
||||||
|
} else {
|
||||||
|
$s = $t[$i];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$s = $t;
|
$s = $t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue