mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
unicode: Added in a test that I want to work later (once some i18n problems are
worked out). git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
fbfefbf83d
commit
4c34343e17
@ -23,10 +23,16 @@ There were some problems with form translations in #3600
|
|||||||
>>> print f.as_p()
|
>>> print f.as_p()
|
||||||
<p><label for="id_username">Username:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>
|
<p><label for="id_username">Username:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>
|
||||||
|
|
||||||
|
Translations are done at rendering time, so multi-lingual apps can define forms
|
||||||
|
early and still send back the right translation.
|
||||||
|
|
||||||
# XFAIL
|
# XFAIL
|
||||||
# >>> activate('de')
|
# >>> activate('de')
|
||||||
# >>> print f.as_p()
|
# >>> print f.as_p()
|
||||||
# <p><label for="id_username">Benutzername:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>
|
# <p><label for="id_username">Benutzername:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>
|
||||||
|
# >>> activate('pl')
|
||||||
|
# >>> f.as_p()
|
||||||
|
# u'<p><label for="id_username">Nazwa u\u017cytkownika:</label> <input id="id_username" type="text" name="username" maxlength="10" /></p>'
|
||||||
# >>> deactivate()
|
# >>> deactivate()
|
||||||
|
|
||||||
Unicode decoding problems...
|
Unicode decoding problems...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user