From 690bb34eff02ecfca69cf5c05057ae38482ff29a Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Fri, 8 Mar 2024 22:58:38 +1300 Subject: [PATCH] I know this looks weird but this is how flask_babel (string translation package) wants it done --- app/community/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/community/forms.py b/app/community/forms.py index e28fce4e..ee514ad6 100644 --- a/app/community/forms.py +++ b/app/community/forms.py @@ -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 == '':