Another problem I am facing is it seems some pages are not being translated
until I hit certain page, after that everything is fine. I am not exactly
sure what the problem is but if you guys experience this problem, would
appreciate some insights.
-Aaron
On Wed, Jun 16, 2010 at 4:47 PM, Aaron Lee
Thanks, the lazy translation solves the problem.
-Aaron
On Wed, Jun 16, 2010 at 2:59 PM, Antoni Aloy wrote:
> Try to use lazy translation.
>
> El 16/06/2010 23:09, "Aaron" escribió:
>
>
> Well what happened was I have a forms.py
>
> which has
>
> CONSTANT = _("Hello World")
> x = {'var': CONST
Try to use lazy translation.
El 16/06/2010 23:09, "Aaron" escribió:
Well what happened was I have a forms.py
which has
CONSTANT = _("Hello World")
x = {'var': CONSTANT }
and in the django.po, I do have a translation
msgid "Hello World"
msgstr "xxx"
But it doesn't show up on the website, all
Well what happened was I have a forms.py
which has
CONSTANT = _("Hello World")
x = {'var': CONSTANT }
and in the django.po, I do have a translation
msgid "Hello World"
msgstr "xxx"
But it doesn't show up on the website, all the other translations
work, so I am wondering what am I missing
-Aar
On Wed, Jun 16, 2010 at 01:00:36PM -0700, Aaron Lee wrote:
> def my_view(request):
> sentence = 'Welcome to my site.'
> output = _(sentence)
> return HttpResponse(output)
>
> (The caveat with using variables or computed values, as in the previous two
> examples, is that Django’s transl
5 matches
Mail list logo