mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[dist] Update locales and dist
This commit is contained in:
@@ -5,7 +5,14 @@
|
||||
var django = globals.django || (globals.django = {});
|
||||
|
||||
|
||||
django.pluralidx = function (count) { return (count == 1) ? 0 : 1; };
|
||||
django.pluralidx = function (n) {
|
||||
var v=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;
|
||||
if (typeof(v) == 'boolean') {
|
||||
return v ? 1 : 0;
|
||||
} else {
|
||||
return v;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user