I know this looks weird but this is how flask_babel (string translation package) wants it done

This commit is contained in:
rimu 2024-03-08 22:58:38 +13:00
parent 12545379b3
commit 690bb34eff

View file

@ -81,7 +81,7 @@ class CreatePostForm(FlaskForm):
return False
domain = domain_from_url(self.link_url.data, create=False)
if domain and domain.banned:
self.link_url.errors.append(_("Links to %s are not allowed." % (domain.name)))
self.link_url.errors.append(_("Links to %(domain)s are not allowed.", domain=domain.name))
return False
elif self.post_type.data == 'image':
if self.image_title.data == '':