Ladsgroup added a comment.
In T114772#6541988 <https://phabricator.wikimedia.org/T114772#6541988>, @Addshore wrote: > Okay, it looks like the one reamaining open question is around this example: > >> be_taraskwiki and be-taraskwiki is used to refer to wiki, which canonical site ID be_x_oldwiki >> be-tarask is the expected way of communicating the wiki ID of the "Belarussian Taraškievica ortography" Wikipedia > > This needs more than just an alias for input to be converted to a canonical. > This also need a prefered representation / alias for display for some site ids. > > I'd raise the question to @Lydia_Pintscher about this then. We can technical do this in the UI, but would keep the JSON with the storade canonical ID. > Doing anything beyond that would start to expand the scope of this task a bit too much, and might make sense to be done seperatly. internally it should be only stored with their canonical value. The site global id (the db name) never changes for a wiki, even if it gets renamed. > @Ladsgroup do me this issue of display seems like a smaller part of the whole rename problem anyway? Specially given that most of it is in the gadget, I assume it's not our job //but// we need to make sure the validation of frontend code at least accepts aliases. In T114772#6542032 <https://phabricator.wikimedia.org/T114772#6542032>, @WMDE-leszek wrote: > @Ladsgroup I've adjusted the task description to focus on the issue more than on the possible solution. As an expert here, do you know that `zh_classicalwiki` and ` be_x_oldwiki` are the only problematic cases in the current WMF wikis infrastructure, or were those just examples, and there is more to consider/include? - `zh-classical` is one example of many many wikis that have dash in their language code, according to the SiteMatrix <https://meta.wikimedia.org/wiki/Special:SiteMatrix>, the rest are `cbk-zam` (-> `cbk_zamwiki`), `bat-smg`, `fiu-vro`, `map-bms`, `nds-nl`, `roa-rup`, `roa-tara`, `zh-min-nan`, `zh-yue` but we don't need to keep a hard-coded list, just the rule of `-` -> `_` - The only one that's completely different is `be-tarask` ( -> `be_x_oldwiki`) but if this is resolved, I assume more will follow. IIRC, `zh-classical` (to `lzh`), `no` to `nb` and another of Chinese wikis will be renamed (but that's for the future) TASK DETAIL https://phabricator.wikimedia.org/T114772 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ladsgroup Cc: Addshore, Lucas_Werkmeister_WMDE, Pablo-WMDE, Michael, Ladsgroup, Lydia_Pintscher, WMDE-leszek, darthmon_wmde, hoo, Liuxinyu970226, StudiesWorld, Aklapper, daniel, Akuckartz, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
