repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update migrateUserGroup to deal with primary key issue
[mediawiki.git]
/
resources
/
mediawiki.language
/
languages
/
gd.js
blob
5ac20077859e0eb33e581eddb5ac1f60ef949a1f
1
/**
2
* Scots Gaelic (GĂ idhlig) language functions
3
*/
4
5
mediaWiki.language.convertPlural = function( count, forms ) {
6
forms = mediaWiki.language.preConvertPlural( forms, 4 );
7
count = Math.abs( count );
8
if ( count === 1 ) {
9
return forms[0];
10
}
11
if ( count === 2 ) {
12
return forms[1];
13
}
14
if ( count >= 3 && count <= 10 ) {
15
return forms[2];
16
}
17
return forms[3];
18
};