diff src/core/i18n.py @ 1018:e22e4cf86204

core (i18n): use logging system instead of print
author Goffi <goffi@goffi.org>
date Thu, 08 May 2014 19:11:47 +0200
parents 1fe00f0c9a91
children 069ad98b360d
line wrap: on
line diff
--- a/src/core/i18n.py	Thu May 08 19:11:20 2014 +0200
+++ b/src/core/i18n.py	Thu May 08 19:11:47 2014 +0200
@@ -18,6 +18,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+from sat.core.log import getLogger
+log = getLogger(__name__)
+
 try:
 
     import gettext
@@ -32,7 +35,7 @@
 
 except ImportError:
 
-    print "WARNING: gettext support disabled"
+    log.warning("gettext support disabled")
     _ = lambda msg: msg # Libervia doesn't support gettext
     def languageSwitch(lang=None):
         pass