feat: missed a translation in item.py

This commit is contained in:
Raymond Zhou
2022-05-27 10:23:39 -07:00
committed by GitHub
parent cf84c3bc64
commit 0678a444ec

View File

@@ -429,7 +429,7 @@ def xblock_view_handler(request, usage_key_string, view_name):
# so only the "Pages" view requires that this extra wrapper be included.
display_label = xblock.display_name or xblock.scope_ids.block_type
if not xblock.display_name and xblock.scope_ids.block_type == 'html':
display_label = 'Text'
display_label = _("Text")
if is_pages_view:
fragment.content = render_to_string('component.html', {
'xblock_context': context,