From 4a321ec4d08f734531116897838293a9df5129c9 Mon Sep 17 00:00:00 2001 From: "pascale.noyret" Date: Mon, 15 May 2017 17:35:42 +0200 Subject: [PATCH] print intempestif --- Extensions/localisation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/localisation.py b/Extensions/localisation.py index e934fd8c..ff906ca2 100644 --- a/Extensions/localisation.py +++ b/Extensions/localisation.py @@ -52,9 +52,9 @@ def localise(application, locale=None,file=None,translatorFichier=None, debug=Fa global code_translator if translatorFichier != None : - if (code_translator.load(translatorFichier)): + if (code_translator.load(translatorFichier)) and debug: print (translatorFichier, ' loaded') - elif (code_translator.load(translatorFichier+'_'+locale)): + elif (code_translator.load(translatorFichier+'_'+locale) and debug): print(translatorFichier+'_'+locale+ ' loaded') elif debug : print ("Unable to load Code translator! No file or No translation" + translatorFichier) -- 2.39.2