From 8b5b92b01a260bccd085ff4f453d07b10b6629f6 Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Mon, 26 Nov 2018 13:27:12 -0500 Subject: [PATCH] Add translation for content gating access denied message --- openedx/features/content_type_gating/partitions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/features/content_type_gating/partitions.py b/openedx/features/content_type_gating/partitions.py index 7be8236ad5..ded80e3088 100644 --- a/openedx/features/content_type_gating/partitions.py +++ b/openedx/features/content_type_gating/partitions.py @@ -100,7 +100,7 @@ class ContentTypeGatingPartition(UserPartition): def access_denied_message(self, block, user, user_group, allowed_groups): if self._is_audit_enrollment(user, block): - return "Graded assessments are available to Verified Track learners. Upgrade to Unlock." + return _(u"Graded assessments are available to Verified Track learners. Upgrade to Unlock.") return None def _is_audit_enrollment(self, user, block):