From 9d8c084fe5ddbcca78f6a60959b0f251307a7026 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sat, 29 Dec 2012 12:22:46 +0100 Subject: [PATCH] Message lookup fallback will work if locale was not found as well --- syncplay/messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/messages.py b/syncplay/messages.py index a674c5a..75e5efe 100644 --- a/syncplay/messages.py +++ b/syncplay/messages.py @@ -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() \ No newline at end of file