4e80899a0a8f98aee6ce2ea4f85d6ceabd3c06b5
[portal/sdk.git] /
1 'use strict';
2 angular.module("ngLocale", [], ["$provide", function($provide) {
3 var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
4 function getDecimals(n) {
5   n = n + '';
6   var i = n.indexOf('.');
7   return (i == -1) ? 0 : n.length - i - 1;
8 }
9
10 function getVF(n, opt_precision) {
11   var v = opt_precision;
12
13   if (undefined === v) {
14     v = Math.min(getDecimals(n), 3);
15   }
16
17   var base = Math.pow(10, v);
18   var f = ((n * base) | 0) % base;
19   return {v: v, f: f};
20 }
21
22 $provide.value("$locale", {
23   "DATETIME_FORMATS": {
24     "AMPMS": [
25       "am",
26       "sm"
27     ],
28     "DAY": [
29       "dumengia",
30       "glindesdi",
31       "mardi",
32       "mesemna",
33       "gievgia",
34       "venderdi",
35       "sonda"
36     ],
37     "ERANAMES": [
38       "avant Cristus",
39       "suenter Cristus"
40     ],
41     "ERAS": [
42       "av. Cr.",
43       "s. Cr."
44     ],
45     "FIRSTDAYOFWEEK": 0,
46     "MONTH": [
47       "schaner",
48       "favrer",
49       "mars",
50       "avrigl",
51       "matg",
52       "zercladur",
53       "fanadur",
54       "avust",
55       "settember",
56       "october",
57       "november",
58       "december"
59     ],
60     "SHORTDAY": [
61       "du",
62       "gli",
63       "ma",
64       "me",
65       "gie",
66       "ve",
67       "so"
68     ],
69     "SHORTMONTH": [
70       "schan.",
71       "favr.",
72       "mars",
73       "avr.",
74       "matg",
75       "zercl.",
76       "fan.",
77       "avust",
78       "sett.",
79       "oct.",
80       "nov.",
81       "dec."
82     ],
83     "STANDALONEMONTH": [
84       "schaner",
85       "favrer",
86       "mars",
87       "avrigl",
88       "matg",
89       "zercladur",
90       "fanadur",
91       "avust",
92       "settember",
93       "october",
94       "november",
95       "december"
96     ],
97     "WEEKENDRANGE": [
98       5,
99       6
100     ],
101     "fullDate": "EEEE, 'ils' d 'da' MMMM y",
102     "longDate": "d 'da' MMMM y",
103     "medium": "dd-MM-y HH:mm:ss",
104     "mediumDate": "dd-MM-y",
105     "mediumTime": "HH:mm:ss",
106     "short": "dd-MM-yy HH:mm",
107     "shortDate": "dd-MM-yy",
108     "shortTime": "HH:mm"
109   },
110   "NUMBER_FORMATS": {
111     "CURRENCY_SYM": "CHF",
112     "DECIMAL_SEP": ".",
113     "GROUP_SEP": "\u2019",
114     "PATTERNS": [
115       {
116         "gSize": 3,
117         "lgSize": 3,
118         "maxFrac": 3,
119         "minFrac": 0,
120         "minInt": 1,
121         "negPre": "-",
122         "negSuf": "",
123         "posPre": "",
124         "posSuf": ""
125       },
126       {
127         "gSize": 3,
128         "lgSize": 3,
129         "maxFrac": 2,
130         "minFrac": 2,
131         "minInt": 1,
132         "negPre": "-",
133         "negSuf": "\u00a0\u00a4",
134         "posPre": "",
135         "posSuf": "\u00a0\u00a4"
136       }
137     ]
138   },
139   "id": "rm-ch",
140   "localeID": "rm_CH",
141   "pluralCat": function(n, opt_precision) {  var i = n | 0;  var vf = getVF(n, opt_precision);  if (i == 1 && vf.v == 0) {    return PLURAL_CATEGORY.ONE;  }  return PLURAL_CATEGORY.OTHER;}
142 });
143 }]);