summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index fd8b65b6e..103ebb634 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -266,7 +266,7 @@ class Sphinx:
"""Load translated strings from the configured localedirs if enabled in
the configuration.
"""
- if self.config.language is None:
+ if self.config.language == 'en':
self.translator, has_translation = locale.init([], None)
else:
logger.info(bold(__('loading translations [%s]... ') % self.config.language),
@@ -285,8 +285,7 @@ class Sphinx:
locale_dirs += [path.join(package_dir, 'locale')]
self.translator, has_translation = locale.init(locale_dirs, self.config.language)
- if has_translation or self.config.language == 'en':
- # "en" never needs to be translated
+ if has_translation:
logger.info(__('done'))
else:
logger.info(__('not available for built-in messages'))