Test for system language

main
Bob Mottram 2021-08-02 21:03:37 +01:00
parent 3193963714
commit 55fa97387e
1 changed files with 3 additions and 0 deletions

View File

@ -15158,6 +15158,9 @@ def runDaemon(sharedItemsFederatedDomains: [],
if not unitTest:
httpd.translate, httpd.systemLanguage = \
loadTranslationsFromFile(baseDir, language)
if not httpd.systemLanguage:
print('ERROR: no system language loaded')
sys.exit()
print('System language: ' + httpd.systemLanguage)
if not httpd.translate:
print('ERROR: no translations were loaded')