From: Renaud Barate Date: Thu, 12 Feb 2015 16:33:58 +0000 (+0100) Subject: Fix bug with the translation of accented unicode strings X-Git-Tag: demande7818~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=962f242259045986edcfac1e2bd096842e528d26;p=tools%2Feficas.git Fix bug with the translation of accented unicode strings --- diff --git a/Extensions/localisation.py b/Extensions/localisation.py index e62f513b..f9d0e6d4 100644 --- a/Extensions/localisation.py +++ b/Extensions/localisation.py @@ -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()