aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngLocale/angular-locale_sl.js
diff options
context:
space:
mode:
authorLucas Galfasó2013-05-04 21:44:14 -0300
committerPete Bacon Darwin2013-07-03 22:51:31 +0100
commitb3d7a038d774d823ef861b76fb8bfa22e60a3df5 (patch)
tree87b10327d7ddb16ce636d04c81fafddb5b23219a /src/ngLocale/angular-locale_sl.js
parentef5bc6c7c3336a64bae64fe9739cb1789907c906 (diff)
downloadangular.js-b3d7a038d774d823ef861b76fb8bfa22e60a3df5.tar.bz2
fix(i18n): Do not transform arrays into objects
Do not trasnform arrays into objects when generating the locale objects Add unit test for this check
Diffstat (limited to 'src/ngLocale/angular-locale_sl.js')
-rw-r--r--src/ngLocale/angular-locale_sl.js108
1 files changed, 54 insertions, 54 deletions
diff --git a/src/ngLocale/angular-locale_sl.js b/src/ngLocale/angular-locale_sl.js
index 1e4007c5..ebe8df1a 100644
--- a/src/ngLocale/angular-locale_sl.js
+++ b/src/ngLocale/angular-locale_sl.js
@@ -2,56 +2,56 @@ angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
$provide.value("$locale", {
"DATETIME_FORMATS": {
- "AMPMS": {
- "0": "dop.",
- "1": "pop."
- },
- "DAY": {
- "0": "nedelja",
- "1": "ponedeljek",
- "2": "torek",
- "3": "sreda",
- "4": "\u010detrtek",
- "5": "petek",
- "6": "sobota"
- },
- "MONTH": {
- "0": "januar",
- "1": "februar",
- "2": "marec",
- "3": "april",
- "4": "maj",
- "5": "junij",
- "6": "julij",
- "7": "avgust",
- "8": "september",
- "9": "oktober",
- "10": "november",
- "11": "december"
- },
- "SHORTDAY": {
- "0": "ned.",
- "1": "pon.",
- "2": "tor.",
- "3": "sre.",
- "4": "\u010det.",
- "5": "pet.",
- "6": "sob."
- },
- "SHORTMONTH": {
- "0": "jan.",
- "1": "feb.",
- "2": "mar.",
- "3": "apr.",
- "4": "maj",
- "5": "jun.",
- "6": "jul.",
- "7": "avg.",
- "8": "sep.",
- "9": "okt.",
- "10": "nov.",
- "11": "dec."
- },
+ "AMPMS": [
+ "dop.",
+ "pop."
+ ],
+ "DAY": [
+ "nedelja",
+ "ponedeljek",
+ "torek",
+ "sreda",
+ "\u010detrtek",
+ "petek",
+ "sobota"
+ ],
+ "MONTH": [
+ "januar",
+ "februar",
+ "marec",
+ "april",
+ "maj",
+ "junij",
+ "julij",
+ "avgust",
+ "september",
+ "oktober",
+ "november",
+ "december"
+ ],
+ "SHORTDAY": [
+ "ned.",
+ "pon.",
+ "tor.",
+ "sre.",
+ "\u010det.",
+ "pet.",
+ "sob."
+ ],
+ "SHORTMONTH": [
+ "jan.",
+ "feb.",
+ "mar.",
+ "apr.",
+ "maj",
+ "jun.",
+ "jul.",
+ "avg.",
+ "sep.",
+ "okt.",
+ "nov.",
+ "dec."
+ ],
"fullDate": "EEEE, dd. MMMM y",
"longDate": "dd. MMMM y",
"medium": "d. MMM yyyy HH:mm:ss",
@@ -65,8 +65,8 @@ $provide.value("$locale", {
"CURRENCY_SYM": "\u20ac",
"DECIMAL_SEP": ",",
"GROUP_SEP": ".",
- "PATTERNS": {
- "0": {
+ "PATTERNS": [
+ {
"gSize": 3,
"lgSize": 3,
"macFrac": 0,
@@ -78,7 +78,7 @@ $provide.value("$locale", {
"posPre": "",
"posSuf": ""
},
- "1": {
+ {
"gSize": 3,
"lgSize": 3,
"macFrac": 0,
@@ -90,7 +90,7 @@ $provide.value("$locale", {
"posPre": "\u00a4",
"posSuf": ""
}
- }
+ ]
},
"id": "sl",
"pluralCat": function (n) { if (n % 100 == 1) { return PLURAL_CATEGORY.ONE; } if (n % 100 == 2) { return PLURAL_CATEGORY.TWO; } if (n % 100 == 3 || n % 100 == 4) { return PLURAL_CATEGORY.FEW; } return PLURAL_CATEGORY.OTHER;}