Commit 786608ad authored by Jérome Perrin's avatar Jérome Perrin

MessageTranslationTemplateItem only imports translation.po



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11627 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d2b60450
...@@ -3539,8 +3539,9 @@ class MessageTranslationTemplateItem(BaseTemplateItem): ...@@ -3539,8 +3539,9 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
f.close() f.close()
def _importFile(self, file_name, file): def _importFile(self, file_name, file):
if os.path.split(file_name)[1] == 'translation.po':
text = file.read() text = file.read()
self._objects[file_name[:-3]]=text self._objects[file_name[:-3]] = text
class LocalRolesTemplateItem(BaseTemplateItem): class LocalRolesTemplateItem(BaseTemplateItem):
......
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