Commit 5baf286b authored by Jérome Perrin's avatar Jérome Perrin

add DummyTranslationService in utils

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8969268b
......@@ -59,6 +59,16 @@ class DummyMailHost(MailHost):
"""Record message in _last_message."""
self._last_message = (mfrom, mto, messageText)
class DummyTranslationService:
"""A dummy translation service where you can access translated msgids and
mappings in _translated.
"""
_translated = {}
def translate(self, domain, msgid, mapping=None, *args, **kw):
self._translated.setdefault(domain, []).append((msgid, mapping))
return msgid
# python scripts
def createZODBPythonScript(container, script_id, script_params,
script_content):
......
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