Skip to content

Typo in new language warning #10491

Closed
@pquentin

Description

@pquentin

Describe the bug

See the following snippet:

sphinx/sphinx/config.py

Lines 167 to 174 in e1bf4dd

# Note: Old sphinx projects have been configured as "langugae = 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. "
"Falling back to 'en' (English)."))

Both langugae and langauge are used incorrectly.

How to Reproduce

Noticed in Read the Docs: https://readthedocs.org/projects/trustme/builds/17039627/

Expected behavior

Mention "language" without typos.

Your project

https://github.com/python-trio/trustme/tree/master/docs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions