Use default language if can't find translations for pages

merge-requests/64/head
Huluti 2016-12-09 19:40:02 +01:00
parent 41d8020ba7
commit e50ab02714
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class ManjaroHello():
def read_page(self, name): def read_page(self, name):
filename = "pages/{}/{}".format(self.preferences["locale"], name) filename = "pages/{}/{}".format(self.preferences["locale"], name)
if not os.path.isfile(filename): if not os.path.isfile(filename):
filename = "pages/{}/{}".format("en_US", name) filename = "pages/{}/{}".format(self.default_locale, name)
try: try:
with open(filename, "r") as f: with open(filename, "r") as f:
return f.read() return f.read()