mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-04-23 09:08:39 +02:00
locale: improve and fix translations
This commit is contained in:
@@ -16,13 +16,13 @@ from apps.users.models import UserSettings
|
||||
|
||||
class LoginForm(AuthenticationForm):
|
||||
username = UsernameField(
|
||||
label="Seu e-mail",
|
||||
label=_("E-mail"),
|
||||
widget=forms.EmailInput(
|
||||
attrs={"class": "form-control", "placeholder": "E-mail", "name": "email"}
|
||||
),
|
||||
)
|
||||
password = forms.CharField(
|
||||
label="Sua senha",
|
||||
label=_("Password"),
|
||||
strip=False,
|
||||
widget=forms.PasswordInput(
|
||||
attrs={"class": "form-control", "placeholder": "Senha"}
|
||||
|
||||
@@ -58,7 +58,7 @@ def update_settings(request):
|
||||
form = UserSettingsForm(request.POST, instance=user_settings)
|
||||
if form.is_valid():
|
||||
form.save()
|
||||
messages.success(request, _("Your settings have been updated."))
|
||||
messages.success(request, _("Your settings have been updated"))
|
||||
return HttpResponse(
|
||||
status=204,
|
||||
headers={"HX-Refresh": "true"},
|
||||
|
||||
Reference in New Issue
Block a user