diff --git a/src/translations/sv/app.php b/src/translations/sv/app.php index e6f5d4f0e6a..fc77f36da95 100644 --- a/src/translations/sv/app.php +++ b/src/translations/sv/app.php @@ -86,7 +86,7 @@ 'All option labels must be unique.' => 'Alla inställningsetiketter måste vara unika.', 'All option values must be unique.' => 'Alla inställningsvärden måste vara unika.', 'All plugins must be compatible with Craft {version} before you can upgrade.' => 'Alla plugins måste vara kompatibla med Craft {version} innan du kan uppgradera.', - 'All reviews' => 'All Reviews', + 'All reviews' => 'Alla recensioner', 'All targets must have a label.' => 'Alla mål måste ha en etikett.', 'All users' => 'Alla användare', 'All' => 'Alla', @@ -831,7 +831,7 @@ 'Layout element types' => 'Layoutelementtyper', 'Learn how' => 'Läs hur', 'Learn more' => 'Läs mer', - 'Leave a review' => 'Leave a review', + 'Leave a review' => 'Lämna en recension', 'Leave blank if categories don’t have URLs' => 'Lämna tomt om kategorier inte har URL:er', 'Leave blank if entries don’t have URLs' => 'Lämna tomt om poster inte har URL:er', 'Leave blank if the entry doesn’t have a URL' => 'Lämna tomt om inlägget saknar en URL', @@ -1241,7 +1241,7 @@ 'Reverted content from revision {num}.' => 'Återställt innehåll från revidering {num}.', 'Reverting update (this may take a minute)…' => 'Återställer uppdatering (det kan ta några minuter)...', 'Review' => 'Granska', - 'Reviews' => 'Reviews', + 'Reviews' => 'Recensioner', 'Revision Notes' => 'Revideringsnoteringar', 'Revision {num}' => 'Revidering {num}', 'Revision' => 'Revidering', @@ -2003,7 +2003,7 @@ '{title} ({site})' => '{title} ({site})', '{total, number} {total, plural, =1{{item}} other{{items}}}' => '{total, number} {total, plural, one {}=1{{item}} other{{items}}}', '{totalItems, plural, =1{Item} other{Items}} moved.' => '{totalItems, plural, =1{objekt} other{objekt}} har flyttats.', - '{totalReviews, plural, =1{# Review} other{# Reviews}}' => '{totalReviews, plural, =1{# Review} other{# Reviews}}', + '{totalReviews, plural, =1{# Review} other{# Reviews}}' => '{totalReviews, plural, =1{# recension} other{# recensioner}}', '{total} jobs' => '{total} jobb', '{total} updates available!' => '{total} uppdateringar tillgängliga!', '{type} Condition' => 'Tillstånd {type}', diff --git a/tests/unit/helpers/DateTimeHelperTest.php b/tests/unit/helpers/DateTimeHelperTest.php index 7a1b653371f..60863af286d 100644 --- a/tests/unit/helpers/DateTimeHelperTest.php +++ b/tests/unit/helpers/DateTimeHelperTest.php @@ -429,7 +429,12 @@ public function testRelativeTimeStatement(string $expected, int $number, string */ public function testRelativeTimeToSeconds(int $expected, int $number, string $unit): void { - self::assertSame($expected, DateTimeHelper::relativeTimeToSeconds($number, $unit)); + // account for DST changes + self::assertContains(DateTimeHelper::relativeTimeToSeconds($number, $unit), [ + $expected, + $expected + (60 * 60), + $expected - (60 * 60), + ]); } /**