Commit b928e3e4 authored by Jean-Paul Smets's avatar Jean-Paul Smets Committed by Xiaowu Zhang

Fix typo in Localize spelling

and add a comment to explain deprecation.
parent cbf83e71
......@@ -94,8 +94,8 @@ class TranslatedGetter(Getter):
wf = portal.portal_workflow.getWorkflowById(self._key)
state_id = wf._getWorkflowStateOf(instance, id_only=1)
warn('Translated workflow state getters, such as %s are deprecated' %
self._id, DeprecationWarning)
return portal.localizer.erp5_ui.gettext(state_id).encode('utf8')
self._id, DeprecationWarning) # And why so XXXX ?
return portal.Localizer.erp5_ui.gettext(state_id).encode('utf8')
psyco.bind(__call__)
......
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