Don't complain if LANG is en and there is no explicit translation for addons
svn: r13478
This commit is contained in:
parent
ba897a8e0f
commit
05de29cbf8
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user