fix typo in language function
This commit is contained in:
parent
5f948965d0
commit
d110b729d9
@ -179,12 +179,12 @@ Change the language
|
|||||||
"""
|
"""
|
||||||
def language(user, language):
|
def language(user, language):
|
||||||
settings = read_settings(user)
|
settings = read_settings(user)
|
||||||
# Get language from PR_LANGUAGE
|
# Get language from PR_LANGUAGE
|
||||||
if language == 'userdefined':
|
if language == 'userdefined':
|
||||||
try:
|
try:
|
||||||
language = user.prop(PR_LANGUAGE).value
|
language = user.prop(PR_LANGUAGE).value
|
||||||
except:
|
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'
|
language = 'en_GB'
|
||||||
|
|
||||||
if not settings['settings']['zarafa']['v1'].get('main'):
|
if not settings['settings']['zarafa']['v1'].get('main'):
|
||||||
|
Loading…
Reference in New Issue
Block a user