Skip to content

Commit

Permalink
Formats: Fix TBX file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 1, 2021
1 parent 131fd5f commit 6e54609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions weblate/formats/ttkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,7 @@ class TBXFormat(TTKitFormat):
autoload: Tuple[str, ...] = ("*.tbx",)
new_translation = tbxfile.XMLskeleton
unit_class = TBXUnit
create_empty_bilingual: bool = True

def __init__(
self, storefile, template_store=None, language_code=None, is_template=False
Expand Down
2 changes: 1 addition & 1 deletion weblate/trans/models/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def configure_repo(self, validate=False, pull=True):
self.full_path,
{self.template: self.file_format_cls.get_new_file_content()}
if self.template
else None,
else {},
)
return

Expand Down

0 comments on commit 6e54609

Please sign in to comment.