diff --git a/django/contrib/admin/views/doc.py b/django/contrib/admin/views/doc.py index e4d0f1c648..4eadb74fc4 100644 --- a/django/contrib/admin/views/doc.py +++ b/django/contrib/admin/views/doc.py @@ -259,31 +259,31 @@ def get_return_data_type(func_name): # against the values of Field.__dict__ before being output. # If a column type is set to None, it won't be included in the output. DATA_TYPE_MAPPING = { - 'AutoField' : 'Integer', - 'BooleanField' : 'Boolean (Either True or False)', - 'CharField' : 'String (up to %(maxlength)s)', - 'CommaSeparatedIntegerField': 'Comma-separated integers', - 'DateField' : 'Date (without time)', - 'DateTimeField' : 'Date (with time)', - 'EmailField' : 'E-mail address', - 'FileField' : 'File path', - 'FloatField' : 'Decimal number', - 'ForeignKey' : 'Integer', - 'ImageField' : 'File path', - 'IntegerField' : 'Integer', - 'IPAddressField' : 'IP address', + 'AutoField' : _('Integer'), + 'BooleanField' : _('Boolean (Either True or False)'), + 'CharField' : _('String (up to %(maxlength)s)'), + 'CommaSeparatedIntegerField': _('Comma-separated integers'), + 'DateField' : _('Date (without time)'), + 'DateTimeField' : _('Date (with time)'), + 'EmailField' : _('E-mail address'), + 'FileField' : _('File path'), + 'FloatField' : _('Decimal number'), + 'ForeignKey' : _('Integer'), + 'ImageField' : _('File path'), + 'IntegerField' : _('Integer'), + 'IPAddressField' : _('IP address'), 'ManyToManyField' : '', - 'NullBooleanField' : 'Boolean (Either True, False or None)', - 'PhoneNumberField' : 'Phone number', - 'PositiveIntegerField' : 'Integer', - 'PositiveSmallIntegerField' : 'Integer', - 'SlugField' : 'String (up to 50)', - 'SmallIntegerField' : 'Integer', - 'TextField' : 'Text', - 'TimeField' : 'Time', - 'URLField' : 'URL', - 'USStateField' : 'U.S. state (two uppercase letters)', - 'XMLField' : 'XML text', + 'NullBooleanField' : _('Boolean (Either True, False or None)'), + 'PhoneNumberField' : _('Phone number'), + 'PositiveIntegerField' : _('Integer'), + 'PositiveSmallIntegerField' : _('Integer'), + 'SlugField' : _('String (up to 50)'), + 'SmallIntegerField' : _('Integer'), + 'TextField' : _('Text'), + 'TimeField' : _('Time'), + 'URLField' : _('URL'), + 'USStateField' : _('U.S. state (two uppercase letters)'), + 'XMLField' : _('XML text'), } def get_readable_field_data_type(field):