Page MenuHomePhabricator

Multilang mode should always return a list of languages
Open, MediumPublicFeature

Description

When the HTML parser in CommonsMetadata is set into multilang mode, it will return an array of language versions for each metadata field, one for each language template ({{en}} etc) used in that field. But for fields not using such templates at all, it will return a single value, not an array. This makes sense for fields which are not language-dependent, but for the rest it just makes the behavior of the extension hard to predict.


Version: unspecified
Severity: enhancement

Details

Reference
bz57846

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:37 AM
bzimport added a project: CommonsMetadata.
bzimport set Reference to bz57846.

For the sake of search, this is:

There were 79 skipped tests:

[...]

  1. TemplateParserTest::testMultilangModeWithoutLanguage

bug 57846

/srv/vagrant/mediawiki/extensions/CommonsMetadata/tests/phpunit/TemplateParserTest.php:139
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

Gilles triaged this task as Medium priority.Nov 24 2014, 1:31 PM
Gilles subscribed.
Tgr removed Tgr as the assignee of this task.Dec 23 2014, 11:18 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:23 PM