mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 14:36:08 -04:00
added ru plural formula, updated template for edited privatebin.js
This commit is contained in:
parent
ccba2f029f
commit
2847bbc45d
7 changed files with 8 additions and 6 deletions
|
@ -414,6 +414,8 @@ $(function() {
|
|||
return (n > 1 ? 1 : 0);
|
||||
case 'pl':
|
||||
return (n === 1 ? 0 : n%10 >= 2 && n %10 <=4 && (n%100 < 10 || n%100 >= 20) ? 1 : 2);
|
||||
case 'ru':
|
||||
return (n % 10 === 1 && n % 100 !== 11 ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2));
|
||||
// en, de
|
||||
default:
|
||||
return (n !== 1 ? 1 : 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue