Skip to content

Commit

Permalink
Merge pull request #324 from transifex/respect_source_file_when_langu…
Browse files Browse the repository at this point in the history
…age_supplied

Change download path when supplied language is source language
  • Loading branch information
igavriil authored Jun 25, 2021
2 parents 1dec4a2 + 13f7f2d commit 902d667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion txclib/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ def pull(self, languages=None, resources=None, overwrite=True,
new_translations |= new
logger.debug("Adding to new translations: %s" % new)

if fetchsource:
if fetchsource or slang in languages:
new_translations.discard(slang)
pull_languages.discard(slang)
if sfile and slang not in pull_languages:
pull_languages.add(slang)
elif slang not in new_translations:
Expand Down

0 comments on commit 902d667

Please sign in to comment.