1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

unicode: Replaced remaining uses in Python code of gettext() with ugettext().

Similarly for ngettext, gettext_lazy and ngettext_lazy.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5229 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick
2007-05-14 11:24:37 +00:00
parent 2aa9d45c01
commit a4adfd780a
33 changed files with 127 additions and 128 deletions

View File

@@ -16,9 +16,9 @@ u'<p>F1: <input type="text" class="special" name="f1" maxlength="10" /></p>\n<p>
#######################
There were some problems with form translations in #3600
>>> from django.utils.translation import gettext_lazy, activate, deactivate
>>> from django.utils.translation import ugettext_lazy, activate, deactivate
>>> class SomeForm(Form):
... username = CharField(max_length=10, label=gettext_lazy('Username'))
... username = CharField(max_length=10, label=ugettext_lazy('Username'))
>>> f = SomeForm()
>>> print f.as_p()
<p><label for="id_username">Username:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>