Commit 6e64b8a0 authored by Michal Čihař's avatar Michal Čihař

Make WeblateLangCommand handle --lang parameter

parent 7417acfa
......@@ -116,6 +116,20 @@ class WeblateLangCommand(WeblateCommand):
),
)
def get_translations(self, *args, **options):
'''
Returns list of translations matching parameters.
'''
result = super(WeblateLangCommand, self).get_translations(
*args, **options
)
if options['lang'] is not None:
langs = options['lang'].split(',')
result = result.filter(language_code__in=langs)
return result
def handle(self, *args, **options):
"""
The actual logic of the command. Subclasses must implement
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment