mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: add missing MessageFormat files for fa_IR, pl_PL and tr_TR
This commit is contained in:
parent
6f0137dec9
commit
44e41df76b
3 changed files with 21 additions and 0 deletions
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 a new issue