From 962f242259045986edcfac1e2bd096842e528d26 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Thu, 12 Feb 2015 17:33:58 +0100 Subject: [PATCH] Fix bug with the translation of accented unicode strings --- Extensions/localisation.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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() -- 2.39.2