Commit d5dcfc10 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Export only the message catalog erp5_ui.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2256 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0525ae83
...@@ -836,8 +836,8 @@ class MessageTranslationTemplateItem(BaseTemplateItem): ...@@ -836,8 +836,8 @@ class MessageTranslationTemplateItem(BaseTemplateItem):
localizer = context.getPortalObject().Localizer localizer = context.getPortalObject().Localizer
for lang in self._archive.keys(): for lang in self._archive.keys():
self._archive[lang] = PersistentMapping() self._archive[lang] = PersistentMapping()
# Is it a good idea to include erp5_content? # Export only erp5_ui at the moment. This is safer against information leak.
for catalog in ('erp5_ui', 'erp5_content'): for catalog in ('erp5_ui', ):
LOG('MessageTranslationTemplateItem build', 0, 'catalog = %r' % (catalog,)) LOG('MessageTranslationTemplateItem build', 0, 'catalog = %r' % (catalog,))
mc = localizer._getOb(catalog) mc = localizer._getOb(catalog)
LOG('MessageTranslationTemplateItem build', 0, 'mc = %r' % (mc,)) LOG('MessageTranslationTemplateItem build', 0, 'mc = %r' % (mc,))
......
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