from AccessControl import ModuleSecurityInfo
# TODO: trouver une solution…
-#from Products.PageTemplates.GlobalTranslationService import getGlobalTranslationService
+from zope.i18n import translate as i18ntranslate
from zope.i18nmessageid import MessageFactory
security = ModuleSecurityInfo('Products.photoprint.utils')
message = message[0]
except (TypeError, IndexError):
pass
- return message
- return GTS.translate('photoprint', message, context=context)
+ return i18ntranslate(message, domain='photoprint', context=context.REQUEST)
security.declarePublic('Message')
Message = _ = MessageFactory('photoprint')