Change string formatting
This commit is contained in:
parent
3ccefbdb74
commit
b580ac24f6
2 changed files with 9 additions and 7 deletions
|
@ -67,7 +67,8 @@ class ResendActivationEmailForm(forms.Form):
|
|||
try:
|
||||
c = CustomUser.objects.get(email=email)
|
||||
if c.validated == 1:
|
||||
raise forms.ValidationError(_("The account is already active."))
|
||||
raise forms.ValidationError(
|
||||
_("The account is already active."))
|
||||
return email
|
||||
except CustomUser.DoesNotExist:
|
||||
raise forms.ValidationError(_("User does not exist"))
|
||||
|
@ -157,8 +158,9 @@ class BillingAddressFormSignup(BillingAddressForm):
|
|||
try:
|
||||
CustomUser.objects.get(email=email)
|
||||
raise forms.ValidationError(
|
||||
_("The email {} is already registered with us. Please reset "
|
||||
"your password and access your account.".format(email))
|
||||
_("The email %(email)s is already registered with us. "
|
||||
"Please reset your password and access your account.") %
|
||||
{'email': email}
|
||||
)
|
||||
except CustomUser.DoesNotExist:
|
||||
return email
|
||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-07-05 23:18+0000\n"
|
||||
"POT-Creation-Date: 2018-07-07 19:27+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -781,10 +781,10 @@ msgid "Email"
|
|||
msgstr "E-Mail"
|
||||
|
||||
msgid ""
|
||||
"The email {} is already registered with us. Please reset your password and "
|
||||
"access your account."
|
||||
"The email %(email)s is already registered with us. Please reset your "
|
||||
"password and access your account."
|
||||
msgstr ""
|
||||
"Diese E-Mail-Adresse {} existiert bereits. Bitte setze dein Passwort zurück "
|
||||
"Diese E-Mail-Adresse %(email)s existiert bereits. Bitte setze dein Passwort zurück "
|
||||
"auf dein Konto zuzugreifen."
|
||||
|
||||
msgid "Street Building"
|
||||
|
|
Loading…
Reference in a new issue