V0.6 #852

Merged
Atheros1 merged 399 commits from v0.6 into master 2016-05-03 01:58:38 +02:00
Showing only changes of commit af098e4805 - Show all commits

View File

@ -44,6 +44,7 @@ from about import *
from help import *
from iconglossary import *
from connect import *
import locale as pythonlocale
import sys
from time import strftime, localtime, gmtime
import time
@ -99,6 +100,17 @@ def change_translation(locale):
qsystranslator.load(translationpath)
QtGui.QApplication.installTranslator(qsystranslator)
lang = l10n.getTranslationLanguage()
if "_" not in lang:
lang += "_" + lang.upper()
if ".utf8" not in lang.lower():
lang += ".utf8"
try:
pythonlocale.setlocale(pythonlocale.LC_ALL, lang)
except:
logger.error("Failed to set locale to %s", lang)
pass
class MyForm(settingsmixin.SMainWindow):
# sound type constants