1
0
mirror of https://github.com/naruxde/revpipycontrol.git synced 2025-11-08 15:43:52 +01:00

Bugfix: Automatische Sprachwahl

This commit is contained in:
2017-07-03 18:22:26 +02:00
parent 45e3414f94
commit 6103104d96

View File

@@ -33,8 +33,9 @@ def gettrans(proglang=None):
# Sprache auswählen
if proglang is None:
# Autodetect Language or switch to static
# proglang = "en"
proglang = locale.getdefaultlocale()[0].split('_')[0]
proglang = locale.getdefaultlocale()[0]
if not proglang is None and proglang.find("_") >= 0:
proglang = proglang.split('_')[0]
# Übersetzungen laden
trans = gettext.translation(