Loading docs/topics/i18n.txt +14 −12 Original line number Diff line number Diff line Loading @@ -185,10 +185,12 @@ If you don't like the verbose name ``ugettext_lazy``, you can just alias it as name = models.CharField(help_text=_('This is the help text')) Always use lazy translations in :ref:`Django models <topics-db-models>`. Field names and table names should be marked for translation or else they will not be translated in the admin interface. This means writing explicit Field names and table names should be marked for translation (otherwise, they won't be translated in the admin interface). This means writing explicit ``verbose_name`` and ``verbose_name_plural`` options in the ``Meta`` class, though:: though, rather than relying on Django's default determination of ``verbose_name`` and ``verbose_name_plural`` by looking at the model's class name:: from django.utils.translation import ugettext_lazy as _ Loading Loading
docs/topics/i18n.txt +14 −12 Original line number Diff line number Diff line Loading @@ -185,10 +185,12 @@ If you don't like the verbose name ``ugettext_lazy``, you can just alias it as name = models.CharField(help_text=_('This is the help text')) Always use lazy translations in :ref:`Django models <topics-db-models>`. Field names and table names should be marked for translation or else they will not be translated in the admin interface. This means writing explicit Field names and table names should be marked for translation (otherwise, they won't be translated in the admin interface). This means writing explicit ``verbose_name`` and ``verbose_name_plural`` options in the ``Meta`` class, though:: though, rather than relying on Django's default determination of ``verbose_name`` and ``verbose_name_plural`` by looking at the model's class name:: from django.utils.translation import ugettext_lazy as _ Loading