199b10105ee444f0c7483f5109805747ec14b3d3
[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       "\u1295\u1309\u1206 \u1230\u12d3\u1270",
26       "\u12f5\u1215\u122d \u1230\u12d3\u1275"
27     ],
28     "DAY": [
29       "\u1230\u1295\u1260\u1275",
30       "\u1230\u1291\u12ed",
31       "\u1220\u1209\u1235",
32       "\u1228\u1261\u12d5",
33       "\u1283\u1219\u1235",
34       "\u12d3\u122d\u1262",
35       "\u1240\u12f3\u121d"
36     ],
37     "ERANAMES": [
38       "\u12d3/\u12d3",
39       "\u12d3/\u121d"
40     ],
41     "ERAS": [
42       "\u12d3/\u12d3",
43       "\u12d3/\u121d"
44     ],
45     "FIRSTDAYOFWEEK": 0,
46     "MONTH": [
47       "\u1303\u1295\u12e9\u12c8\u122a",
48       "\u134c\u1265\u1229\u12c8\u122a",
49       "\u121b\u122d\u127d",
50       "\u12a4\u1355\u1228\u120d",
51       "\u121c\u12ed",
52       "\u1301\u1295",
53       "\u1301\u120b\u12ed",
54       "\u12a6\u1308\u1235\u1275",
55       "\u1234\u1355\u1274\u121d\u1260\u122d",
56       "\u12a6\u12ad\u1270\u12cd\u1260\u122d",
57       "\u1296\u126c\u121d\u1260\u122d",
58       "\u12f2\u1234\u121d\u1260\u122d"
59     ],
60     "SHORTDAY": [
61       "\u1230\u1295\u1260\u1275",
62       "\u1230\u1291\u12ed",
63       "\u1220\u1209\u1235",
64       "\u1228\u1261\u12d5",
65       "\u1283\u1219\u1235",
66       "\u12d3\u122d\u1262",
67       "\u1240\u12f3\u121d"
68     ],
69     "SHORTMONTH": [
70       "\u1303\u1295\u12e9",
71       "\u134c\u1265\u1229",
72       "\u121b\u122d\u127d",
73       "\u12a4\u1355\u1228",
74       "\u121c\u12ed",
75       "\u1301\u1295",
76       "\u1301\u120b\u12ed",
77       "\u12a6\u1308\u1235",
78       "\u1234\u1355\u1274",
79       "\u12a6\u12ad\u1270",
80       "\u1296\u126c\u121d",
81       "\u12f2\u1234\u121d"
82     ],
83     "STANDALONEMONTH": [
84       "\u1303\u1295\u12e9\u12c8\u122a",
85       "\u134c\u1265\u1229\u12c8\u122a",
86       "\u121b\u122d\u127d",
87       "\u12a4\u1355\u1228\u120d",
88       "\u121c\u12ed",
89       "\u1301\u1295",
90       "\u1301\u120b\u12ed",
91       "\u12a6\u1308\u1235\u1275",
92       "\u1234\u1355\u1274\u121d\u1260\u122d",
93       "\u12a6\u12ad\u1270\u12cd\u1260\u122d",
94       "\u1296\u126c\u121d\u1260\u122d",
95       "\u12f2\u1234\u121d\u1260\u122d"
96     ],
97     "WEEKENDRANGE": [
98       5,
99       6
100     ],
101     "fullDate": "EEEE\u1363 dd MMMM \u1218\u12d3\u120d\u1272 y G",
102     "longDate": "dd MMMM y",
103     "medium": "dd-MMM-y h:mm:ss a",
104     "mediumDate": "dd-MMM-y",
105     "mediumTime": "h:mm:ss a",
106     "short": "dd/MM/yy h:mm a",
107     "shortDate": "dd/MM/yy",
108     "shortTime": "h:mm a"
109   },
110   "NUMBER_FORMATS": {
111     "CURRENCY_SYM": "Birr",
112     "DECIMAL_SEP": ".",
113     "GROUP_SEP": ",",
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": "-\u00a4",
133         "negSuf": "",
134         "posPre": "\u00a4",
135         "posSuf": ""
136       }
137     ]
138   },
139   "id": "ti",
140   "localeID": "ti",
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 }]);