Commit 033a6d99 authored by Michal Čihař's avatar Michal Čihař

Properly parse key/value monolingual files (fixes #281)

parent 8164b759
......@@ -139,8 +139,14 @@ class FileUnit(object):
if self.is_unit_key_value():
# Need to decode property encoded string
if isinstance(self.unit, propunit):
return quote.propertiesdecode(self.mainunit.name)
return self.mainunit.name
if self.template is not None:
return quote.propertiesdecode(self.template.value)
else:
return quote.propertiesdecode(self.unit.name)
if self.template is not None:
return self.template.value
else:
return self.unit.name
else:
if self.template is not None:
return get_string(self.template.target)
......
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