Make form errors i18nalizable
This commit is contained in:
parent
3775d3a9c9
commit
06d590ff3b
34
po/plume.pot
34
po/plume.pot
@ -281,3 +281,37 @@ msgstr ""
|
||||
|
||||
msgid "Your comment"
|
||||
msgstr ""
|
||||
|
||||
msgid "Unknown error"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid name"
|
||||
msgstr ""
|
||||
|
||||
msgid "A blog with the same name already exists."
|
||||
msgstr ""
|
||||
|
||||
msgid "Your comment can't be empty"
|
||||
msgstr ""
|
||||
|
||||
msgid "A post with the same title already exists."
|
||||
msgstr ""
|
||||
|
||||
msgid "We need an email or a username to identify you"
|
||||
msgstr ""
|
||||
|
||||
msgid "Your password should be at least 8 characters long"
|
||||
msgstr ""
|
||||
|
||||
msgid "Passwords are not matching"
|
||||
msgstr ""
|
||||
|
||||
msgid "Username can't be empty"
|
||||
msgstr ""
|
||||
|
||||
msgid "Invalid email"
|
||||
msgstr ""
|
||||
|
||||
msgid "Password should be at least 8 characters long"
|
||||
msgstr ""
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
<label for="{{ name }}">{{ label | _ }}</label>
|
||||
{% if errors is defined and errors[name] %}
|
||||
{% for err in errors[name] %}
|
||||
<p class="error">{{ err.message | default(value="Unknown error") }}</p>
|
||||
<p class="error">{{ err.message | default(value="Unknown error") | _ }}</p>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
<input type="{{ type }}" id="{{ name }}" name="{{ name }}" value="{{ form[name] | default(value="") }}" {{ props | safe }}/>
|
||||
|
Loading…
Reference in New Issue
Block a user