01/01: fix PLURAL_CATEGORY
This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository pollen. See http://git.chorem.org/pollen.git commit 58906ab4c7e59c896a8d40272c45255b8566bf5d Author: Adrien Garandel <a.garandel@dralagen.fr> Date: Wed Jul 9 16:11:32 2014 +0200 fix PLURAL_CATEGORY --- pollen-ui-angular/src/main/webapp/i18n/en.js | 5 +++++ pollen-ui-angular/src/main/webapp/i18n/fr.js | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pollen-ui-angular/src/main/webapp/i18n/en.js b/pollen-ui-angular/src/main/webapp/i18n/en.js index 66046a0..968332e 100644 --- a/pollen-ui-angular/src/main/webapp/i18n/en.js +++ b/pollen-ui-angular/src/main/webapp/i18n/en.js @@ -117,6 +117,11 @@ var translateEN = { } +// +// Source i18n : https://github.com/angular/bower-angular-i18n/blob/v1.2.19-build.267%2Bsha.4... +// + +var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; var i18n_EN = { "DATETIME_FORMATS": { "AMPMS": [ diff --git a/pollen-ui-angular/src/main/webapp/i18n/fr.js b/pollen-ui-angular/src/main/webapp/i18n/fr.js index ea9c74b..0b24993 100644 --- a/pollen-ui-angular/src/main/webapp/i18n/fr.js +++ b/pollen-ui-angular/src/main/webapp/i18n/fr.js @@ -117,6 +117,11 @@ var translateFR = { } +// +// Source i18n : https://github.com/angular/bower-angular-i18n/blob/v1.2.19-build.267%2Bsha.4... +// + +var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; var i18n_FR = { "DATETIME_FORMATS": { "AMPMS": [ @@ -210,6 +215,6 @@ var i18n_FR = { ] }, "id": "fr", - "pluralCat": function (n) { if (n >= 0 && n <= 2 && n != 2) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER;} + "pluralCat": function (n) { if (n == 1) { return PLURAL_CATEGORY.ONE; } return PLURAL_CATEGORY.OTHER; } } -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.
participants (1)
-
chorem.org scm