summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGodefroid Chapelle <gotcha@bubblenet.be>2005-09-24 09:48:56 +0000
committerGodefroid Chapelle <gotcha@bubblenet.be>2005-09-24 09:48:56 +0000
commit8376cdbe10101eb7fe044b7ee64cca3c7f64aa09 (patch)
treefdf40b5c110cdcf40ba4600506d79510bcb03f53
parente6264461ad16af584cae4270dde226f5405aa7d9 (diff)
downloadzope-tal-8376cdbe10101eb7fe044b7ee64cca3c7f64aa09.tar.gz
add a test
-rw-r--r--tests/test_talinterpreter.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_talinterpreter.py b/tests/test_talinterpreter.py
index fd6ae4f..085c47f 100644
--- a/tests/test_talinterpreter.py
+++ b/tests/test_talinterpreter.py
@@ -159,6 +159,16 @@ class I18NCornerTestCaseBase(TestCaseBase):
'</div>')
self._check(program, '<div>FOOVALUE</div>\n')
+ def test_unused_explicit_domain(self):
+ # constructs a msgid and set it up in the namespace
+ self.engine.setLocal('baz',
+ self.factory('BaZvAlUe', 'default', {}))
+ program, macros = self._compile(
+ '<div i18n:translate=""'
+ ' i18n:domain="a_very_explicit_domain_setup_by_template_developer_that_wont_be_taken_into_account_by_the_ZPT_engine"'
+ ' tal:content="baz" />')
+ self._check(program, '<div>BAZVALUE</div>\n')
+
def test_pythonexpr_replace_with_messageid_and_i18nname(self):
program, macros = self._compile(
'<div i18n:translate="" >'