Skip to content

Commit

Permalink
Formats: Avoid setting not set language
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 1, 2021
1 parent 6e54609 commit 5f3cde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/formats/ttkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def create_unit(
source = self.create_unit_key(key, source)

unit.source = source
if isinstance(unit, LISAunit):
if isinstance(unit, LISAunit) and self.language_code:
unit.settarget(target, self.language_code)
else:
unit.target = target
Expand Down

0 comments on commit 5f3cde9

Please sign in to comment.