Hello,

I read the documentation of gettext_noop and its template counterpart {% 
trans "value" noop %} and I must admit I still don't understand their use 
cases and usage.

This is what djangobook says:

--------x-------------------
"Marking strings as no-op
Use the function django.utils.translation.gettext_noop() to mark a string as a 
translation string without translating it. The string is later translated 
from a variable.

Use this if you have constant strings that should be stored in the source 
language because they are exchanged over systems or users -- such as strings 
in a database -- but should be translated at the last possible point in time, 
such as when the string is presented to the user."
--------x-------------------


I might be dumb, but could someone shed some light on this, and show an 
example of no-op'ed strings and late translation of it for the novice user? 
What is the use case here? How a string is translated from a variable? When?

Thanks in advance,

Amit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to