1
0
forked from 0ad/0ad
0ad/binaries/data/mods/official/language/english/functions.js
Ykkrosh c63f5b6b21 Updated i18n data
This was SVN commit r1093.
2004-09-01 19:47:08 +00:00

27 lines
930 B
JavaScript
Executable File

function number(n, object) {
var word = lookup("nouns", object);
if (! word) // the word couldn't be found in the dictionary
return n+" "+object;
if (n == 1)
return n+" "+word.singular;
else
return n+" "+word.plural;
}
/* var r="";
while (1) {
r = (n%1000)+r;
n = Math.floor(n/1000);
if (n) {
r = ","+r;
} else {
break;
}
}
return r;*/
function test() {
return "banana2";
}