Commit 493e41e9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

provide DummyMessageCatalog.translate() so as not to raise AttributeError on...

provide DummyMessageCatalog.translate() so as not to raise AttributeError on Zope-2.12 when the test instance is accessed by a web browser.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39038 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6b761d11
...@@ -110,6 +110,9 @@ class DummyMessageCatalog: ...@@ -110,6 +110,9 @@ class DummyMessageCatalog:
return word return word
else: else:
return default return default
def translate(self, msgid, mapping=None, context=None,
target_language=None, default=None):
return default
class DummyLocalizer: class DummyLocalizer:
"""A replacement for stock cookie - based localizer. """A replacement for stock cookie - based localizer.
......
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