Page MenuHomePhabricator

Decide whether to make LanguageNameUtils able to support BCP 47 language codes
Open, Needs TriagePublic

Description

Currently, Wikibase get all language codes from Names.php via LanguageNameUtils.

However, it is supposed that Wikibase should use BCP 47 language codes instead of MediaWiki internal language codes, but Names.php and LanguageNameUtils both use MediaWiki internal language codes.

This also made duplicate language names in Names.php

We should probably consider make LanguageNameUtils able to support BCP 47 language codes.

(abandoned option: change Names.php to BCP 47 language code)

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
StalledNone
StalledNone
InvalidNone
StalledNone
StalledNone
StalledNone
StalledNone
StalledFeatureNone
StalledNone
StalledFeatureNone
StalledFeatureNone
StalledFeatureNone
StalledNone
StalledNone
OpenNone
OpenNone
StalledNone
OpenNone
OpenNone
OpenNone
OpenBUG REPORTNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone
OpenNone

Event Timeline

Winston_Sung renamed this task from Decide to use BCP 47 language codes or MediaWiki internal codes for Names.php to Decide whether to use BCP 47 language codes or MediaWiki internal codes for Names.php.May 24 2023, 5:53 PM

My opinion is no. Only if we completely get rid of internal language codes. I like what the content transform team is doing with typed language codes (instead of just string) to avoid mixing them.

Winston_Sung renamed this task from Decide whether to use BCP 47 language codes or MediaWiki internal codes for Names.php to Decide whether to make LanguageNameUtils able to support BCP 47 language codes.Oct 30 2023, 2:32 PM
Winston_Sung updated the task description. (Show Details)

My opinion is no. Only if we completely get rid of internal language codes. I like what the content transform team is doing with typed language codes (instead of just string) to avoid mixing them.

Thanks for giving opinions.