Exit if no translations

main
Bob Mottram 2020-06-12 13:02:04 +01:00
parent 0132674ea3
commit 8631654a70
1 changed files with 3 additions and 0 deletions

View File

@ -7926,6 +7926,9 @@ def runDaemon(blogsInstance: bool, mediaInstance: bool,
print('System language: ' + systemLanguage) print('System language: ' + systemLanguage)
httpd.systemLanguage = systemLanguage httpd.systemLanguage = systemLanguage
httpd.translate = loadJson(translationsFile) httpd.translate = loadJson(translationsFile)
if not httpd.translate:
print('ERROR: no translations loaded from ' + translationsFile)
sys.exit()
if registration == 'open': if registration == 'open':
httpd.registration = True httpd.registration = True