Remove superfluous empty string check

Since we began monkey-patching `django.utils.translation` [1], we no
longer need to check for empty strings before translating them.
Previously, the empty string would be translated into translation
metadata. Now, translating the empty string intuitively yields the empty
string.

[1] 86633df3db
This commit is contained in:
stv
2015-02-10 09:47:48 -08:00
parent 55edd327ac
commit 405f03a6e9

View File

@@ -137,7 +137,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']) if item['long_description'] != '' else u''
item['action_text'] = ugettext(item['action_text']) if item['action_text'] != "" else u""
item['long_description'] = ugettext(item['long_description'])
item['action_text'] = ugettext(item['action_text'])
return checklist