Use ugettext_noop instead of lambdas assigned to the underscore

Replaces instances of an old hack with the more clear ugettext_noop.
This commit is contained in:
Renzo Lucioni
2015-10-19 17:58:46 -04:00
committed by Sarina Canelake
parent 68182b13d2
commit 2f0e663581
28 changed files with 86 additions and 48 deletions

View File

@@ -13,7 +13,8 @@ from xblock.fragment import Fragment
import textwrap
# Make '_' a no-op so we can scrape strings
# Make '_' a no-op so we can scrape strings. Using lambda instead of
# `django.utils.translation.ugettext_noop` because Django cannot be imported in this file
_ = lambda text: text