Add ar-001, rhg-arab and rhg-rohg - #510
Merged
Merged
Conversation
Wikifunctions carries these three codes as languages users can write labels in, and WikiLambda reads label directionality from ULS via $.uls.data.getDir(). ULS answers 'ltr' for any code it does not know, with no error and no fallback to the base subtag, so all three currently render left-to-right when they should render right-to-left. ar-001 is CLDR's code for Modern Standard Arabic and rhg-rohg is the Hanifi-script Rohingya that the bare rhg code already denotes, so both are redirects. rhg-arab needs an entry of its own; its autonym is taken from the corresponding Wikifunctions object. Twenty-one further right-to-left codes that Wikifunctions carries are still missing, and seven of them use scripts absent from rtlscripts (Avst, Mand, Orkh, Phli, Phnx, Samr and Sogd). Those are not included here because none of them has an autonym available from a source that has already been reviewed, and guessing at native-language names for extinct languages seemed worse than leaving them out. Assisted-by: Claude Opus 5
srish
approved these changes
Aug 5, 2026
Member
Author
|
Thanks! Is there a standard place from which to get the autonyms for the other languages? |
Member
|
@jdforrester Sources provided by communities are relied on for autonym evidence. Ethnologue is also a go to resource among many others documented at https://www.mediawiki.org/wiki/Manual:Adding_and_removing_languages#Determining_the_autonym. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wikifunctions carries these three codes as languages users can write labels in, and WikiLambda reads label directionality from ULS via $.uls.data.getDir(). ULS answers 'ltr' for any code it does not know, with no error and no fallback to the base subtag, so all three currently render left-to-right when they should render right-to-left.
ar-001 is CLDR's code for Modern Standard Arabic and rhg-rohg is the Hanifi-script Rohingya that the bare rhg code already denotes, so both are redirects. rhg-arab needs an entry of its own; its autonym is taken from the corresponding Wikifunctions object.
Twenty-one further right-to-left codes that Wikifunctions carries are still missing, and seven of them use scripts absent from rtlscripts (Avst, Mand, Orkh, Phli, Phnx, Samr and Sogd). Those are not included here because none of them has an autonym available from a source that has already been reviewed, and guessing at native-language names for extinct languages seemed worse than leaving them out.
Assisted-by: Claude Opus 5