732788c04f498fb5844840e416842693bc4c21a3
[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       "m",
26       "f"
27     ],
28     "DAY": [
29       "DiD\u00f2mhnaich",
30       "DiLuain",
31       "DiM\u00e0irt",
32       "DiCiadain",
33       "DiarDaoin",
34       "DihAoine",
35       "DiSathairne"
36     ],
37     "ERANAMES": [
38       "Ro Chr\u00ecosta",
39       "An d\u00e8idh Chr\u00ecosta"
40     ],
41     "ERAS": [
42       "RC",
43       "AD"
44     ],
45     "FIRSTDAYOFWEEK": 0,
46     "MONTH": [
47       "dhen Fhaoilleach",
48       "dhen Ghearran",
49       "dhen Mh\u00e0rt",
50       "dhen Ghiblean",
51       "dhen Ch\u00e8itean",
52       "dhen \u00d2gmhios",
53       "dhen Iuchar",
54       "dhen L\u00f9nastal",
55       "dhen t-Sultain",
56       "dhen D\u00e0mhair",
57       "dhen t-Samhain",
58       "dhen D\u00f9bhlachd"
59     ],
60     "SHORTDAY": [
61       "DiD",
62       "DiL",
63       "DiM",
64       "DiC",
65       "Dia",
66       "Dih",
67       "DiS"
68     ],
69     "SHORTMONTH": [
70       "Faoi",
71       "Gearr",
72       "M\u00e0rt",
73       "Gibl",
74       "C\u00e8it",
75       "\u00d2gmh",
76       "Iuch",
77       "L\u00f9na",
78       "Sult",
79       "D\u00e0mh",
80       "Samh",
81       "D\u00f9bh"
82     ],
83     "STANDALONEMONTH": [
84       "Am Faoilleach",
85       "An Gearran",
86       "Am M\u00e0rt",
87       "An Giblean",
88       "An C\u00e8itean",
89       "An t-\u00d2gmhios",
90       "An t-Iuchar",
91       "An L\u00f9nastal",
92       "An t-Sultain",
93       "An D\u00e0mhair",
94       "An t-Samhain",
95       "An D\u00f9bhlachd"
96     ],
97     "WEEKENDRANGE": [
98       5,
99       6
100     ],
101     "fullDate": "EEEE, d'mh' MMMM y",
102     "longDate": "d'mh' MMMM y",
103     "medium": "d MMM y HH:mm:ss",
104     "mediumDate": "d MMM y",
105     "mediumTime": "HH:mm:ss",
106     "short": "dd/MM/y HH:mm",
107     "shortDate": "dd/MM/y",
108     "shortTime": "HH:mm"
109   },
110   "NUMBER_FORMATS": {
111     "CURRENCY_SYM": "\u00a3",
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": "gd-gb",
140   "localeID": "gd_GB",
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 }]);