mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes issue #1242: make it clearer that "translations not available" means only for the built-in messages, and special-case English.
This commit is contained in:
parent
6be087fbe1
commit
a58c1332ff
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user