Re: [Zope3-dev] Message id's text interpolation

2005-12-18 Thread Stephan Richter
On Sunday 18 December 2005 06:00, Dmitry Vasiliev wrote: > Would it to be better if no substitution will happens if variable name > hasn't found in the mapping? So instead of u'some text None' we'll always > get u'some text ${variable}'. I think it would be better for debugging > purposes and also

Re: [Zope3-dev] Message id's text interpolation

2005-12-18 Thread Egon Frerich
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 Egon Dmitry Vasiliev schrieb am 18.12.2005 12:00: > > Currently variables inside the message id's text substituted to None if > variable name hadn't found in the mapping, like this: > > >>> from zope.i18nmessageid import Message > >>> from z

[Zope3-dev] Message id's text interpolation

2005-12-18 Thread Dmitry Vasiliev
Currently variables inside the message id's text substituted to None if variable name hadn't found in the mapping, like this: >>> from zope.i18nmessageid import Message >>> from zope.i18n import translate >>> message = Message("some text ${variable}", mapping={"typo": "variable"}) >>> tr