mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Resolve issue 10474
This commit is contained in:
parent
092c29e025
commit
39916e6ed3
@ -163,6 +163,12 @@ class Config:
|
||||
raise ConfigError(__("config directory doesn't contain a conf.py file (%s)") %
|
||||
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.
|
||||
if namespace["language"] is None:
|
||||
namespace["language"] = "en"
|
||||
|
||||
return cls(namespace, overrides or {})
|
||||
|
||||
def convert_overrides(self, name: str, value: Any) -> Any:
|
||||
|
Loading…
Reference in New Issue
Block a user