From 0bbc5c1246675dc0b9b66abcf6cd07e5e625c7f4 Mon Sep 17 00:00:00 2001 From: voodoorai2000 Date: Tue, 9 Oct 2018 19:52:07 +0200 Subject: [PATCH] Fix date translations These translation keys are used to set the order in which a date object will be displayed[1] They should not be translated, just reordered if it makes more sense of a given language If the expected values are not found an exception is raised: ".date.order only accepts :year, :month and :day" They should probably be somewhere else so that Crowdin translators don't feel the need to translate it. But that is a battle for another day :relieved: for now simply fixing them [1] https://guides.rubyonrails.org/i18n.html#action-view-helper-methods --- config/locales/es-VE/rails.yml | 6 +++--- config/locales/fa-IR/rails.yml | 6 +++--- config/locales/fr/rails.yml | 6 +++--- config/locales/gl/rails.yml | 6 +++--- config/locales/id-ID/rails.yml | 6 +++--- config/locales/it/rails.yml | 4 ++-- config/locales/nl/rails.yml | 2 +- config/locales/pl-PL/rails.yml | 6 +++--- config/locales/pt-BR/rails.yml | 6 +++--- config/locales/sq-AL/rails.yml | 6 +++--- config/locales/tr-TR/rails.yml | 6 +++--- 11 files changed, 30 insertions(+), 30 deletions(-) diff --git a/config/locales/es-VE/rails.yml b/config/locales/es-VE/rails.yml index 700bb8ced..ebd866dac 100644 --- a/config/locales/es-VE/rails.yml +++ b/config/locales/es-VE/rails.yml @@ -49,9 +49,9 @@ es-VE: - Noviembre - Diciembre order: - - ':año' - - :mes - - ':día' + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/fa-IR/rails.yml b/config/locales/fa-IR/rails.yml index 99dba6f80..6bf0c1fe8 100644 --- a/config/locales/fa-IR/rails.yml +++ b/config/locales/fa-IR/rails.yml @@ -49,9 +49,9 @@ fa: - نوامبر - دسامبر order: - - ': سال' - - ': ماه' - - ': روز' + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/fr/rails.yml b/config/locales/fr/rails.yml index 4e68aff44..c67e4db88 100644 --- a/config/locales/fr/rails.yml +++ b/config/locales/fr/rails.yml @@ -49,9 +49,9 @@ fr: - Novembre - Décembre order: - - ':année' - - :mois - - :jour + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/gl/rails.yml b/config/locales/gl/rails.yml index 91ac339cb..d5c8d316b 100644 --- a/config/locales/gl/rails.yml +++ b/config/locales/gl/rails.yml @@ -49,9 +49,9 @@ gl: - Novembro - Decembro order: - - ':día' - - :mes - - :ano + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/id-ID/rails.yml b/config/locales/id-ID/rails.yml index 100edc007..b251eb588 100644 --- a/config/locales/id-ID/rails.yml +++ b/config/locales/id-ID/rails.yml @@ -49,9 +49,9 @@ id: - November - Desember order: - - :tahun - - :bulan - - :hari + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/it/rails.yml b/config/locales/it/rails.yml index b46e6b77f..7e8a56685 100644 --- a/config/locales/it/rails.yml +++ b/config/locales/it/rails.yml @@ -49,9 +49,9 @@ it: - Novembre - Dicembre order: - - :year - - ': month' - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/nl/rails.yml b/config/locales/nl/rails.yml index 04bcbc0a1..2ebeca7fb 100644 --- a/config/locales/nl/rails.yml +++ b/config/locales/nl/rails.yml @@ -50,7 +50,7 @@ nl: - december order: - :day - - ': month' + - :month - :year datetime: distance_in_words: diff --git a/config/locales/pl-PL/rails.yml b/config/locales/pl-PL/rails.yml index e34e23707..0ad26248c 100644 --- a/config/locales/pl-PL/rails.yml +++ b/config/locales/pl-PL/rails.yml @@ -49,9 +49,9 @@ pl: - Listopad - Grudzień order: - - :rok - - ':miesiąc' - - ':dzień' + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/pt-BR/rails.yml b/config/locales/pt-BR/rails.yml index ce802d801..be14b914b 100644 --- a/config/locales/pt-BR/rails.yml +++ b/config/locales/pt-BR/rails.yml @@ -49,9 +49,9 @@ pt-BR: - Novembro - Dezembro order: - - :ano - - ':mês' - - :dia + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/sq-AL/rails.yml b/config/locales/sq-AL/rails.yml index fe5464222..bc9305adc 100644 --- a/config/locales/sq-AL/rails.yml +++ b/config/locales/sq-AL/rails.yml @@ -49,9 +49,9 @@ sq: - Nëntor - Dhjetor order: - - :vit - - :muaj - - ':ditë' + - :day + - :month + - :year datetime: distance_in_words: about_x_hours: diff --git a/config/locales/tr-TR/rails.yml b/config/locales/tr-TR/rails.yml index a0b4e762d..c455a7bab 100644 --- a/config/locales/tr-TR/rails.yml +++ b/config/locales/tr-TR/rails.yml @@ -37,9 +37,9 @@ tr: - Kasım - December order: - - ': yıl' - - ': ay' - - ': gün' + - :day + - :month + - :year datetime: prompts: day: Gün