Merge pull request #3739 from JohniFi/fix-dont-use-fstring-for-internationalization

Don't use f-string for i18n
This commit is contained in:
Griatch 2025-03-15 07:49:02 +01:00 committed by GitHub
commit 042f6c8b5c
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