Update accounts.py

Python f-strings don't work with internationalization (gettext).
Refactor to use `.format` instead.
This commit is contained in:
JohniFi 2025-03-10 12:28:17 +01:00 committed by GitHub
parent 9af0dbb904
commit ce611a7c8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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