Merge pull request #5587 from annando/notice-tt

Notice in tt fixed that happens with chinese translations
Bu işleme şunda yer alıyor:
Tobias Diekershoff 2018-08-08 16:43:05 +02:00 işlemeyi yapan: GitHub
işleme 5cb3e5d6e1
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 8 ekleme ve 1 silme

Dosyayı Görüntüle

@ -6,6 +6,7 @@ namespace Friendica\Core;
use Friendica\BaseObject;
use Friendica\Database\DBA;
use Friendica\Core\System;
require_once 'boot.php';
require_once 'include/dba.php';
@ -193,7 +194,13 @@ class L10n extends BaseObject
} else {
$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 {
$s = $t;
}