mirror of
https://github.com/naruxde/revpipycontrol.git
synced 2026-09-30 23:34:29 +02:00
Bugfix: Automatische Sprachwahl
This commit is contained in:
1 parent
6103104d96
commit
9e9751883d
1 file changed
+3
-1
@@ -34,8 +34,10 @@ def gettrans(proglang=None):
|
||||
if proglang is None:
|
||||
# Autodetect Language or switch to static
|
||||
proglang = locale.getdefaultlocale()[0]
|
||||
if not proglang is None and proglang.find("_") >= 0:
|
||||
if proglang is not None and proglang.find("_") >= 0:
|
||||
proglang = proglang.split('_')[0]
|
||||
else:
|
||||
proglang = "en"
|
||||
|
||||
# Übersetzungen laden
|
||||
trans = gettext.translation(
|
||||
|
||||
Reference in new issue
Block a user