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

Duplicated zh-hans, zh-hant, zh-CN, zh-TW in config/locales since f3ef1b4 #5627

Open
winstonsung opened this issue Feb 6, 2024 · 8 comments
Labels

Comments

@winstonsung
Copy link
Contributor

What is happening?

To Reproduce

Steps to reproduce the behavior:

Expected behavior

Only "zh-hans and zh-hant" or "zh-CN and zh-TW" options (Picture 2)

Screenshots

Picture 1:

Duplicated entries

Picture 2:

Expected

System Information

  • OS: Windows 10 (x64)
  • Browser: Chrome, Firefox

Additional context

@ragesoss
Copy link
Member

@winstonsung can you explain more about why this is the expected behavior? The set of supported languages is based on the locale files which come from @translatewiki, and it appears we've had translators contributing to all four locales, but I don't have a clear understanding of the overlap between them.

@winstonsung
Copy link
Contributor Author

translatewiki already disabled zh-cn and zh-tw a long time ago (August 9, 2012) and the 2 files won't receive any further updates, thus become outdated translations.

https://github.com/wikimedia/translatewiki/blob/b90deeb/mw-config/TranslateSettings.php#L208-L209

wikimedia/translatewiki@94541c3#diff-df22c35f95d7cce966011d7a2c9ea556d7feda5145f53415420f02f687aa1da3R236

@ragesoss
Copy link
Member

Ah! Thank you!

@winstonsung
Copy link
Contributor Author

My apologies, translatewiki actually export zh-CN and zh-TW by using the YAML config file.

https://gerrit.wikimedia.org/g/translatewiki/+/e2a5459/groups/Wikimedia/WikiEduDashboard.yaml#14

We should do it in the opposite way.

winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I914a4494d28bc861d21835b9cd6667e4e0937e26
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I914a4494d28bc861d21835b9cd6667e4e0937e26
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 28, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I914a4494d28bc861d21835b9cd6667e4e0937e26
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 29, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 29, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I914a4494d28bc861d21835b9cd6667e4e0937e26
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 29, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 29, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I914a4494d28bc861d21835b9cd6667e4e0937e26
@winstonsung
Copy link
Contributor Author

winstonsung commented Feb 29, 2024

(comment moved to #5684 )

winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 29, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I31b6842d48b5d14cd95043b8b597dbd76a95de66
winstonsung added a commit to winstonsung/WikiEduDashboard that referenced this issue Feb 29, 2024
Bug: WikiEducationFoundation#5627
Change-Id: I914a4494d28bc861d21835b9cd6667e4e0937e26
@winstonsung
Copy link
Contributor Author

(status: check after deployment)

@ragesoss
Copy link
Member

I've deployed this now.

@winstonsung
Copy link
Contributor Author

winstonsung commented Mar 1, 2024

Duplication fixed.

Just discovered that it doesn't recognize BCP 47 zh-Hans-CN/zh-Hant-TW and only detect legacy zh-CN/zh-TW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants