From d794e0cbf9f3b59cb51b1393c73f3a3b592bb0d4 Mon Sep 17 00:00:00 2001 From: Jose Antonio Gonzalez Date: Tue, 13 Feb 2018 11:56:54 +0200 Subject: [PATCH] add context to 'enroll' word --- conf/locale/en/LC_MESSAGES/django.po | 7 ++++++- lms/templates/ccx/enrollment.html | 3 ++- lms/templates/courseware/course_about.html | 5 +++-- lms/templates/enroll_staff.html | 3 ++- .../instructor/instructor_dashboard_2/membership.html | 3 ++- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/conf/locale/en/LC_MESSAGES/django.po b/conf/locale/en/LC_MESSAGES/django.po index a499ae386b..3abbb73aca 100644 --- a/conf/locale/en/LC_MESSAGES/django.po +++ b/conf/locale/en/LC_MESSAGES/django.po @@ -11663,9 +11663,14 @@ msgstr "" msgid "You should Register before trying to access the Unit" msgstr "" -#: lms/templates/enroll_staff.html lms/templates/ccx/enrollment.html #: lms/templates/courseware/course_about.html +msgctxt "self" +msgid "Enroll" +msgstr "" + +#: lms/templates/enroll_staff.html lms/templates/ccx/enrollment.html #: lms/templates/instructor/instructor_dashboard_2/membership.html +msgctxt "someone" msgid "Enroll" msgstr "" diff --git a/lms/templates/ccx/enrollment.html b/lms/templates/ccx/enrollment.html index 07f5cb4d08..2e6972d9f2 100644 --- a/lms/templates/ccx/enrollment.html +++ b/lms/templates/ccx/enrollment.html @@ -1,6 +1,7 @@ <%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ +from django.utils.translation import pgettext from openedx.core.djangolib.markup import HTML, Text %> @@ -53,7 +54,7 @@ from openedx.core.djangolib.markup import HTML, Text
- +
diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index 68aedfe835..278cb5ed0d 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -1,6 +1,7 @@ <%namespace name='static' file='../static_content.html'/> <%! from django.utils.translation import ugettext as _ +from django.utils.translation import pgettext from django.core.urlresolvers import reverse from courseware.courses import get_course_about_section from django.conf import settings @@ -336,12 +337,12 @@ from six import string_types
- ${_("Enroll")} + ${pgettext("self","Enroll")}
- +
diff --git a/lms/templates/enroll_staff.html b/lms/templates/enroll_staff.html index c088de9846..3a5a093d5e 100644 --- a/lms/templates/enroll_staff.html +++ b/lms/templates/enroll_staff.html @@ -3,6 +3,7 @@ <%namespace name='static' file='static_content.html'/> <%! from django.utils.translation import ugettext as _ + from django.utils.translation import pgettext from courseware.courses import get_course_about_section %> @@ -30,7 +31,7 @@
- +