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
01f1fca2
Commit
01f1fca2
authored
Oct 15, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make --lang filtering work on component level as well
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
92043290
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
weblate/trans/management/commands/__init__.py
weblate/trans/management/commands/__init__.py
+7
-7
No files found.
weblate/trans/management/commands/__init__.py
View file @
01f1fca2
...
...
@@ -163,14 +163,14 @@ class WeblateLangCommand(WeblateCommand):
'''
Returns list of units matching parameters.
'''
if
options
[
'all'
]:
if
options
[
'lang'
]
is
not
None
:
return
Unit
.
objects
.
filter
(
translation__language__code
=
options
[
'lang'
]
)
return
Unit
.
objects
.
all
(
)
units
=
super
(
WeblateLangCommand
,
self
).
get_units
(
*
args
,
**
options
)
if
options
[
'lang'
]
is
not
None
:
units
=
units
.
filter
(
translation__language__code
=
options
[
'lang'
]
)
return
super
(
WeblateLangCommand
,
self
).
get_units
(
*
args
,
**
options
)
return
units
def
get_translations
(
self
,
*
args
,
**
options
):
'''
...
...
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