[issue146] Various i18n fix (mainly variable name) for trunk

Bogdano Arendartchuk debogdano at gmail.com
Mon May 8 05:26:40 PDT 2006


2006/5/8, Michael Vogt at Labix Tracker <tracker at labix.org>:
>
> Michael Vogt <michael.vogt at ubuntu.com> added the comment:
>
> Thanks for your bugreport and your patch.
>
> I applied it to the svn trunk/ and it will be part of the next release.
>

This patch has been fully tested? Am I missing something about the
behavior of "%(name)s" format?

>>> import smart
>>> smart.init()
<smart.control.Control object at 0xb77b4aec>
>>> foo = "sapé"
>>> bar = "grimpa"
>>> smart._("Some people call %(foo)s as %(bar)s") % (foo, bar)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: format requires a mapping


More information about the Smart mailing list