From 05de29cbf87a97067188e547884fe5ad67175bc8 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 1 Nov 2009 15:44:04 +0000 Subject: [PATCH] Don't complain if LANG is en and there is no explicit translation for addons svn: r13478 --- src/TransUtils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TransUtils.py b/src/TransUtils.py index ddb1ea79d..04640a619 100644 --- a/src/TransUtils.py +++ b/src/TransUtils.py @@ -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():