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/applicants/workflow.py

    r7689 r7690  
    1919"""
    2020import grok
    21 from zope.component import getUtility
    22 from zope.i18n import translate
    2321from hurry.workflow.workflow import Transition, WorkflowState, NullCondition
    2422from hurry.workflow.interfaces import IWorkflowState, IWorkflowTransitionEvent
     
    165163    """
    166164    msg = event.transition.user_data['msg']
    167     portal_language = getUtility(ISIRPUtils).PORTAL_LANGUAGE
    168     if portal_language != 'en':
    169         msg = translate(msg,'waeup.sirp',target_language=portal_language)
    170165    history = IObjectHistory(obj)
    171166    history.addMessage(msg)
Note: See TracChangeset for help on using the changeset viewer.