monthly budget, monthly report, unified report calculation (#2684)
This commit is contained in:
@@ -85,7 +85,8 @@ class TranslationsTest extends TestCase
|
||||
foreach ($body->children() as $transUnit) {
|
||||
$key = (string) $transUnit->source;
|
||||
if (isset($transLang[$key])) {
|
||||
if ($key !== 'stats.percentUsedLeft') { // special case, which doesn't work properly - base translation should be changed
|
||||
// some special cases, which don't work properly - base translation should be changed
|
||||
if (!\in_array($key, ['stats.percentUsedLeft', '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