Commit 1cda962d authored by Michal Čihař's avatar Michal Čihař

Fix lookup of units in PHP files

Issue #965
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f90e28df
......@@ -1122,6 +1122,12 @@ class PhpFormat(FileFormat):
with open(self.store.filename, 'wb') as handle:
handle.writelines(outputphplines)
def _find_unit_mono(self, context, store):
# Do not use findid as it does not work for empty translations
for search_unit in store.units:
if search_unit.source == context:
return search_unit
@register_fileformat
class RESXFormat(FileFormat):
......
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