]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
aide V6_6_0rc1
authorPascale Noyret <pascale.noyret@edf.fr>
Tue, 4 Dec 2012 15:34:02 +0000 (15:34 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Tue, 4 Dec 2012 15:34:02 +0000 (15:34 +0000)
InterfaceQT4/editor.py

index cade5bd1ab1c85cfb448491405b0dc5ad2671c01..7bf04f85655bfd9ad24b6ff73a115e2c3f61cdfc 100644 (file)
@@ -940,14 +940,14 @@ class JDCEditor(QSplitter):
     def verifieVersionCataDuJDC(self,text):
     #-------------------------------------#
         memeVersion=False
-        indexDeb=text.find("#VERSION_CATA:")
-        indexFin=text.find(":FIN VERSION_CATA")
+        indexDeb=text.find("#LABEL_TRADUCTION:")
+        indexFin=text.find(":FIN LABEL_TRADUCTION")
         if indexDeb < 0 : 
            self.versionCataDuJDC="sans"
            textJDC=text
         else :
-           self.versionCataDuJDC=text[indexDeb+13:indexFin]
-           textJDC=text[0:indexDeb]+text[indexFin+17:-1]
+           self.versionCataDuJDC=text[indexDeb+17:indexFin]
+           textJDC=text[0:indexDeb]+text[indexFin+21:-1]
      
         self.versionCata="sans"
         if hasattr(self.readercata.cata[0],'version_cata'): self.versionCata=self.readercata.cata[0].version_cata