#766·adarkroom

plural not used in english ?

Author: CrisiusCreated Aug 3, 2026Updated Aug 4, 2026

If i look for "plural" i find severall part using it i dont see it used in the 'original' english version and thats why i try to make it myself. not smart, i know, but need understanding

in script/outside.js is the part

/// TRANSLATORS : Mind the whitespace at the end. var s = _('the traps contain '); for(var l = 0, len = msg.length; l < len; l++) { if(len > 1 && l > 0 && l < len - 1) { s += ", "; } else if(len > 1 && l == len - 1) { /// TRANSLATORS : Mind the whitespaces at the beginning and end. s += _(" and "); } s += msg[l];

its always plural also with 1 trap only i already saw severall solutions but like to show my attempt

just a wild example, and i included -1 as 'single' since that can happen in grammar i had in mind a function with a string COULD help i was forced to use 'number2' instead of 'string' javascript is very new for me and a bit===odd ;) i hope its usefull in someway if this 'issue' is to much please inform me.

`function plural( number , number2 ){ return (number !=1 && number !=-1)? number2 : '' ; }

var traps = 10 ; var child = 1 ; var p = plural(traps, 's') ; var q = plural(child, 'eren') ; var s = ('the '+traps+' trap'+p + ' of the child'+q +' contain'+p+' nothing') ; console.log(traps) ; console.log(p) ; console.log(s) ;

var traps = 1 ; var child = 10 ; var p = plural(traps, 's') ; var q = plural(child, 'eren') ; var s = ('the '+traps+' trap'+p + ' of the child'+q +' contain'+p+' nothing') ; console.log(traps) ; console.log(p) ; console.log(s) ;

`

Source: doublespeakgames/adarkroom