Index: cms/sources.py |
=================================================================== |
--- a/cms/sources.py |
+++ b/cms/sources.py |
@@ -147,17 +147,17 @@ class Source: |
page = config.get("locale_overrides", page) |
return self.has_file(self.locale_filename(locale, page)) |
def read_locale(self, locale, page): |
default_locale = self.read_config().get("general", "defaultlocale") |
if locale == default_locale: |
result = {} |
else: |
- result = self.read_locale(default_locale, page) |
+ result = dict(self.read_locale(default_locale, page)) |
if self.has_locale(locale, page): |
filedata = self.read_file(self.locale_filename(locale, page)) |
localedata = json.loads(filedata) |
for key, value in localedata.iteritems(): |
result[key] = value["message"] |
return result |