File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
import uuid
3
3
4
4
from django import forms
5
- from django .utils .translation import ugettext as _ , get_language
5
+ from django .utils .translation import ugettext as _ , get_language , gettext_lazy
6
6
from django .core .exceptions import ObjectDoesNotExist
7
7
8
8
from complex_fields .models import ComplexFieldContainer , ComplexFieldListContainer
@@ -561,10 +561,10 @@ def download_types():
561
561
562
562
563
563
class DownloadForm (forms .Form ):
564
- download_type = forms .ChoiceField (label = _ ("Choose a download type" ), choices = download_types )
565
- division_id = forms .ChoiceField (label = _ ("Country" ), choices = division_choices )
566
- sources = forms .BooleanField (label = _ ("Include sources" ), required = False )
567
- confidences = forms .BooleanField (label = _ ("Include confidence scores" ), required = False )
564
+ download_type = forms .ChoiceField (label = gettext_lazy ("Choose a download type" ), choices = download_types )
565
+ division_id = forms .ChoiceField (label = gettext_lazy ("Country" ), choices = division_choices )
566
+ sources = forms .BooleanField (label = gettext_lazy ("Include sources" ), required = False )
567
+ confidences = forms .BooleanField (label = gettext_lazy ("Include confidence scores" ), required = False )
568
568
569
569
570
570
class ChangeLogForm (forms .Form ):
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ <h2>{% trans "Download information about units" %}</h2>
98
98
</ div >
99
99
< div class ="row ">
100
100
< div class ="col-sm-12 ">
101
- < button type ="submit " class ="btn btn-success "> Download</ button >
101
+ < button type ="submit " class ="btn btn-success "> {% trans " Download" %} </ button >
102
102
</ div >
103
103
</ div >
104
104
</ form >
You can’t perform that action at this time.
0 commit comments