mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Update accounts.py
Python f-strings don't work with internationalization (gettext). Refactor to use `.format` instead.
This commit is contained in:
parent
9af0dbb904
commit
ce611a7c8c
1 changed files with 1 additions and 1 deletions
|
|
@ -516,7 +516,7 @@ class DefaultAccount(AccountDB, metaclass=TypeclassBase):
|
|||
and len(self.get_all_puppets()) >= _MAX_NR_SIMULTANEOUS_PUPPETS
|
||||
):
|
||||
self.msg(
|
||||
_(f"You cannot control any more puppets (max {_MAX_NR_SIMULTANEOUS_PUPPETS})")
|
||||
_("You cannot control any more puppets (max {max_puppets})".format(max_puppets=_MAX_NR_SIMULTANEOUS_PUPPETS))
|
||||
)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue