mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
Small update to [1057]
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@1058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
e2b7527f79
commit
9af59f4ba8
@ -96,8 +96,8 @@ If you don't like the verbose name ``gettext_lazy``, you can just alias it as
|
|||||||
|
|
||||||
Always use lazy translations in Django models. And it's a good idea to add
|
Always use lazy translations in Django models. And it's a good idea to add
|
||||||
translations for the field names and table names, too. This means writing
|
translations for the field names and table names, too. This means writing
|
||||||
explicit verbose_name and verbose_names options in the ``META`` class,
|
explicit ``verbose_name`` and ``verbose_name_plural`` options in the ``META``
|
||||||
though::
|
class, though::
|
||||||
|
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user