Last modified: 2014-07-27 00:32:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59846, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57846 - Multilang mode should always return a list of languages
Multilang mode should always return a list of languages
Status: ASSIGNED
Product: MediaWiki extensions
Classification: Unclassified
CommonsMetadata (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Tisza Gergő
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 16:39 UTC by Tisza Gergő
Modified: 2014-07-27 00:32 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tisza Gergő 2013-12-02 16:39:26 UTC
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.
Comment 1 Nemo 2014-07-27 00:32:11 UTC
For the sake of search, this is:

There were 79 skipped tests:

[...]

15) 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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links