summaryrefslogtreecommitdiff
path: root/sphinx
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-09-16 07:26:46 +0200
committerGeorg Brandl <georg@python.org>2013-09-16 07:26:46 +0200
commit9498eceaef81e4808c003897e01a0d76e2f5021d (patch)
tree3c1332bf72a25c9ac49891000c7f31d87165e7fa /sphinx
parent295b8c490e70d9a364b83b26b14a7c074220e907 (diff)
downloadsphinx-9498eceaef81e4808c003897e01a0d76e2f5021d.tar.gz
Closes issue #1242: make it clearer that "translations not available" means only for the built-in messages, and special-case English.
Diffstat (limited to 'sphinx')
-rw-r--r--sphinx/application.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index 18a25bd7..31b8eff4 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -152,10 +152,11 @@ class Sphinx(object):
self.translator, has_translation = locale.init(locale_dirs,
self.config.language)
if self.config.language is not None:
- if has_translation:
+ if has_translation or self.config.language == 'en':
+ # "en" never needs to be translated
self.info('done')
else:
- self.info('locale not available')
+ self.info('not available for built-in messages')
def _init_env(self, freshenv):
if freshenv: