Fix format instead of variable in gettext

This commit is contained in:
rubenwardy
2022-01-14 18:28:22 +00:00
parent beb916d521
commit e02c014890
10 changed files with 52 additions and 19 deletions

View File

@@ -155,7 +155,7 @@ def do_edit_package(user: User, package: Package, was_new: bool, was_web: bool,
break
if tag.is_protected and tag not in old_tags and not user.rank.atLeast(UserRank.EDITOR):
raise LogicError(400, lazy_gettext("Unable to add protected tag {tag.title} to package"))
raise LogicError(400, lazy_gettext("Unable to add protected tag %(title)s to package", title=tag.title))
package.tags.append(tag)