Commit fbe1b6b4 authored by Michal Čihař's avatar Michal Čihař

Choose better variable names

parent 7d849ed8
......@@ -28,7 +28,7 @@ class Command(WeblateCommand):
'''
Shows status of git repository in given projects.
'''
for s in self.get_subprojects(*args, **options):
r = s.get_repo()
print '%s:' % s
print r.git.status()
for subproject in self.get_subprojects(*args, **options):
repo = subproject.get_repo()
print '%s:' % subproject
print repo.git.status()
......@@ -28,5 +28,5 @@ class Command(WeblateCommand):
'''
Commits pending translations in given projects.
'''
for s in self.get_subprojects(*args, **options):
s.commit_pending()
for subproject in self.get_subprojects(*args, **options):
subproject.commit_pending()
......@@ -2328,13 +2328,21 @@ class Translation(models.Model):
subproject__project=self.subproject.project
)
# Filter out those who don't want automatic update, but keep ourselves
translations = translations.filter(Q(pk=self.pk) | Q(subproject__allow_translation_propagation=True))
translations = translations.filter(
Q(pk=self.pk) | Q(subproject__allow_translation_propagation=True)
)
ret = False
# Do actual merge
for s in translations:
ret |= s.merge_store(author, store, overwrite, mergefuzzy, merge_header)
for translation in translations:
ret |= translation.merge_store(
author,
store,
overwrite,
mergefuzzy,
merge_header
)
return ret
......
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