Skip to content

Commit fd73bcf

Browse files
committed
Formats: Fix adding with context to bilingual PO file
1 parent b440c11 commit fd73bcf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

weblate/formats/ttkit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ def create_unit(
371371
target = multistring(target)
372372
if key:
373373
unit.setid(key)
374+
if hasattr(unit, "setcontext"):
375+
unit.setcontext(key)
374376
elif target is not None and self.set_context_bilingual:
375377
unit.setid(context)
376378
unit.context = context

0 commit comments

Comments
 (0)