Skip to content

Commit 8594fa8

Browse files
committed
Don't try to load english translation files
1 parent 238667d commit 8594fa8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Translate/Translate.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def __repr__(self):
3434
return "<translate %s>" % self.lang
3535

3636
def load(self):
37-
if os.path.isfile(self.lang_file):
37+
if self.lang == "en":
38+
data = {}
39+
dict.__init__(self, data)
40+
self.clear()
41+
elif os.path.isfile(self.lang_file):
3842
try:
3943
data = json.load(open(self.lang_file))
4044
logging.debug("Loaded translate file: %s (%s entries)" % (self.lang_file, len(data)))

0 commit comments

Comments
 (0)