Skip to content

Commit 7a2db6a

Browse files
authored
Merge pull request #10492 from AA-Turner/language-typos
Spelling (language)
2 parents 873d9f6 + 41ac59e commit 7a2db6a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sphinx/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ def read(cls, confdir: str, overrides: Dict = None, tags: Tags = None) -> "Confi
164164
confdir)
165165
namespace = eval_config_file(filename, tags)
166166

167-
# Note: Old sphinx projects have been configured as "langugae = None" because
167+
# Note: Old sphinx projects have been configured as "language = None" because
168168
# sphinx-quickstart previously generated this by default.
169169
# To keep compatibility, they should be fallback to 'en' for a while
170170
# (This conversion should not be removed before 2025-01-01).
171171
if namespace.get("language", ...) is None:
172172
logger.warning(__("Invalid configuration value found: 'language = None'. "
173-
"Update your configuration to a valid langauge code. "
173+
"Update your configuration to a valid language code. "
174174
"Falling back to 'en' (English)."))
175175
namespace["language"] = "en"
176176

tests/test_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def test_conf_py_language_none_warning(logger, tempdir):
411411
assert logger.warning.called
412412
assert logger.warning.call_args[0][0] == (
413413
"Invalid configuration value found: 'language = None'. "
414-
"Update your configuration to a valid langauge code. "
414+
"Update your configuration to a valid language code. "
415415
"Falling back to 'en' (English).")
416416

417417

0 commit comments

Comments
 (0)