Default to English

merge-requests/21/head
Bob Mottram 2021-02-24 21:22:32 +00:00
parent b8ac29a515
commit 064269e4a7
1 changed files with 3 additions and 2 deletions

View File

@ -51,8 +51,9 @@ def htmlWelcomeScreen(baseDir: str,
welcomeFilename = baseDir + '/accounts/welcome.md'
if not os.path.isfile(welcomeFilename):
defaultFilename = baseDir + '/defaultwelcome/' + language + '.md'
if os.path.isfile(defaultFilename):
copyfile(defaultFilename, welcomeFilename)
if not os.path.isfile(defaultFilename):
defaultFilename = baseDir + '/defaultwelcome/en.md'
copyfile(defaultFilename, welcomeFilename)
if os.path.isfile(welcomeFilename):
with open(baseDir + '/accounts/welcome.md', 'r') as welcomeFile:
welcomeText = markdownToHtml(welcomeFile.read())