Items can be plural by default
This commit is contained in:
parent
dcab25c5ce
commit
b45e906f58
1 changed files with 8 additions and 2 deletions
|
|
@ -178,7 +178,13 @@ class Room(ObjectParent, ExtendedRoom, ContribRPRoom, Listener):
|
||||||
nthings = len(thinglist)
|
nthings = len(thinglist)
|
||||||
thing = thinglist[0]
|
thing = thinglist[0]
|
||||||
singular, plural = thing.get_numbered_name(nthings, looker, key=thingname)
|
singular, plural = thing.get_numbered_name(nthings, looker, key=thingname)
|
||||||
thing_names.append(singular if nthings == 1 else plural)
|
if nthings > 1:
|
||||||
|
thing_names.append(plural)
|
||||||
|
elif thing.db.plural:
|
||||||
|
thing_names.append(thing.get_display_name(looker))
|
||||||
|
else:
|
||||||
|
thing_names.append(singular)
|
||||||
|
|
||||||
thing_names = iter_to_str(thing_names, endsep=_(", and"))
|
thing_names = iter_to_str(thing_names, endsep=_(", and"))
|
||||||
return _(f"You notice {thing_names}." if thing_names else "")
|
return _(f"You notice {thing_names}." if thing_names else "")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue