https://docs.djangoproject.com/en/dev/topics/i18n/translation/


On Wed, Jul 10, 2013 at 5:28 PM, Sravan Reddy <notifications@github.com>wrote:

> In corehq/apps/fixtures/views.py:
>
> > @@ -448,15 +488,19 @@ def _get_or_raise(container, attr):
> >                          if group:
> >                              old_data_item.add_group(group, transaction=transaction)
> >                          else:
> > -                            messages.error(request, "Unknown group: %s" % group_name)
> > +                            messages.error(request, _("Unknown group: '%(name)s'. But the row is successfully added" % {'name': group_name}))
>
> Translation after parameter substitution made more sense, and it worked.
> How translations are done on strings with substituted parameters>
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/578/files#r5117770>
> .
>



-- 
Simon Kelly
Senior Engineer | Dimagi South Africa