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

Update Kyrgyz locale information #1872

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

obulat
Copy link

@obulat obulat commented Oct 29, 2024

Problem

We discovered this problem when running the Lighthouse test on https://openverse.org: Incorrect slug for Kyrgyz locale.

slug and wp_locale for Kyrgyz locale are incorrect. This locale was last updated in Update Kyrgyz locale information, but the data used in it did not match the language editor's request.

Locale object also did not have pluralization data. I removed it because the tests are failing

Solution

This PR updates the locale object:

property old value new value
name $kir $kg
wp_locale kir ky_KG
slug kir ky

Notes

The locale list used in the Google LightHouse check (see that there is no kir locale in the list): https://github.com/dequelabs/axe-core/blob/e8eec734b3d32e5239fccab6645ce2ce51aa2e5e/lib/core/utils/valid-langs.js

The pluralization rules: https://www.unicode.org/cldr/charts/45/supplemental/language_plural_rules.html

Data on Kyrgyz locale: https://www.localeplanet.com/icu/ky-KG/index.html

locales/locales.php Outdated Show resolved Hide resolved
@tobifjellner
Copy link
Contributor

Hi @obulat
What you're proposing would break WordPress for all people currently using this locale.

The fix is much simpler, the following translation needs to be corrected back to "ky-KG": https://translate.wordpress.org/projects/wp/dev/kir/default/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=2379367&sort%5Bby%5D=translation_date_added&sort%5Bhow%5D=asc

@tobifjellner
Copy link
Contributor

I have now updated the "translation" of "html_lang_attribute" for all active versions of WordPress.
It seems that at some point someone just copied the parameter name as translation. This generated an error, and I made the mistake of using the three-letter code instead of the two-letter code.

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

Successfully merging this pull request may close these issues.

2 participants