From 44528ffe0fd830e17440ab02a620cce99ea8271c Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 15 Nov 2012 15:22:56 +0000 Subject: [PATCH] Don't use hard coded value in "one" pluralization rule French uses the "one" rule for zero as well as one (if there is no explicit zero rule) so make sure we use %{count} there. Also made the same change to English, and added an explcit zero rul. --- config/locales/en.yml | 3 ++- config/locales/fr.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index aa3149e91..1f5a741b7 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -367,7 +367,8 @@ en: comment_link: Comment on this entry reply_link: Reply to this entry comment_count: - one: 1 comment + zero: No comments + one: "%{count} comment" other: "%{count} comments" edit_link: Edit this entry hide_link: Hide this entry diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 878db5188..8946ce532 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -343,7 +343,7 @@ fr: hide_link: Masquer ce commentaire diary_entry: comment_count: - one: 1 commentaire + one: "%{count} commentaire" other: "%{count} commentaires" comment_link: Commenter cette entrée confirm: Confirmer -- 2.43.2