I'm not sure if this could be easily integrated into django's
translation mecanism ... but I'm pretty convinced a feature is
missing :

The thing is that you want to render a sentence like "go to the page
registration form" with a link on "registration form" ... but you dont
want the translated sentence to be splited in 2 (because another
language might not be able to support that). thus you dont that :

        <p>{% trans "go to the page" %}<span><a href="test">{% trans
        "registration form" %}</a></span>

if in another language the same sentence is written "backwards" with
the words on which the link should be (registration form) in first
position, then it's not working.

Writting pseudo-django code I would say this could be written (I'm not
suggesting anything like that, but I hope this could help me make my
point ) :
[ I use a new tag "with" that is  almost the same thing as when you
write {% blocktrans with value|filter as myvar %} : it defines a value
that will be used to replace a gap inside a translated string ]

{% blocktrans%}
    {% with page_name %}
        <a href="/test">
         {% blocktrans%}registration form{% endblocktrans %}
        </a>
    {% endwith %}
go to the page {{ page_name }}.
{% endblocktrans %}

This way you would have the possiblity to replace something with html
(links) inside the value of a translated string.

Does that make more sense ?

Regards,

AD


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

Reply via email to