From 525b2db6f1ba0302e0835242b64810f78acea2d7 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Thu, 12 Dec 2013 17:29:26 +0100 Subject: [PATCH] fix french pluralization --- isso/js/app/i18n.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/isso/js/app/i18n.js b/isso/js/app/i18n.js index bc3e945..e5a00f2 100644 --- a/isso/js/app/i18n.js +++ b/isso/js/app/i18n.js @@ -7,6 +7,9 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" "en": function(msgs, n) { return msgs[n === 1 ? 0 : 1]; }, + "fr": function(msgs, n) { + return msgs[n > 1 ? 0 : 1] + }, "ru": function(msg, n) { if (n % 10 === 1 && n % 100 !== 11) { return msg[0]; @@ -19,7 +22,6 @@ define(["app/config", "app/i18n/de", "app/i18n/en", "app/i18n/fr", "app/i18n/ru" }; plurals["de"] = plurals["en"]; - plurals["fr"] = plurals["en"]; // useragent's prefered language (or manually overridden) var lang = config.lang;