Skip to content

Commit

Permalink
Ensure downloads page is translated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Cochrane (Lead developer, DataMade) committed Apr 28, 2020
1 parent ca973b1 commit 35cc4f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions sfm_pc/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import uuid

from django import forms
from django.utils.translation import ugettext as _, get_language
from django.utils.translation import ugettext as _, get_language, gettext_lazy
from django.core.exceptions import ObjectDoesNotExist

from complex_fields.models import ComplexFieldContainer, ComplexFieldListContainer
Expand Down Expand Up @@ -561,10 +561,10 @@ def download_types():


class DownloadForm(forms.Form):
download_type = forms.ChoiceField(label=_("Choose a download type"), choices=download_types)
division_id = forms.ChoiceField(label=_("Country"), choices=division_choices)
sources = forms.BooleanField(label=_("Include sources"), required=False)
confidences = forms.BooleanField(label=_("Include confidence scores"), required=False)
download_type = forms.ChoiceField(label=gettext_lazy("Choose a download type"), choices=download_types)
division_id = forms.ChoiceField(label=gettext_lazy("Country"), choices=division_choices)
sources = forms.BooleanField(label=gettext_lazy("Include sources"), required=False)
confidences = forms.BooleanField(label=gettext_lazy("Include confidence scores"), required=False)


class ChangeLogForm(forms.Form):
Expand Down
2 changes: 1 addition & 1 deletion templates/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h2>{% trans "Download information about units" %}</h2>
</div>
<div class="row">
<div class="col-sm-12">
<button type="submit" class="btn btn-success">Download</button>
<button type="submit" class="btn btn-success">{% trans "Download" %}</button>
</div>
</div>
</form>
Expand Down

0 comments on commit 35cc4f2

Please sign in to comment.