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
...@@ -4551,7 +4551,7 @@ class MessageTranslationTemplateItem(BaseTemplateItem): ...@@ -4551,7 +4551,7 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
name = posixpath.split(file_name)[1] name = posixpath.split(file_name)[1]
if name == 'translation.po': if name == 'translation.po':
text = file.read() text = file.read()
self._objects[file_name[:-3]] = text self._objects[file_name[:-len(name)]] = text
elif name == 'language.xml': elif name == 'language.xml':
xml = parse(file) xml = parse(file)
name = xml.find('name').text 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