Problem solved! Thanks!!!! On Nov 10, 12:52 pm, Tom Evans <tevans...@googlemail.com> wrote: > On Wed, Nov 10, 2010 at 11:51 AM, Tom Evans <tevans...@googlemail.com> 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") % {'title': book1.title} > > > > > > > > > > > So first you get the translated version of the format string, then you > > interpolate that with your variables, not the other way around. > > > Cheers > > > Tom
-- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.