Page MenuHomePhabricator

Remove duplicate langcodes for Timed Text
Open, Needs TriagePublic

Description

Please remove the column dupe. Existing files should be moved to names with the correct codes.

langcodedupe# of files affected
lzhzh-classical7
nanzh-min-nan1
yuezh-yue1

If you would like to discuss locally, please go to https://commons.wikimedia.org/wiki/Commons_talk:Timed_Text#duplicate_langcodes .

Event Timeline

Roy17 created this task.May 26 2019, 4:38 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 26 2019, 4:38 PM
Roy17 removed a subscriber: Roy17.

I only know of these three. Please check for others.

These three are dupes because they are identical to the correct codes. The rest of zh-xx are not dupes because they can be used to distinguish regional variants of Standard Chinese.

TheDJ added a subscriber: TheDJ.Thu, Jun 20, 10:00 PM

The builder for creating pages uses Xml::languageSelector and Language::fetchLanguageNames( $language, 'all' );
I don't think we have a way to filter out the dupes from there right now...

Regardless, you can simply rename the TimedText files as you see fit. It doesn't care about the particular code used, as long as it is valid.

Related T10217: Wikipedias with zh-* language codes waiting to be renamed (zh-min-nan -> nan, zh-yue -> yue, zh-classical -> lzh)