Commit
c1e52b1d2e772b27e6b329f40bd03c4877195ce6
Add locale files for messageformat
Showing
69 changed files
with
275 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.af=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.am=function(n){return n===0||n==1?"one":"other"} |
| @@ -0,0 +1,18 @@ |
| @@ -0,0 +1,18 @@ |
| |
1
| +MessageFormat.locale.ar = function(n) { |
| |
2
| + if (n === 0) { |
| |
3
| + return 'zero'; |
| |
4
| + } |
| |
5
| + if (n == 1) { |
| |
6
| + return 'one'; |
| |
7
| + } |
| |
8
| + if (n == 2) { |
| |
9
| + return 'two'; |
| |
10
| + } |
| |
11
| + if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { |
| |
12
| + return 'few'; |
| |
13
| + } |
| |
14
| + if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { |
| |
15
| + return 'many'; |
| |
16
| + } |
| |
17
| + return 'other'; |
| |
18
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.bg=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.bn=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1,18 @@ |
| @@ -0,0 +1,18 @@ |
| |
1
| +MessageFormat.locale.br = function (n) { |
| |
2
| + if (n === 0) { |
| |
3
| + return 'zero'; |
| |
4
| + } |
| |
5
| + if (n == 1) { |
| |
6
| + return 'one'; |
| |
7
| + } |
| |
8
| + if (n == 2) { |
| |
9
| + return 'two'; |
| |
10
| + } |
| |
11
| + if (n == 3) { |
| |
12
| + return 'few'; |
| |
13
| + } |
| |
14
| + if (n == 6) { |
| |
15
| + return 'many'; |
| |
16
| + } |
| |
17
| + return 'other'; |
| |
18
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ca=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +MessageFormat.locale.cs = function (n) { |
| |
2
| + if (n == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if (n == 2 || n == 3 || n == 4) { |
| |
6
| + return 'few'; |
| |
7
| + } |
| |
8
| + return 'other'; |
| |
9
| +}; |
| @@ -0,0 +1,18 @@ |
| @@ -0,0 +1,18 @@ |
| |
1
| +MessageFormat.locale.cy = function (n) { |
| |
2
| + if (n === 0) { |
| |
3
| + return 'zero'; |
| |
4
| + } |
| |
5
| + if (n == 1) { |
| |
6
| + return 'one'; |
| |
7
| + } |
| |
8
| + if (n == 2) { |
| |
9
| + return 'two'; |
| |
10
| + } |
| |
11
| + if (n == 3) { |
| |
12
| + return 'few'; |
| |
13
| + } |
| |
14
| + if (n == 6) { |
| |
15
| + return 'many'; |
| |
16
| + } |
| |
17
| + return 'other'; |
| |
18
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.da=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.de=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.el=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.en=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.es=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.et=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.eu=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.fa=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.fi=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.fil=function(n){return n===0||n==1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.fr=function(n){return n===0||n==1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ga=function(n){return n==1?"one":(n==2?"two":"other")} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.gl=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.gsw=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.gu=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.he=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.hi=function(n){return n===0||n==1?"one":"other"} |
| @@ -0,0 +1,14 @@ |
| @@ -0,0 +1,14 @@ |
| |
1
| +MessageFormat.locale.hr = function (n) { |
| |
2
| + if ((n % 10) == 1 && (n % 100) != 11) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 10) >= 2 && (n % 10) <= 4 && |
| |
6
| + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || |
| |
10
| + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { |
| |
11
| + return 'many'; |
| |
12
| + } |
| |
13
| + return 'other'; |
| |
14
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.hu=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.id=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale["in"]=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.is=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.it=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.iw=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ja=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.kn=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ko=function(n){return "other"} |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +MessageFormat.locale.lag = function (n) { |
| |
2
| + if (n === 0) { |
| |
3
| + return 'zero'; |
| |
4
| + } |
| |
5
| + if (n > 0 && n < 2) { |
| |
6
| + return 'one'; |
| |
7
| + } |
| |
8
| + return 'other'; |
| |
9
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ln=function(n){return n===0||n==1?"one":"other"} |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| +MessageFormat.locale.lt = function (n) { |
| |
2
| + if ((n % 10) == 1 && ((n % 100) < 11 || (n % 100) > 19)) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 10) >= 2 && (n % 10) <= 9 && |
| |
6
| + ((n % 100) < 11 || (n % 100) > 19) && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + return 'other'; |
| |
10
| +}; |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +MessageFormat.locale.lv = function (n) { |
| |
2
| + if (n === 0) { |
| |
3
| + return 'zero'; |
| |
4
| + } |
| |
5
| + if ((n % 10) == 1 && (n % 100) != 11) { |
| |
6
| + return 'one'; |
| |
7
| + } |
| |
8
| + return 'other'; |
| |
9
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.mk=function(n){return (n%10)==1&&n!=11?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ml=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| +MessageFormat.locale.mo = function (n) { |
| |
2
| + if (n == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if (n === 0 || n != 1 && (n % 100) >= 1 && |
| |
6
| + (n % 100) <= 19 && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + return 'other'; |
| |
10
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.mr=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ms=function(n){return "other"} |
| @@ -0,0 +1,12 @@ |
| @@ -0,0 +1,12 @@ |
| |
1
| +MessageFormat.locale.mt = function (n) { |
| |
2
| + if (n == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if (n === 0 || ((n % 100) >= 2 && (n % 100) <= 4 && n == Math.floor(n))) { |
| |
6
| + return 'few'; |
| |
7
| + } |
| |
8
| + if ((n % 100) >= 11 && (n % 100) <= 19 && n == Math.floor(n)) { |
| |
9
| + return 'many'; |
| |
10
| + } |
| |
11
| + return 'other'; |
| |
12
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.nl=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.no=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.or=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1,15 @@ |
| @@ -0,0 +1,15 @@ |
| |
1
| +MessageFormat.locale.pl = function (n) { |
| |
2
| + if (n == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 10) >= 2 && (n % 10) <= 4 && |
| |
6
| + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + if ((n % 10) === 0 || n != 1 && (n % 10) == 1 || |
| |
10
| + ((n % 10) >= 5 && (n % 10) <= 9 || (n % 100) >= 12 && (n % 100) <= 14) && |
| |
11
| + n == Math.floor(n)) { |
| |
12
| + return 'many'; |
| |
13
| + } |
| |
14
| + return 'other'; |
| |
15
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.pt=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1,10 @@ |
| @@ -0,0 +1,10 @@ |
| |
1
| +MessageFormat.locale.ro = function (n) { |
| |
2
| + if (n == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if (n === 0 || n != 1 && (n % 100) >= 1 && |
| |
6
| + (n % 100) <= 19 && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + return 'other'; |
| |
10
| +}; |
| @@ -0,0 +1,14 @@ |
| @@ -0,0 +1,14 @@ |
| |
1
| +MessageFormat.locale.ru = function (n) { |
| |
2
| + if ((n % 10) == 1 && (n % 100) != 11) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 10) >= 2 && (n % 10) <= 4 && |
| |
6
| + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || |
| |
10
| + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { |
| |
11
| + return 'many'; |
| |
12
| + } |
| |
13
| + return 'other'; |
| |
14
| +}; |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +MessageFormat.locale.shi = function(n) { |
| |
2
| + if (n >= 0 && n <= 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if (n >= 2 && n <= 10 && n == Math.floor(n)) { |
| |
6
| + return 'few'; |
| |
7
| + } |
| |
8
| + return 'other'; |
| |
9
| +}; |
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +MessageFormat.locale.sk = function (n) { |
| |
2
| + if (n == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if (n == 2 || n == 3 || n == 4) { |
| |
6
| + return 'few'; |
| |
7
| + } |
| |
8
| + return 'other'; |
| |
9
| +}; |
| @@ -0,0 +1,12 @@ |
| @@ -0,0 +1,12 @@ |
| |
1
| +MessageFormat.locale.sl = function (n) { |
| |
2
| + if ((n % 100) == 1) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 100) == 2) { |
| |
6
| + return 'two'; |
| |
7
| + } |
| |
8
| + if ((n % 100) == 3 || (n % 100) == 4) { |
| |
9
| + return 'few'; |
| |
10
| + } |
| |
11
| + return 'other'; |
| |
12
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.sq=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1,14 @@ |
| @@ -0,0 +1,14 @@ |
| |
1
| +MessageFormat.locale.sr = function (n) { |
| |
2
| + if ((n % 10) == 1 && (n % 100) != 11) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 10) >= 2 && (n % 10) <= 4 && |
| |
6
| + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || |
| |
10
| + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { |
| |
11
| + return 'many'; |
| |
12
| + } |
| |
13
| + return 'other'; |
| |
14
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.sv=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.sw=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ta=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.te=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.th=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.tl=function(n){return n===0||n==1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.tr=function(n){return "other"} |
| @@ -0,0 +1,14 @@ |
| @@ -0,0 +1,14 @@ |
| |
1
| +MessageFormat.locale.uk = function (n) { |
| |
2
| + if ((n % 10) == 1 && (n % 100) != 11) { |
| |
3
| + return 'one'; |
| |
4
| + } |
| |
5
| + if ((n % 10) >= 2 && (n % 10) <= 4 && |
| |
6
| + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { |
| |
7
| + return 'few'; |
| |
8
| + } |
| |
9
| + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || |
| |
10
| + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { |
| |
11
| + return 'many'; |
| |
12
| + } |
| |
13
| + return 'other'; |
| |
14
| +}; |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.ur=function(n){return n===1?"one":"other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.vi=function(n){return "other"} |
| @@ -0,0 +1 @@ |
| @@ -0,0 +1 @@ |
| |
1
| +MessageFormat.locale.zh=function(n){return "other"} |