fix typo in language function

This commit is contained in:
rvangenderen 2019-03-08 12:12:58 +01:00
parent 5f948965d0
commit d110b729d9

View File

@ -180,11 +180,11 @@ Change the language
def language(user, language):
settings = read_settings(user)
# Get language from PR_LANGUAGE
if language == 'userdefined':
if language == 'userdefined':
try:
language = user.prop(PR_LANGUAGE).value
except:
print('User language is not defined using en_GB as fallback'
print('User language is not defined using en_GB as fallback')
language = 'en_GB'
if not settings['settings']['zarafa']['v1'].get('main'):