diff --git a/tests/TranslationsTest.php b/tests/TranslationsTest.php index a0b806b3..353b550c 100644 --- a/tests/TranslationsTest.php +++ b/tests/TranslationsTest.php @@ -57,7 +57,7 @@ class TranslationsTest extends TestCase $body = $english->file->body; foreach ($body->children() as $transUnit) { - preg_match_all('/%.+%/Uu', (string) $transUnit->target, $matches); + preg_match_all('/%[a-zA-Z]{1,}%/Uu', (string) $transUnit->target, $matches); if (!empty($matches) && !empty($matches[0])) { asort($matches[0]); $trans[(string) $transUnit->source] = array_values($matches[0]); @@ -86,11 +86,9 @@ 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.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))); - } + preg_match_all('/%[a-zA-Z]{1,}%/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))); $counter++; unset($transLang[$key]); } diff --git a/translations/actions.sv.xlf b/translations/actions.sv.xlf index 94c920c4..8c17483e 100644 --- a/translations/actions.sv.xlf +++ b/translations/actions.sv.xlf @@ -1,4 +1,4 @@ - + @@ -98,6 +98,10 @@ create-timesheet-multiuser För flera användare + + invoice.cancel + Avbryt faktura + diff --git a/translations/flashmessages.sv.xlf b/translations/flashmessages.sv.xlf index a1379547..771596d2 100644 --- a/translations/flashmessages.sv.xlf +++ b/translations/flashmessages.sv.xlf @@ -1,4 +1,4 @@ - + @@ -54,6 +54,10 @@ action.upload.error Filen kunde inte laddas upp eller sparas: %reason% + + action.csrf.error + Den här åtgärden kunde inte utföras: säkerhetssymbolen är ogiltig. + diff --git a/translations/messages.ro.xlf b/translations/messages.ro.xlf index 66845e13..b6cf43b4 100644 --- a/translations/messages.ro.xlf +++ b/translations/messages.ro.xlf @@ -1127,7 +1127,7 @@ stats.percentUsed_month - %percentaj%%% folosit în această lună + %percent%%% folosit în această lună stats.userActiveFinancialYear diff --git a/translations/messages.sv.xlf b/translations/messages.sv.xlf index 1a192989..3fef76d3 100644 --- a/translations/messages.sv.xlf +++ b/translations/messages.sv.xlf @@ -1259,6 +1259,54 @@ default_value_new Standardvärden för nya poster + + action.add + Lägg till + + + error.directory_missing + Mappen "%dir%" existerar inte och kunde inte skapas. + + + error.directory_protected + Mappen "%dir%" är skrivskyddad. + + + stats.workingTimeWeekShort + Vecka %week% + + + status.canceled + Avbröts + + + label.includeBudgetType_month + Visa post med "månatlig" budget + + + label.includeBudgetType_full + Visa poster med "livscykel"-budget + + + label.hours_24 + 24 timmar + + + Updated at + Uppdaterades den + + + invoice_document.max_reached + Nådde maximalt antal av %max% faktura-dokument. Du kan lägga till fler efter att en har tagits bort. + + + label.budgetType_full + Livscykel + + + quick_entry.title + Arbetstimmar under veckan + diff --git a/translations/system-configuration.cs.xlf b/translations/system-configuration.cs.xlf index 81e7ab70..dee0ecdf 100644 --- a/translations/system-configuration.cs.xlf +++ b/translations/system-configuration.cs.xlf @@ -6,7 +6,7 @@ title Nastavení - + Time tracking Sledování času diff --git a/translations/system-configuration.eo.xlf b/translations/system-configuration.eo.xlf index cf9f2a7f..3de4009b 100644 --- a/translations/system-configuration.eo.xlf +++ b/translations/system-configuration.eo.xlf @@ -6,7 +6,7 @@ title Agordoj - + Time tracking Tempo-registrado diff --git a/translations/system-configuration.sv.xlf b/translations/system-configuration.sv.xlf index 793d50f7..f7c289b0 100644 --- a/translations/system-configuration.sv.xlf +++ b/translations/system-configuration.sv.xlf @@ -1,4 +1,4 @@ - + @@ -7,8 +7,8 @@ Inställningar - timesheet - Tidrapport + Time tracking + Tidsuppföljning theme diff --git a/translations/validators.sv.xlf b/translations/validators.sv.xlf index 9053d0bc..31d86bf2 100644 --- a/translations/validators.sv.xlf +++ b/translations/validators.sv.xlf @@ -1,4 +1,4 @@ - + @@ -66,6 +66,18 @@ At least one team leader must be assigned to the team. Minst en teamledare måste tilldelas i teamet. + + A project needs to be selected. + Ett projekt måste väljas. + + + This timesheet is already exported. + Den här tidsrapporten är redan exporterad. + + + An activity needs to be selected. + En aktivitet måste väljas. +