Winston_Sung created this task.
Winston_Sung added projects: MediaWiki-extensions-WikibaseRepository, Wikidata.
TASK DESCRIPTION
**Steps to replicate the issue** (include links if applicable):
- Go to Special:NewItem
- Click the language dropdown menu
**What happens?**:
- Deprecated language codes are listed
**What should have happened instead?**:
- Deprecated language codes shouldn't be listed
**Software version** (skip for WMF-hosted wikis like Wikipedia):
- MediaWiki Wikibase extension (WikibaseRepository) 9edeec7
**Other information** (browser name/version, screenshots, etc.):
- `languageNameUtils->getLanguageNames()` would include deprecated language
codes in the list.
name=/lib/includes/MediaWikiContentLanguages.php#L30-L35
/**
* @return string[] Array of language codes supported as content language
*/
public function getLanguages() {
return array_keys( $this->getLanguageMap() );
}
name=/lib/includes/MediaWikiContentLanguages.php#L46-L55
/**
* @return string[] Array of language codes => language names.
*/
private function getLanguageMap() {
if ( $this->languageMap === null ) {
$this->languageMap =
$this->languageNameUtils->getLanguageNames();
}
return $this->languageMap;
}
TASK DETAIL
https://phabricator.wikimedia.org/T327052
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Winston_Sung
Cc: Aklapper, Winston_Sung, Astuthiodit_1, karapayneWMDE, Invadibot,
maantietaja, ItamarWMDE, Akuckartz, Nandana, lucamauri, Lahi, Gq86,
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS,
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]