Hi guys,

In http://www.djangobook.com/en/2.0/chapter19, there is a paragraph

Translation works on variables. Again, here’s an identical example:

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 translation-string-detecting utility,
django-admin.py makemessages, won’t be able to find these strings. More on
makemessages later.)
It's a bit confusing, one one hand it says Translation works on variables,
on the other hand, it says makemessages won't be able to find these strings.

Which one is right? The makemessages section didn't mention how to "fix"
this problem neither.

Any ideas?
-Aaron

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

Reply via email to