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
This commit is contained in:
parent
6d6d90ce33
commit
6303141fbb
|
@ -259,31 +259,31 @@ def get_return_data_type(func_name):
|
||||||
# against the values of Field.__dict__ before being output.
|
# 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.
|
# If a column type is set to None, it won't be included in the output.
|
||||||
DATA_TYPE_MAPPING = {
|
DATA_TYPE_MAPPING = {
|
||||||
'AutoField' : 'Integer',
|
'AutoField' : _('Integer'),
|
||||||
'BooleanField' : 'Boolean (Either True or False)',
|
'BooleanField' : _('Boolean (Either True or False)'),
|
||||||
'CharField' : 'String (up to %(maxlength)s)',
|
'CharField' : _('String (up to %(maxlength)s)'),
|
||||||
'CommaSeparatedIntegerField': 'Comma-separated integers',
|
'CommaSeparatedIntegerField': _('Comma-separated integers'),
|
||||||
'DateField' : 'Date (without time)',
|
'DateField' : _('Date (without time)'),
|
||||||
'DateTimeField' : 'Date (with time)',
|
'DateTimeField' : _('Date (with time)'),
|
||||||
'EmailField' : 'E-mail address',
|
'EmailField' : _('E-mail address'),
|
||||||
'FileField' : 'File path',
|
'FileField' : _('File path'),
|
||||||
'FloatField' : 'Decimal number',
|
'FloatField' : _('Decimal number'),
|
||||||
'ForeignKey' : 'Integer',
|
'ForeignKey' : _('Integer'),
|
||||||
'ImageField' : 'File path',
|
'ImageField' : _('File path'),
|
||||||
'IntegerField' : 'Integer',
|
'IntegerField' : _('Integer'),
|
||||||
'IPAddressField' : 'IP address',
|
'IPAddressField' : _('IP address'),
|
||||||
'ManyToManyField' : '',
|
'ManyToManyField' : '',
|
||||||
'NullBooleanField' : 'Boolean (Either True, False or None)',
|
'NullBooleanField' : _('Boolean (Either True, False or None)'),
|
||||||
'PhoneNumberField' : 'Phone number',
|
'PhoneNumberField' : _('Phone number'),
|
||||||
'PositiveIntegerField' : 'Integer',
|
'PositiveIntegerField' : _('Integer'),
|
||||||
'PositiveSmallIntegerField' : 'Integer',
|
'PositiveSmallIntegerField' : _('Integer'),
|
||||||
'SlugField' : 'String (up to 50)',
|
'SlugField' : _('String (up to 50)'),
|
||||||
'SmallIntegerField' : 'Integer',
|
'SmallIntegerField' : _('Integer'),
|
||||||
'TextField' : 'Text',
|
'TextField' : _('Text'),
|
||||||
'TimeField' : 'Time',
|
'TimeField' : _('Time'),
|
||||||
'URLField' : 'URL',
|
'URLField' : _('URL'),
|
||||||
'USStateField' : 'U.S. state (two uppercase letters)',
|
'USStateField' : _('U.S. state (two uppercase letters)'),
|
||||||
'XMLField' : 'XML text',
|
'XMLField' : _('XML text'),
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_readable_field_data_type(field):
|
def get_readable_field_data_type(field):
|
||||||
|
|
Loading…
Reference in New Issue