Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #10214: html: invalid language tag was generated for zh_CN #10311

Merged
merged 1 commit into from Apr 2, 2022

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Mar 30, 2022

Feature or Bugfix

  • Bugfix

Purpose

So far, HTML builder output the `language` configuration as a language
tag for HTML.  But it takes locale string in ANSI C, not IETF language
code.

This converts locale string to language tag to generate valid language
tag for HTML.
@tk0miya tk0miya force-pushed the 10124_invalid_language_tag branch from db15908 to 11a1dbe Compare April 2, 2022 16:03
@tk0miya tk0miya merged commit 35381cc into sphinx-doc:5.x Apr 2, 2022
@tk0miya tk0miya deleted the 10124_invalid_language_tag branch April 2, 2022 16:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant