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])
|
languages=[LANG])
|
||||||
trans.trans.add_fallback(fallback)
|
trans.trans.add_fallback(fallback)
|
||||||
except:
|
except:
|
||||||
print ("WARN: can't add local '%s' addon translation for '%s'." %
|
if LANG and not LANG.startswith("en"):
|
||||||
(filename, LANG))
|
print ("WARN: can't add local '%s' addon translation for '%s'." %
|
||||||
|
(filename, LANG))
|
||||||
return trans
|
return trans
|
||||||
|
|
||||||
def get_available_translations():
|
def get_available_translations():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user