X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/blobdiff_plain/0832bfd7b87cdffeac15db9551cec3c3d53865a6..9d15a219a1b6910463064c64f9c211c606b4b5eb:/utils.py?ds=inline diff --git a/utils.py b/utils.py index 56ceb30..fe5f6d1 100755 --- a/utils.py +++ b/utils.py @@ -24,11 +24,9 @@ security.declarePublic('translate') def translate(message, context): """ Translate i18n message. """ - # TODO: touver une solution. - # GTS = getGlobalTranslationService() if isinstance(message, Exception): try: message = message[0] except (TypeError, IndexError): pass - return i18ntranslate(message, domain='photoprint', context=context.REQUEST) + return i18ntranslate(message, domain='portfolio', context=context.REQUEST)