Supress warning on not loading local translations (1st party plugins don't have them)
svn: r13491
This commit is contained in:
parent
8143ef6c18
commit
1f5256e8fd
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user