- Timestamp:
- 23 Feb 2012, 15:41:42 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py
r7689 r7690 19 19 """ 20 20 import grok 21 from zope.component import getUtility22 from zope.i18n import translate23 21 from hurry.workflow.workflow import Transition, WorkflowState, NullCondition 24 22 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent … … 165 163 """ 166 164 msg = event.transition.user_data['msg'] 167 portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE168 if portal_language != 'en':169 msg = translate(msg,'waeup.sirp',target_language=portal_language)170 165 history = IObjectHistory(obj) 171 166 history.addMessage(msg) -
main/waeup.sirp/trunk/src/waeup/sirp/objecthistory.py
r7681 r7690 72 72 if portal_language != 'en': 73 73 by = translate(_('by'),'waeup.sirp',target_language=portal_language) 74 msg = translate(msg,'waeup.sirp',target_language=portal_language) 74 75 msg = u'%s - %s %s %s' % (timestamp, msg, by, user) 75 76 msgs.append(msg) -
main/waeup.sirp/trunk/src/waeup/sirp/students/workflow.py
r7681 r7690 3 3 import grok 4 4 from zope.component import getUtility 5 from zope.i18n import translate6 5 from hurry.workflow.workflow import Transition, WorkflowState, NullCondition 7 6 from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent … … 186 185 187 186 msg = event.transition.user_data['msg'] 188 portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE189 if portal_language != 'en':190 msg = translate(msg,'waeup.sirp',target_language=portal_language)191 187 history = IObjectHistory(obj) 192 188 history.addMessage(msg)
Note: See TracChangeset for help on using the changeset viewer.