# HG changeset patch # User Goffi # Date 1399569107 -7200 # Node ID e22e4cf86204e97fc6f2d5d9f981508ec797a93a # Parent 0ea97f483464d2a34324b2f3891e56020db39726 core (i18n): use logging system instead of print diff -r 0ea97f483464 -r e22e4cf86204 src/core/i18n.py --- 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 . +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