[cwconfig] absolute import (closes #2091068) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Mon, 05 Dec 2011 13:42:23 +0100
branchstable
changeset 8106 241123f7bcd0
parent 8098 e80edd022901
child 8107 e5858a4a1244
[cwconfig] absolute import (closes #2091068)
cwconfig.py
--- a/cwconfig.py	Thu Nov 24 16:57:31 2011 +0100
+++ b/cwconfig.py	Mon Dec 05 13:42:23 2011 +0100
@@ -1165,7 +1165,7 @@
 
     def _gettext_init(self):
         """set language for gettext"""
-        from gettext import translation
+        from cubicweb.gettext import translation
         path = join(self.apphome, 'i18n')
         for language in self.available_languages():
             self.info("loading language %s", language)