mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 16:33:38 +08:00
FIX: add missing MessageFormat files for fa_IR, pl_PL and tr_TR
This commit is contained in:
parent
6f0137dec9
commit
44e41df76b
3
lib/javascripts/locale/fa_IR.js
Normal file
3
lib/javascripts/locale/fa_IR.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
MessageFormat.locale.fa_IR = function ( n ) {
|
||||||
|
return "other";
|
||||||
|
};
|
15
lib/javascripts/locale/pl_PL.js
Normal file
15
lib/javascripts/locale/pl_PL.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
MessageFormat.locale.pl_PL = function (n) {
|
||||||
|
if (n == 1) {
|
||||||
|
return 'one';
|
||||||
|
}
|
||||||
|
if ((n % 10) >= 2 && (n % 10) <= 4 &&
|
||||||
|
((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) {
|
||||||
|
return 'few';
|
||||||
|
}
|
||||||
|
if ((n % 10) === 0 || n != 1 && (n % 10) == 1 ||
|
||||||
|
((n % 10) >= 5 && (n % 10) <= 9 || (n % 100) >= 12 && (n % 100) <= 14) &&
|
||||||
|
n == Math.floor(n)) {
|
||||||
|
return 'many';
|
||||||
|
}
|
||||||
|
return 'other';
|
||||||
|
};
|
3
lib/javascripts/locale/tr_TR.js
Normal file
3
lib/javascripts/locale/tr_TR.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
MessageFormat.locale.tr_TR = function(n) {
|
||||||
|
return 'other';
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user