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
2159dca8
Commit
2159dca8
authored
Aug 30, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed new language validation
parent
a682aa46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
trans/models/subproject.py
trans/models/subproject.py
+2
-2
No files found.
trans/models/subproject.py
View file @
2159dca8
...
@@ -884,7 +884,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -884,7 +884,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
'''
'''
Validates new language choices.
Validates new language choices.
'''
'''
if
self
.
project
.
new_lang
==
'add
'
:
if
self
.
project
.
new_lang
==
'add'
:
if
not
self
.
file_format_cls
.
supports_new_language
():
if
not
self
.
file_format_cls
.
supports_new_language
():
raise
ValidationError
(
_
(
raise
ValidationError
(
_
(
'Chosen file format does not support adding '
'Chosen file format does not support adding '
...
@@ -896,7 +896,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -896,7 +896,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
'Format of base file for new translations '
'Format of base file for new translations '
'was not recognized!'
'was not recognized!'
))
))
elif
self
.
project
.
new_lang
!=
'add
'
and
self
.
new_base
:
elif
self
.
project
.
new_lang
!=
'add'
and
self
.
new_base
:
raise
ValidationError
(
_
(
raise
ValidationError
(
_
(
'Base file for new translations is not used because of '
'Base file for new translations is not used because of '
'project settings.'
'project settings.'
...
...
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