Supress warning on not loading local translations (1st party plugins don't have them)

svn: r13491
This commit is contained in:
Doug Blank 2009-11-03 13:47:01 +00:00
parent 8143ef6c18
commit 1f5256e8fd

View File

@ -88,9 +88,11 @@ def get_addon_translator(filename, domain='addon'):
languages=[LANG])
trans.trans.add_fallback(fallback)
except:
if LANG and not LANG.startswith("en"):
print ("WARN: can't add local '%s' addon translation for '%s'." %
(filename, LANG))
pass
# FIXME: perhaps give some feedback when you need it
#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():