core (i18n): use logging system instead of print
This commit is contained in:
parent
9905e14d0c
commit
ee26391a11
1 changed files with 4 additions and 1 deletions
|
|
@ -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 @@ try:
|
|||
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue