From 35cc4f2422089e193205c88d34b6fe8e5b1f01b7 Mon Sep 17 00:00:00 2001 From: "Jean Cochrane (Lead developer, DataMade)" Date: Tue, 28 Apr 2020 10:09:50 -0500 Subject: [PATCH] Ensure downloads page is translated --- sfm_pc/forms.py | 10 +++++----- templates/download.html | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sfm_pc/forms.py b/sfm_pc/forms.py index c07eb0aab..5e855722c 100644 --- a/sfm_pc/forms.py +++ b/sfm_pc/forms.py @@ -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 @@ -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): diff --git a/templates/download.html b/templates/download.html index 10ff6ddd1..d4344cf26 100644 --- a/templates/download.html +++ b/templates/download.html @@ -98,7 +98,7 @@

{% trans "Download information about units" %}

- +