Re: Localization problems with parametric string

2010-11-10 Thread Tom Evans
On Wed, Nov 10, 2010 at 8:26 AM, rmazzocchi wrote: > Hello everyone, I have trouble to solving a problem with > the internationalization of some strings. To better explane the > problem I created a simple example: > The models (models.py) are as follows: > > ---

Re: Localization problems with parametric string

2010-11-10 Thread Tom Evans
On Wed, Nov 10, 2010 at 11:51 AM, Tom Evans wrote: > > This won't work, the msgid in the gettext catalogue is for "hello > %(title)s", not  the interpolated version. It should be like so: > > test1 = _("hello %(title)s") % {'title': book1.title}) or rather: test1 = _("hello %(title)s") % {'tit

Re: Localization problems with parametric string

2010-11-10 Thread rmazzocchi
Problem solved! Thanks On Nov 10, 12:52 pm, Tom Evans wrote: > On Wed, Nov 10, 2010 at 11:51 AM, Tom Evans wrote: > > > This won't work, the msgid in the gettext catalogue is for "hello > > %(title)s", not  the interpolated version. It should be like so: > > > test1 = _("hello %(title)s") %

Localization problems with parametric string

2010-11-10 Thread rmazzocchi
Hello everyone, I have trouble to solving a problem with the internationalization of some strings. To better explane the problem I created a simple example: The models (models.py) are as follows: --- -- #! -*- coding: utf-