Commit bad803e4 by Sarina Canelake

Merge pull request #4653 from Stanford-Online/stv/i18n/empty

Translate string iff non-empty
parents 7b1fce9e 3fdfdbcd
......@@ -136,7 +136,7 @@ def localize_checklist_text(checklist):
# Localize checklist items
for item in checklist.get('items'):
item['short_description'] = ugettext(item['short_description'])
item['long_description'] = ugettext(item['long_description'])
item['long_description'] = ugettext(item['long_description']) if item['long_description'] != '' else u''
item['action_text'] = ugettext(item['action_text']) if item['action_text'] != "" else u""
return checklist
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment