Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #3127 -- Added i18n hooks to NullBooleanField. Thanks, automatt…

…hias

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2633035261d38f6d2109e1d06776844f6ab259ea 1 parent 7d1b483
Adrian Holovaty authored January 23, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/oldforms/__init__.py
2  django/oldforms/__init__.py
@@ -569,7 +569,7 @@ class NullBooleanField(SelectField):
569 569
     "This SelectField provides 'Yes', 'No' and 'Unknown', mapping results to True, False or None"
570 570
     def __init__(self, field_name, is_required=False, validator_list=None):
571 571
         if validator_list is None: validator_list = []
572  
-        SelectField.__init__(self, field_name, choices=[('1', 'Unknown'), ('2', 'Yes'), ('3', 'No')],
  572
+        SelectField.__init__(self, field_name, choices=[('1', _('Unknown')), ('2', _('Yes')), ('3', _('No'))],
573 573
             is_required=is_required, validator_list=validator_list)
574 574
 
575 575
     def render(self, data):

0 notes on commit 2633035

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