El lun, 14-03-2011 a las 11:45 -0500, Juan Gabriel Aldana Jaramillo
escribió:
> Thanks for your comprehensive reply. Now everything is clear to me.
>
Also you should check django-rosetta, it permits translating through an
admin like interface, with google translate integration; very nice ;)
htt
Thanks for your comprehensive reply. Now everything is clear to me.
On Mon, Mar 14, 2011 at 11:30 AM, Tom Evans wrote:
> On Mon, Mar 14, 2011 at 4:05 PM, Juan Gabriel Aldana Jaramillo
> wrote:
> > Thanks for your response.
> > Now, If I have a text that will be translated ( {% trans "text_1" %
Thanks for your response.
Now, If I have a text that will be translated ( {% trans "text_1" %}), Where
should I call the _("text_1") view to store the label and its translation?
According to the documentation, this view could be called inside the .py
file but I think that doing that I am breaking
On Mon, Mar 14, 2011 at 4:05 PM, Juan Gabriel Aldana Jaramillo
wrote:
> Thanks for your response.
> Now, If I have a text that will be translated ( {% trans "text_1" %}), Where
> should I call the _("text_1") view to store the label and its translation?
> According to the documentation, this view
On Mon, Mar 14, 2011 at 1:27 PM, hassan wrote:
> take a look at
> http://docs.djangoproject.com/en/1.2/topics/i18n/internationalization/
> it is clear,
> but for short:
>
> 1 - in .py files:
> from django.utils.translation import ugettext as _
> and mark each text you want to traslate like
take a look at
http://docs.djangoproject.com/en/1.2/topics/i18n/internationalization/
it is clear,
but for short:
1 - in .py files:
from django.utils.translation import ugettext as _
and mark each text you want to traslate like this _("My string")
2 - in .html files:
{% load i18n %}
Hi,
I am new with Python and Django. Currently I am working on a new
project using Django and I already have some templates ready to be
used but now I want to use the internationalization feature to
translate some texts of these templates. I already read the
documentation about it but I don't know
7 matches
Mail list logo