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:
>
> ---
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
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") %
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-
4 matches
Mail list logo