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

Add proper BCP 47 names for various languages #37

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

cscott
Copy link
Contributor

@cscott cscott commented Oct 23, 2018

Audit language names against BCP 47 validator and rename those which are not valid BCP 47 codes, leaving the old aliases for backward-compatibility.

Validated against IANA registry at
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
with the help of the validator at
http://schneegans.de/lv/

Add fully-expanded aliases for zh-XX language codes to help compatibility with other BCP 47 users.

See also:
https://github.com/wikimedia/mediawiki/blob/1113b1203cbc1049fb1d01e975ff9a531d72a408/languages/LanguageCode.php#L56

@cscott cscott mentioned this pull request Oct 23, 2018
Audit language names against BCP 47 validator and rename those which are
not valid BCP 47 codes, leaving the old aliases for backward-compatibility.

Validated against IANA registry at
  https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
with the help of the validator at
  http://schneegans.de/lv/

Add fully-expanded aliases for zh-XX language codes to help compatibility
with other BCP 47 users.

See also:
https://github.com/wikimedia/mediawiki/blob/1113b1203cbc1049fb1d01e975ff9a531d72a408/languages/LanguageCode.php#L56
@cscott
Copy link
Contributor Author

cscott commented Oct 23, 2018

As @arlolra mentioned in PR #36, after merging this patch this needs to be pulled into jquery.uls and then that needs to be pulled into mediawiki-extensions-UniversalLanguageSelector and then that needs to be cherry-picked to ULS's REL1_32 branch. (Whew!)

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

Successfully merging this pull request may close these issues.

None yet

2 participants