When i18n text are read from .PO files, they are processed differently
than non-i18n counterparts. Precisely, string substitution doesn't
follow {{ myvar }} pattern anymore, but uses standard Python %(myvar)s
pattern. This might be confusing, since it is not very well documented
at http://www.djangoproject.com/documentati...

If you have in your template:

You were trying to reach a domain {{ fulldomain }} which is not
available.

Corresponding .PO entry is:

You were trying to reach a domain %(fulldomain)s which is not
available.

The culprint is django.templatags.i18n.BlockTranslateNode.render if
someone wants to poke the source.

    # Standard Python substitution below
    result = translation.gettext(singular) % context

--
Mikko Ohtamaa
Consultant
Red Innovation
http://www.redinnovation.com


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to