self.loghandlers=utils.STDERR_HANDLER# TODO remove on v8
self.colorful=config.pop('__colorful__', False)
@@ -1069,9 +1070,11 @@ def _get_themes(self):
def_get_messages(self):
try:
returnutils.load_messages(self.THEMES,
self.translations,
self.default_lang)
ifself._MESSAGESisNone:
self._MESSAGES=utils.load_messages(self.THEMES,
self.translations,
self.default_lang)
returnself._MESSAGES
exceptutils.LanguageNotFoundErrorase:
utils.LOGGER.error('''Cannot load language "{0}". Please make sure it is supported by Nikola itself, or that you have the appropriate messages files in your themes.'''.format(e.lang))