Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
f09d8642
Commit
f09d8642
authored
Oct 09, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistent messages for registration
parent
0d5c4af5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
13 deletions
+6
-13
accounts/forms.py
accounts/forms.py
+5
-2
weblate/html/i18n.html
weblate/html/i18n.html
+1
-11
No files found.
accounts/forms.py
View file @
f09d8642
...
...
@@ -250,7 +250,10 @@ class RegistrationForm(forms.Form):
)
if existing.exists():
raise forms.ValidationError(
_("A user with that username already exists.")
_(
'
This
username
is
already
taken
.
'
'
Please
choose
another
.
'
)
)
else:
return self.cleaned_data['
username
']
...
...
@@ -302,7 +305,7 @@ class RegistrationForm(forms.Form):
if password1 != password2:
raise forms.ValidationError(
_(
"The two password fields didn't match."
)
_(
'You must type the same password each time.'
)
)
except KeyError:
...
...
weblate/html/i18n.html
View file @
f09d8642
...
...
@@ -3,18 +3,8 @@ Fake file to translate messages from Django
-->
<!--
These are from django
-registration and django.contrib.auth.
These are from django
core
-->
{% blocktrans %}This username is already taken. Please choose another.{% endblocktrans %}
{% blocktrans %}You must type the same password each time{% endblocktrans %}
{% blocktrans %}This email address is already in use. Please supply a different email address.{% endblocktrans %}
{% blocktrans %}Old password{% endblocktrans %}
{% blocktrans %}New password{% endblocktrans %}
{% blocktrans %}New password confirmation{% endblocktrans %}
{% blocktrans %}The two password fields didn't match.{% endblocktrans %}
{% blocktrans %}E-mail{% endblocktrans %}
{% blocktrans %}Username{% endblocktrans %}
{% blocktrans %}Password{% endblocktrans %}
{% blocktrans %}Hold down "Control", or "Command" on a Mac, to select more than one.{% endblocktrans %}
<!--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment