Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Applied translation strings from new-admin to contrib.admin.views.doc

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 6303141fbb1567becd4ba3e35bf347f65e22174b 1 parent 6d6d90c
@adrianholovaty adrianholovaty authored
Showing with 24 additions and 24 deletions.
  1. +24 −24 django/contrib/admin/views/doc.py
View
48 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):
Please sign in to comment.
Something went wrong with that request. Please try again.