Don't complain if LANG is en and there is no explicit translation for addons

svn: r13478
This commit is contained in:
Doug Blank 2009-11-01 15:44:04 +00:00
parent ba897a8e0f
commit 05de29cbf8

View File

@ -88,8 +88,9 @@ def get_addon_translator(filename, domain='addon'):
languages=[LANG])
trans.trans.add_fallback(fallback)
except:
print ("WARN: can't add local '%s' addon translation for '%s'." %
(filename, LANG))
if LANG and not LANG.startswith("en"):
print ("WARN: can't add local '%s' addon translation for '%s'." %
(filename, LANG))
return trans
def get_available_translations():