Skip to content

Commit

Permalink
Translated recaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersSeverinsen committed Nov 3, 2024
1 parent 0673222 commit 0def888
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bartenders/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Meta:
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.fields["captcha"].help_text = "Hjemmesiden er sikret med reCAPTCHAv2"
self.fields["captcha"].help_text = _("Hjemmesiden er sikret med reCAPTCHAv2")
self.fields["tshirt_size"].widget.attrs.update({"class": "form-control"})
for name in self.fields:
self.fields[name].required = name != "info"
Expand Down
2 changes: 1 addition & 1 deletion locale/da/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-18 12:48+0200\n"
"POT-Creation-Date: 2024-11-03 16:17+0100\n"
"PO-Revision-Date: 2024-10-17 23:46+0200\n"
"Last-Translator: <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down
Binary file modified locale/en/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-18 12:48+0200\n"
"PO-Revision-Date: 2024-10-18 12:48+0050\n"
"POT-Creation-Date: 2024-11-03 16:17+0100\n"
"PO-Revision-Date: 2024-11-03 16:17+0050\n"
"Last-Translator: <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
Expand Down
2 changes: 1 addition & 1 deletion udlejning/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Meta:
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.fields["captcha"].help_text = "Hjemmesiden er sikret med reCAPTCHAv2"
self.fields["captcha"].help_text = _("Hjemmesiden er sikret med reCAPTCHAv2")
self.fields["paymentType"].widget.attrs.update({"class": "form-control"})
for name in self.fields:
self.fields[name].required = name not in ["EANnumber", "comments"]
Expand Down
2 changes: 1 addition & 1 deletion web/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class LoginForm(forms.Form):
email = forms.EmailField()
captcha = ReCaptchaField(widget=ReCaptchaV2Invisible)
captcha.help_text = "Hjemmesiden er sikret med reCAPTCHAv2"
captcha.help_text = _("Hjemmesiden er sikret med reCAPTCHAv2")

def clean_email(self):
email = self.cleaned_data["email"]
Expand Down

0 comments on commit 0def888

Please sign in to comment.