On 7/25/07, Nathan Ostgard <[EMAIL PROTECTED]> wrote:
> What import are you aliasing as _?
Nothing, because I believed it is globally available and no import is
neccessary.
It was probably true before swap to UNICODE. And on the top of it, I
got somehow deranged and assumed that _() function
What import are you aliasing as _?
You have three options for gettext calls:
- ugettext, which translates as soon as it's *called*.
- ugettext_lazy, which does not translate until the attribute is
*accessed*.
- ugettext_noop, which translates at the last possible moment, such as
when the value
Hi all,
I'm trying to embed login form into each page. I implemented it using
new forms as inclusion tag. Form model looks like:
...
sf_name = forms.CharField(required=True, label=_('Username:'),
max_length=30, widget=forms.TextInput(attrs={'class':'wsu-login-edit'}))
...
If I change
3 matches
Mail list logo