Permalink
Browse files

Fixing #2347.

  • Loading branch information...
felixfontein committed May 22, 2016
1 parent f9319f9 commit a36955d7dc5ff858b2a86f8564bfbdb60d9f5f76
Showing with 3 additions and 0 deletions.
  1. +3 −0 nikola/utils.py
@@ -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)
@@ -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

0 comments on commit a36955d

Please sign in to comment.