mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update comment
This commit is contained in:
committed by
Adam Turner
parent
68252c646a
commit
fb6db30c10
@@ -165,8 +165,10 @@ class Config:
|
||||
confdir)
|
||||
namespace = eval_config_file(filename, tags)
|
||||
|
||||
# Resolve https://github.com/sphinx-doc/sphinx/issues/10474 where conf.py
|
||||
# explicitly sets language to None, by coercing it to English.
|
||||
# Note: Old sphinx projects has been configured as "langugae = None" because
|
||||
# sphinx-quickstart had generated the configuration by default formerly.
|
||||
# To keep compatibility, they should be fallback to 'en' for a while
|
||||
# (At least 2 years or more since v5.0 release).
|
||||
if namespace.get("language", ...) is None:
|
||||
logging.warning(__("Invalid configuration found: 'language = None'. "
|
||||
"Now it takes only a string. Please update your configuration. "
|
||||
|
||||
Reference in New Issue
Block a user