mirror of https://gitlab.com/bashrc2/epicyon
Default to English
parent
b8ac29a515
commit
064269e4a7
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue