Translations update from Weblate (#2672)
Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com> Co-authored-by: Victor Cleaner <victor.cleaner@gmail.com> Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com> Co-authored-by: edo-2313 <edo2313@gmail.com> Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com> Co-authored-by: Jack-Benny Persson <jack-benny@cyberinfo.se> Co-authored-by: dkstiler <dkstiler@gmail.com> Co-authored-by: Nathan <bonnemainsnathan@gmail.com> Co-authored-by: dottypottylotty <muzzbuzzer@outlook.com> Co-authored-by: Adam K <uz@zu.uz> Co-authored-by: J. Lavoie <j.lavoie@net-c.ca> Co-authored-by: Kevin Papst <kpapst@gmx.net>
This commit is contained in:
@@ -86,7 +86,7 @@ class TranslationsTest extends TestCase
|
||||
$key = (string) $transUnit->source;
|
||||
if (isset($transLang[$key])) {
|
||||
// some special cases, which don't work properly - base translation should be changed
|
||||
if (!\in_array($key, ['stats.percentUsedLeft', 'stats.percentUsedLeft_month'])) {
|
||||
if (!\in_array($key, ['stats.percentUsed', 'stats.percentUsedLeft', 'stats.percentUsed_month', 'stats.percentUsedLeft_month'])) {
|
||||
preg_match_all('/%.+%/Uu', (string) $transUnit->target, $matches);
|
||||
asort($matches[0]);
|
||||
self::assertEquals($transLang[$key], array_values($matches[0]), sprintf('Invalid replacer "%s" in "%s"', $key, basename($file)));
|
||||
|
||||
Reference in New Issue
Block a user