]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Fix bug with the translation of accented unicode strings
authorRenaud Barate <renaud.barate@edf.fr>
Thu, 12 Feb 2015 16:33:58 +0000 (17:33 +0100)
committerRenaud Barate <renaud.barate@edf.fr>
Thu, 12 Feb 2015 16:33:58 +0000 (17:33 +0100)
Extensions/localisation.py

index e62f513b4758efaedc99abcc5affc569062a8f42..f9d0e6d416a0258e86f861289e2301e492d6ab00 100644 (file)
@@ -40,10 +40,7 @@ def localise(application, locale=None ):
     If no locale is specified by the user, the system locale
     is used instead, for both Qt base and Eficas translators.
     """
-    from PyQt4.QtCore import QLibraryInfo, QTextCodec
-    
-    QTextCodec.setCodecForTr(QTextCodec.codecForName("utf-8"))
-    
+    from PyQt4.QtCore import QLibraryInfo
     from PyQt4.QtCore import QLocale
     from PyQt4.QtGui import QApplication
     sys_locale = QLocale.system().name()