Commit 307e4b74 authored by Georgios Dagkakis's avatar Georgios Dagkakis

MessageTranslationTemplateItem: fix in _import so that the path of the .po...

MessageTranslationTemplateItem: fix in _import so that the path of the .po files are the same as in build
parent 0e2b012f
No related merge requests found
......@@ -4551,7 +4551,7 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
name = posixpath.split(file_name)[1]
if name == 'translation.po':
text = file.read()
self._objects[file_name[:-3]] = text
self._objects[file_name[:-len(name)]] = text
elif name == 'language.xml':
xml = parse(file)
name = xml.find('name').text
......
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