Default to english

merge-requests/21/head
Bob Mottram 2021-02-27 12:40:14 +00:00
parent b2bece502e
commit bccb79a038
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ def _copyThemeHelpFiles(baseDir: str, themeName: str,
systemLanguage: str) -> None:
"""Copies any theme specific help files from the welcome subdirectory
"""
if not systemLanguage:
systemLanguage = 'en'
themeDir = baseDir + '/theme/' + themeName + '/welcome'
if not os.path.isdir(themeDir):
themeDir = baseDir + '/defaultwelcome'