Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
D
drupal
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Custom Issue Tracker
    • Custom Issue Tracker
  • Labels
  • Merge Requests 316
    • Merge Requests 316
  • Requirements
    • Requirements
    • List
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Commits
  • project
  • drupal
  • Merge Requests
  • !332

Open
Opened Feb 21, 2021 by joray@joray
  • Report abuse
Report abuse

Issue #3111571: Except for websites created by Drupal, no websites use "zh-hans" and "zh-hant" language codes.

  • Overview 0
  • Commits 8
  • Changes 6

Browsers understand language codes differently to Drupal. IE and Firefox will send 'zh-cn', but Drupal understands this language as 'zh-hans'. for Simplified Chinese langugage, both IE and Firefox will send 'zh-cn' as the preferred language code, which is different from Drupal's 'zh-hans' code, thus the browser detection will not work for Simplified Chinese.The official website of the United Nations also uses "zh" instead of "zh-hans",zh uses Chinese Chinese (zh-cn) by default,and using zh-cn is more common in the browser.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: project/drupal!332
Source branch: 9.2.x