summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSimon Willison <simon@simonwillison.net>2008-09-11 02:32:59 +0000
committerSimon Willison <simon@simonwillison.net>2008-09-11 02:32:59 +0000
commitb0da050b830ac902f16cc5f6891ea64ed9ae1457 (patch)
tree2fa82e722f5b7a7adb042c3480dbf96fbf81c829 /docs
parentcfcfc456e909df9f9184d3dd7a5eaca0d0cdbd18 (diff)
Clarified i18n docs concerning verbose_name and verbose_name_plural - fixes #7102
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/i18n.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/topics/i18n.txt b/docs/topics/i18n.txt
index 8ba2f9c89f..00cfd18ff7 100644
--- a/docs/topics/i18n.txt
+++ b/docs/topics/i18n.txt
@@ -184,10 +184,11 @@ If you don't like the verbose name ``ugettext_lazy``, you can just alias it as
class MyThing(models.Model):
name = models.CharField(help_text=_('This is the help text'))
-Always use lazy translations in :ref:`Django models <topics-db-models>`. It's a
-good idea to add translations for the field names and table names, too. This
-means writing explicit ``verbose_name`` and ``verbose_name_plural`` options in
-the ``Meta`` class, though::
+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
+``verbose_name`` and ``verbose_name_plural`` options in the ``Meta`` class,
+though::
from django.utils.translation import ugettext_lazy as _