From 5e90e5d3f2400491713520fda2cdf7adef232311 Mon Sep 17 00:00:00 2001 From: Stefan Rohde-Enslin Date: Sun, 4 Oct 2020 17:40:51 +0200 Subject: [PATCH] Add strings for expressing times 'after' and 'before' --- src/NodaTimeAutotranslater.php | 56 ++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/src/NodaTimeAutotranslater.php b/src/NodaTimeAutotranslater.php index cc01792..921f6dd 100644 --- a/src/NodaTimeAutotranslater.php +++ b/src/NodaTimeAutotranslater.php @@ -162,7 +162,7 @@ final class NodaTimeAutotranslater { 'it' => 'Dal %s', 'ka' => '%s წლიდან', 'ko' => '%s부터', - 'pl' => 'Desde %s', + 'pl' => 'Od %s r.', 'pt' => '%s dC', 'ro' => 'Din %s', 'ru' => 'С %s г.', @@ -175,6 +175,31 @@ final class NodaTimeAutotranslater { 'zh' => '自%s以來', ]; + const LANGS_AFTER_START_FORMAT_YEAR = [ + 'ar' => '%s-', + 'de' => 'Nach %s', + 'en' => 'After %s', + 'es' => 'Despues de %s', + 'fa' => '%s-', + 'fr' => 'Après %s', + 'hu' => '%s-után', + 'id' => 'Setelah %s', + 'it' => 'Dopo il %s', + 'ka' => '%s წლის შემდეგ', + 'ko' => '%s 년 이후', + 'pl' => 'Po %s r.', + 'pt' => 'Depois de %s', + 'ro' => 'După %s', + 'ru' => 'после %s г.', + 'ta' => '%s க்குப் பிறகு', + 'tl' => 'Pagkaraan ng %s', + 'tr' => '%s-', + + // Languages that don't really need a specific locale + 'ja' => '%s以降', + 'zh' => '%s以后', + ]; + const LANGS_UNTIL_START_FORMAT_YEAR = [ 'ar' => '-%s', 'de' => 'Bis %s', @@ -200,6 +225,31 @@ final class NodaTimeAutotranslater { 'zh' => '直到%s', ]; + const LANGS_BEFORE_START_FORMAT_YEAR = [ + 'ar' => '-%s', + 'de' => 'Vor %s', + 'en' => 'Before %s', + 'es' => 'Antes de %s', + 'fa' => '-%s', + 'fr' => 'Avant %s', + 'hu' => '%s-előtt', + 'id' => 'Sebelum %s', + 'it' => 'Prima del %s', + 'ka' => '%s წლამდე', + 'ko' => '%s 년 이전', + 'pl' => 'Przed %s', + 'pt' => 'Antes de %s', + 'ro' => 'înainte de %s', + 'ru' => 'до %s г.', + 'ta' => '%s க்கு முன்', + 'tl' => 'Bago ang %s', + 'tr' => '%s-', + + // Languages that don't really need a specific locale + 'ja' => '%sまで', + 'zh' => '直到%s', + ]; + const LANGS_CENTURY_FORMAT = [ 'ar' => 'القرن ال %s', 'de' => '%s. Jahrhundert', @@ -219,8 +269,8 @@ final class NodaTimeAutotranslater { 'ta' => '%s ஆம் நூற்றாண்டு', 'tl' => 'Ika-%s na siglo', 'tr' => '%s. yüzyıl', - 'ja' => '%s世紀', - 'zh' => '%s世紀', + 'ja' => '%s以前', + 'zh' => '%s之前', ]; const LANGS_CENTURIES_FORMAT = [