675efe9537bf383cc0388002a1aa269ecac358fc
[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       "Ma/Mo",
26       "Mambia/Mog"
27     ],
28     "DAY": [
29       "Chumapiri",
30       "Chumatato",
31       "Chumaine",
32       "Chumatano",
33       "Aramisi",
34       "Ichuma",
35       "Esabato"
36     ],
37     "ERANAMES": [
38       "Yeso ataiborwa",
39       "Yeso kaiboirwe"
40     ],
41     "ERAS": [
42       "YA",
43       "YK"
44     ],
45     "FIRSTDAYOFWEEK": 0,
46     "MONTH": [
47       "Chanuari",
48       "Feburari",
49       "Machi",
50       "Apiriri",
51       "Mei",
52       "Juni",
53       "Chulai",
54       "Agosti",
55       "Septemba",
56       "Okitoba",
57       "Nobemba",
58       "Disemba"
59     ],
60     "SHORTDAY": [
61       "Cpr",
62       "Ctt",
63       "Cmn",
64       "Cmt",
65       "Ars",
66       "Icm",
67       "Est"
68     ],
69     "SHORTMONTH": [
70       "Can",
71       "Feb",
72       "Mac",
73       "Apr",
74       "Mei",
75       "Jun",
76       "Cul",
77       "Agt",
78       "Sep",
79       "Okt",
80       "Nob",
81       "Dis"
82     ],
83     "WEEKENDRANGE": [
84       5,
85       6
86     ],
87     "fullDate": "EEEE, d MMMM y",
88     "longDate": "d MMMM y",
89     "medium": "d MMM y h:mm:ss a",
90     "mediumDate": "d MMM y",
91     "mediumTime": "h:mm:ss a",
92     "short": "dd/MM/y h:mm a",
93     "shortDate": "dd/MM/y",
94     "shortTime": "h:mm a"
95   },
96   "NUMBER_FORMATS": {
97     "CURRENCY_SYM": "Ksh",
98     "DECIMAL_SEP": ".",
99     "GROUP_SEP": ",",
100     "PATTERNS": [
101       {
102         "gSize": 3,
103         "lgSize": 3,
104         "maxFrac": 3,
105         "minFrac": 0,
106         "minInt": 1,
107         "negPre": "-",
108         "negSuf": "",
109         "posPre": "",
110         "posSuf": ""
111       },
112       {
113         "gSize": 3,
114         "lgSize": 3,
115         "maxFrac": 2,
116         "minFrac": 2,
117         "minInt": 1,
118         "negPre": "-\u00a4",
119         "negSuf": "",
120         "posPre": "\u00a4",
121         "posSuf": ""
122       }
123     ]
124   },
125   "id": "guz-ke",
126   "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;}
127 });
128 }]);