Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing #2347.
  • Loading branch information
felixfontein committed May 22, 2016
1 parent f9319f9 commit a36955d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nikola/utils.py
Expand Up @@ -649,6 +649,8 @@ def load_messages(themes, translations, default_lang):
sys.path.insert(0, default_folder)
sys.path.insert(0, msg_folder)
english = __import__('messages_en')
# If we don't do the reload, the module is cached
_reload(english)
for lang in list(translations.keys()):
try:
translation = __import__('messages_' + lang)
Expand All @@ -667,6 +669,7 @@ def load_messages(themes, translations, default_lang):
del(translation)
except ImportError as orig:
raise LanguageNotFoundError(lang, orig)
del(english)
sys.path = oldpath
return messages

Expand Down

0 comments on commit a36955d

Please sign in to comment.