Commit aef76517 authored by Jérome Perrin's avatar Jérome Perrin

the DummyLocalizer must store message catalog on instance, not on the class,

otherwise they are not reinitialized


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17887 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 94a7a147
......@@ -84,10 +84,11 @@ class DummyLocalizer:
and erp5_content message catalogs. It's a list.
"""
__allow_access_to_unprotected_subobjects__ = 1
erp5_ui = ui = DummyMessageCatalog()
erp5_content = content = DummyMessageCatalog()
default = DummyMessageCatalog()
lang = 'en'
def __init__(self):
self.erp5_ui = self.ui = DummyMessageCatalog()
self.erp5_content = self.content = DummyMessageCatalog()
self.default = DummyMessageCatalog()
self.lang = 'en'
def __getitem__(self, key):
if hasattr(self, key):
......
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