Ignore:
Timestamp:
23 Feb 2012, 15:41:42 (13 years ago)
Author:
Henrik Bettermann
Message:

Do not translate message in event handler bit in addMessage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/workflow.py

    r7681 r7690  
    33import grok
    44from zope.component import getUtility
    5 from zope.i18n import translate
    65from hurry.workflow.workflow import Transition, WorkflowState, NullCondition
    76from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent
     
    186185
    187186    msg = event.transition.user_data['msg']
    188     portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE
    189     if portal_language != 'en':
    190         msg = translate(msg,'waeup.sirp',target_language=portal_language)
    191187    history = IObjectHistory(obj)
    192188    history.addMessage(msg)
Note: See TracChangeset for help on using the changeset viewer.