From ce611a7c8ca212f51e733fd8ca0c8f8540e82e36 Mon Sep 17 00:00:00 2001 From: JohniFi <25084862+JohniFi@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:28:17 +0100 Subject: [PATCH] Update accounts.py Python f-strings don't work with internationalization (gettext). Refactor to use `.format` instead. --- evennia/accounts/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evennia/accounts/accounts.py b/evennia/accounts/accounts.py index 47720ad211..3cd1930857 100644 --- a/evennia/accounts/accounts.py +++ b/evennia/accounts/accounts.py @@ -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