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
459abc88
Commit
459abc88
authored
Oct 21, 2014
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
491eacb5
bdf3a1c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+2
-2
No files found.
weblate/trans/models/subproject.py
View file @
459abc88
...
...
@@ -440,7 +440,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
'''
Returns true if new languages can be added.
'''
return
self
.
project
.
new_lang
!=
'none'
return
self
.
new_lang
!=
'none'
@
property
def
linked_subproject
(
self
):
...
...
@@ -1237,7 +1237,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
'''
Creates new language file.
'''
if
self
.
project
.
new_lang
!=
'add'
:
if
self
.
new_lang
!=
'add'
:
raise
ValueError
(
'Not supported operation!'
)
if
not
self
.
file_format_cls
.
supports_new_language
():
...
...
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