From: pascale.noyret Date: Mon, 15 May 2017 15:35:42 +0000 (+0200) Subject: print intempestif X-Git-Tag: Salome_8_3_Hydro_2_0rc1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a321ec4d08f734531116897838293a9df5129c9;p=modules%2Feficas.git print intempestif --- 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)