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
5ae1ce6e
Commit
5ae1ce6e
authored
Feb 15, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap long lines
parent
da99ad0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
weblate/accounts/forms.py
weblate/accounts/forms.py
+6
-2
weblate/lang/models.py
weblate/lang/models.py
+3
-1
No files found.
weblate/accounts/forms.py
View file @
5ae1ce6e
...
...
@@ -141,7 +141,9 @@ class RegistrationForm(RegistrationFormUniqueEmail):
Password validation, requires length of six chars.
'''
if
len
(
self
.
cleaned_data
[
'password1'
])
<
6
:
raise
forms
.
ValidationError
(
_
(
u'Password needs to have at least six characters.'
))
raise
forms
.
ValidationError
(
_
(
u'Password needs to have at least six characters.'
)
)
return
self
.
cleaned_data
[
'password1'
]
def
clean_username
(
self
):
...
...
@@ -149,5 +151,7 @@ class RegistrationForm(RegistrationFormUniqueEmail):
Username validation, requires length of five chars.
'''
if
len
(
self
.
cleaned_data
[
'username'
])
<
5
:
raise
forms
.
ValidationError
(
_
(
u'Username needs to have at least five characters.'
))
raise
forms
.
ValidationError
(
_
(
u'Username needs to have at least five characters.'
)
)
return
super
(
RegistrationForm
,
self
).
clean_username
()
weblate/lang/models.py
View file @
5ae1ce6e
...
...
@@ -66,7 +66,9 @@ def get_plural_type(code, pluralequation):
elif
base_code
in
(
'ar'
):
return
PLURAL_ARABIC
logger
.
error
(
'Can not guess type of plural for %s: %s'
,
code
,
pluralequation
)
logger
.
error
(
'Can not guess type of plural for %s: %s'
,
code
,
pluralequation
)
return
PLURAL_UNKNOWN
...
...
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