-def localise(application, locale=None,file=None,translatorFichier=None ):
+def localise(application, locale=None,file=None,translatorFichier=None, debug=False ):
print ('chargement de ', file,monPath)
print (eficas_translator.load(file,monPath))
print (QApplication.installTranslator(eficas_translator))
elif eficas_translator.load("eficas_" + locale, monPath):
QApplication.installTranslator(eficas_translator)
print ('chargement de ', file,monPath)
print (eficas_translator.load(file,monPath))
print (QApplication.installTranslator(eficas_translator))
elif eficas_translator.load("eficas_" + locale, monPath):
QApplication.installTranslator(eficas_translator)
- else :
- print ("Unable to load Code translator!" + translatorFichier)
- print (QApplication.installTranslator(code_translator))
+ elif debug :
+ print ("Unable to load Code translator! No file or No translation" + translatorFichier)
+ if debug : print (QApplication.installTranslator(code_translator))