X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/b14b0bd922e6ebf247d8ead6e8a27bc9730b02a6..9248642bfe5d2fb7ce5116b8aa916e4cb4bdd845:/utils.py?ds=inline diff --git a/utils.py b/utils.py index 26ed830..56ceb30 100755 --- a/utils.py +++ b/utils.py @@ -12,7 +12,7 @@ """ from AccessControl import ModuleSecurityInfo -#from Products.PageTemplates.GlobalTranslationService import getGlobalTranslationService +from zope.i18n import translate as i18ntranslate from zope.i18nmessageid import MessageFactory security = ModuleSecurityInfo('Products.Portfolio.utils') @@ -31,5 +31,4 @@ def translate(message, context): message = message[0] except (TypeError, IndexError): pass - return message - return GTS.translate('portfolio', message, context=context) + return i18ntranslate(message, domain='photoprint', context=context.REQUEST)