internationalization using python

This is the place for queries that don't fit in any of the other categories.

internationalization using python

Postby tkansara » Mon Jan 27, 2014 7:40 pm

Hey Guys,

I can get Internationalization using Django/Pyhton. However the following line never translates. Any suggestion should be helpful. Thanks

Code: Select all
{% trans "<a href='http://www.abc.com' target='_blank'>www.abc.com</a>" as url_openthefile %}
              {% trans "<a href='http://www.abc.com' target='_blank'>open files</a>" as url_openfiles %}
             
              {% blocktrans %}
              Also visit our partner site {{ url_openthefile }} for more options to {{ url_openfiles }}.
              {% endblocktrans %}


The po file has the following lines:

#: .***.html.py:93
#: .***.html.py:93
#, python-format
msgid "Also visit our partner site %(url_openthefile)s for more options to %(url_open)s."
msgstr "Visitez &eacute;galement le site de notre partenaire %(url_openthefile)s afin de d&eacute;couvrir d'autres possibilit&eacute;s pour %(url_open)s."

Only this line does not translate to the different languages. Am I doing something wrong here? If so please point out.

In case you are wondering I am trying to insert URL in a line and change the text for line and "a href" tag as per the language.

Thanks
tkansara
 
Posts: 1
Joined: Mon Jan 27, 2014 7:33 pm

Return to General Coding Help

Who is online

Users browsing this forum: Marbelous and 5 guests