summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Poster <gary@zope.com>2006-05-01 02:48:45 +0000
committerGary Poster <gary@zope.com>2006-05-01 02:48:45 +0000
commit0b6ad0b07d6baa8477c3aefdb49b10cfb2ead820 (patch)
tree3f6eee1c94414a5aa42517032145b414229c0cf5
parent3836031490e1cb3c20b1d9b2c8fd8dc876ece12c (diff)
downloadzope-tal-0b6ad0b07d6baa8477c3aefdb49b10cfb2ead820.tar.gz
undeprecate automatic translation of message ids
-rw-r--r--talinterpreter.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/talinterpreter.py b/talinterpreter.py
index e4646f7..fc916ae 100644
--- a/talinterpreter.py
+++ b/talinterpreter.py
@@ -624,24 +624,9 @@ class TALInterpreter(object):
return
if isinstance(text, I18nMessageTypes):
# Translate this now.
- # BBB: Deprecated. Will be removed in 3.3
- self._i18n_deprecate()
text = self.translate(text)
self._writeText(text)
- def _i18n_deprecate(self):
- if self.sourceFile is None:
- source = "<unknown>"
- else:
- source = self.sourceFile
- lineno = self.position[0]
- if lineno is not None:
- source += " (line %s)" % lineno
- warnings.warn('%s: Automatic translation of message id\'s is'
- ' deprecated and will be removed in 3.3.'
- ' Use explicit i18n:translate="" instead.'
- % source, DeprecationWarning, 2)
-
def do_insertI18nText_tal(self, stuff):
# TODO: Code duplication is BAD, we need to fix it later
text = self.engine.evaluateText(stuff[0])
@@ -686,8 +671,6 @@ class TALInterpreter(object):
# evaluate() does not do any I18n, so we do it here.
if isinstance(value, I18nMessageTypes):
# Translate this now.
- # BBB: Deprecated. Will be removed in 3.3
- self._i18n_deprecate()
value = self.translate(value)
if not structure: