From: pascale.noyret Date: Tue, 9 May 2017 09:13:27 +0000 (+0200) Subject: pour corriger Mt X-Git-Tag: V8_3_0~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b61c98dfe939ad0845284d456227b8322e9cced;p=tools%2Feficas.git pour corriger Mt --- diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index ec5afe0a..3dd0dd38 100755 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -76,6 +76,8 @@ class Appli(Ui_Eficas,QMainWindow): self.listeCode=['Adao','ADAO','Carmel3D','Telemac','CF','MAP','ZCracks', 'SEP','SPECA','PSEN_Eficas','PSEN_N1'] self.repIcon=os.path.join( os.path.dirname(os.path.abspath(__file__)),'..','Editeur','icons') + if langue=='fr': self.langue=langue + else : self.langue="ang" if self.salome: import Accas @@ -94,8 +96,6 @@ class Appli(Ui_Eficas,QMainWindow): if not self.salome and hasattr (self, 'CONFIGURATION') and hasattr(self.CONFIGURATION,'lang') : langue=self.CONFIGURATION.lang - if langue=='fr': self.langue=langue - else : self.langue="ang" self.suiteTelemac=False if hasattr (self, 'CONFIGURATION') : @@ -108,7 +108,7 @@ class Appli(Ui_Eficas,QMainWindow): from Extensions import localisation app=QApplication - localisation.localise(None,self.langue,translatorFichier=self.CONFIGURATION.translatorFichier) + if hasattr (self, 'CONFIGURATION') : localisation.localise(None,self.langue,translatorFichier=self.CONFIGURATION.translatorFichier) @@ -190,6 +190,9 @@ class Appli(Ui_Eficas,QMainWindow): self.CONFIGStyle = None if hasattr(configuration,'make_config_style'): self.CONFIGStyle = configuration.make_config_style(self,prefsCode.repIni) + from Extensions import localisation + app=QApplication + if hasattr (self, 'CONFIGURATION') : localisation.localise(None,self.langue,translatorFichier=self.CONFIGURATION.translatorFichier) #PN --> pb d exception qui font planter salome # plus supporte en python 3 #if hasattr(prefsCode,'encoding'):