Don't try to load english translation files
This commit is contained in:
parent
238667d989
commit
8594fa8199
1 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,11 @@ class Translate(dict):
|
|||
return "<translate %s>" % self.lang
|
||||
|
||||
def load(self):
|
||||
if os.path.isfile(self.lang_file):
|
||||
if self.lang == "en":
|
||||
data = {}
|
||||
dict.__init__(self, data)
|
||||
self.clear()
|
||||
elif os.path.isfile(self.lang_file):
|
||||
try:
|
||||
data = json.load(open(self.lang_file))
|
||||
logging.debug("Loaded translate file: %s (%s entries)" % (self.lang_file, len(data)))
|
||||
|
|
Loading…
Reference in a new issue