mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #10492 from AA-Turner/language-typos
Spelling (language)
This commit is contained in:
commit
7a2db6a900
@ -164,13 +164,13 @@ class Config:
|
||||
confdir)
|
||||
namespace = eval_config_file(filename, tags)
|
||||
|
||||
# Note: Old sphinx projects have been configured as "langugae = None" because
|
||||
# Note: Old sphinx projects have been configured as "language = None" because
|
||||
# sphinx-quickstart previously generated this by default.
|
||||
# To keep compatibility, they should be fallback to 'en' for a while
|
||||
# (This conversion should not be removed before 2025-01-01).
|
||||
if namespace.get("language", ...) is None:
|
||||
logger.warning(__("Invalid configuration value found: 'language = None'. "
|
||||
"Update your configuration to a valid langauge code. "
|
||||
"Update your configuration to a valid language code. "
|
||||
"Falling back to 'en' (English)."))
|
||||
namespace["language"] = "en"
|
||||
|
||||
|
@ -411,7 +411,7 @@ def test_conf_py_language_none_warning(logger, tempdir):
|
||||
assert logger.warning.called
|
||||
assert logger.warning.call_args[0][0] == (
|
||||
"Invalid configuration value found: 'language = None'. "
|
||||
"Update your configuration to a valid langauge code. "
|
||||
"Update your configuration to a valid language code. "
|
||||
"Falling back to 'en' (English).")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user