monthly budget, monthly report, unified report calculation (#2684)

This commit is contained in:
Kevin Papst
2021-08-06 18:38:41 +02:00
committed by GitHub
parent 21f785638c
commit cefd747e91
196 changed files with 5031 additions and 2167 deletions

View File

@@ -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)));