-def translate(message, context):
- """ Translate i18n message.
- """
- GTS = getGlobalTranslationService()
- if isinstance(message, Exception):
- try:
- message = message[0]
- except (TypeError, IndexError):
- pass
- return GTS.translate('photoprint', message, context=context)
+def translate(msgid, mapping=None, default=None) :
+ """ traduction dans le domaine photoprint """
+ return i18ntranslate(msgid, domain='photoprint', mapping=mapping, context=getRequest(), default=default)