[ZCM] [ZC] 1888/ 3 Edit "TAL fails when untranslated MessageId is provided"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Sep 6 13:37:56 EDT 2005


Issue #1888 Update (Edit) "TAL fails when untranslated MessageId is provided"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1888

==============================================================
= Edit - Entry #3 by regebro on Sep 6, 2005 1:37 pm

 Changes: edited transcript
________________________________________
If you use a MessageID, TALInterpreter will try to translate this in do_insertText_tal(). But it does not provide a default, so, if the text for some reason is not translated, and None is returned, the susequent effort to quote the result fails.

The fix is easy. Line 510 should be changed from:

  text = self.engine.translate(text.domain, text, text.mapping)
to
  text = self.engine.translate(text.domain, text, text.mapping, default=text)

I can do this, unless somebody who has an up to date checkout does it first. ;)

==============================================================



More information about the Zope-Collector-Monitor mailing list