From e50ab02714aa3285bbcd5ea7b108ce4912a2f9c7 Mon Sep 17 00:00:00 2001 From: Huluti Date: Fri, 9 Dec 2016 19:40:02 +0100 Subject: [PATCH] Use default language if can't find translations for pages --- src/manjaro-hello.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 16e890b..449c303 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -131,7 +131,7 @@ class ManjaroHello(): def read_page(self, name): filename = "pages/{}/{}".format(self.preferences["locale"], name) if not os.path.isfile(filename): - filename = "pages/{}/{}".format("en_US", name) + filename = "pages/{}/{}".format(self.default_locale, name) try: with open(filename, "r") as f: return f.read()