Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored November 23, 2005

Showing 1 changed file with 24 additions and 24 deletions. Show diff stats Hide diff stats

  1. 48  django/contrib/admin/views/doc.py
48  django/contrib/admin/views/doc.py
@@ -259,31 +259,31 @@ def get_return_data_type(func_name):
259 259
 # against the values of Field.__dict__ before being output.
260 260
 # If a column type is set to None, it won't be included in the output.
261 261
 DATA_TYPE_MAPPING = {
262  
-    'AutoField'                 : 'Integer',
263  
-    'BooleanField'              : 'Boolean (Either True or False)',
264  
-    'CharField'                 : 'String (up to %(maxlength)s)',
265  
-    'CommaSeparatedIntegerField': 'Comma-separated integers',
266  
-    'DateField'                 : 'Date (without time)',
267  
-    'DateTimeField'             : 'Date (with time)',
268  
-    'EmailField'                : 'E-mail address',
269  
-    'FileField'                 : 'File path',
270  
-    'FloatField'                : 'Decimal number',
271  
-    'ForeignKey'                : 'Integer',
272  
-    'ImageField'                : 'File path',
273  
-    'IntegerField'              : 'Integer',
274  
-    'IPAddressField'            : 'IP address',
  262
+    'AutoField'                 : _('Integer'),
  263
+    'BooleanField'              : _('Boolean (Either True or False)'),
  264
+    'CharField'                 : _('String (up to %(maxlength)s)'),
  265
+    'CommaSeparatedIntegerField': _('Comma-separated integers'),
  266
+    'DateField'                 : _('Date (without time)'),
  267
+    'DateTimeField'             : _('Date (with time)'),
  268
+    'EmailField'                : _('E-mail address'),
  269
+    'FileField'                 : _('File path'),
  270
+    'FloatField'                : _('Decimal number'),
  271
+    'ForeignKey'                : _('Integer'),
  272
+    'ImageField'                : _('File path'),
  273
+    'IntegerField'              : _('Integer'),
  274
+    'IPAddressField'            : _('IP address'),
275 275
     'ManyToManyField'           : '',
276  
-    'NullBooleanField'          : 'Boolean (Either True, False or None)',
277  
-    'PhoneNumberField'          : 'Phone number',
278  
-    'PositiveIntegerField'      : 'Integer',
279  
-    'PositiveSmallIntegerField' : 'Integer',
280  
-    'SlugField'                 : 'String (up to 50)',
281  
-    'SmallIntegerField'         : 'Integer',
282  
-    'TextField'                 : 'Text',
283  
-    'TimeField'                 : 'Time',
284  
-    'URLField'                  : 'URL',
285  
-    'USStateField'              : 'U.S. state (two uppercase letters)',
286  
-    'XMLField'                  : 'XML text',
  276
+    'NullBooleanField'          : _('Boolean (Either True, False or None)'),
  277
+    'PhoneNumberField'          : _('Phone number'),
  278
+    'PositiveIntegerField'      : _('Integer'),
  279
+    'PositiveSmallIntegerField' : _('Integer'),
  280
+    'SlugField'                 : _('String (up to 50)'),
  281
+    'SmallIntegerField'         : _('Integer'),
  282
+    'TextField'                 : _('Text'),
  283
+    'TimeField'                 : _('Time'),
  284
+    'URLField'                  : _('URL'),
  285
+    'USStateField'              : _('U.S. state (two uppercase letters)'),
  286
+    'XMLField'                  : _('XML text'),
287 287
 }
288 288
 
289 289
 def get_readable_field_data_type(field):

0 notes on commit 6303141

Please sign in to comment.
Something went wrong with that request. Please try again.