Default language if none is discovered

merge-requests/3/merge
Bob Mottram 2019-11-12 21:38:02 +00:00
parent 2921f58a9a
commit 5f7b8d383c
1 changed files with 2 additions and 0 deletions

View File

@ -4438,6 +4438,8 @@ def runDaemon(language: str,projectVersion: str, \
systemLanguage=locale.getdefaultlocale()[0]
else:
systemLanguage=language
if not systemLanguage:
systemLanguage='en'
if '_' in systemLanguage:
systemLanguage=systemLanguage.split('_')[0]
while '/' in systemLanguage: