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

Mauricio Teixeira (netmask) at Labix Tracker tracker at labix.org
Fri Nov 17 10:50:45 PST 2006


Mauricio Teixeira (netmask) <mteixeira at webset.net> added the comment:

Looks like it will demand a lot of work to implement the format proposed by
fundawang. The correct solution would be (using bogdano's example):

>>> m={"foo":"sape", "bar":"grimpa"}
>>> smart._("Some people call %(foo)s as %(bar)s") % m
u'Some people call sape as grimpa'

So it would need to create a dict mapping for each string that uses more than
one var. It's doable, but would require quite some work on rewriting a lot of
code, and rechecking all the translation files.

Anyone agree with fundawang's suggestion? Does it really brings any advantage
over the current way?

----------
nosy: +netmask

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue146>
_______________________________________



More information about the Smart mailing list