mirror of https://github.com/Syncplay/syncplay
Message lookup fallback will work if locale was not found as well
This commit is contained in:
parent
e2f08b6df7
commit
9d8c084fe5
|
@ -10,7 +10,7 @@ def getMessage(locale, type_):
|
|||
if(messages.has_key(locale)):
|
||||
if(messages[locale].has_key(type_)):
|
||||
return messages[locale][type_]
|
||||
elif(messages["en"].has_key(type_)):
|
||||
return messages["en"][type_]
|
||||
if(messages["en"].has_key(type_)):
|
||||
return messages["en"][type_]
|
||||
else:
|
||||
raise KeyError()
|
Loading…
Reference in New Issue