fix typo in language function
This commit is contained in:
parent
5f948965d0
commit
d110b729d9
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user