JS currently used i18n messages for the property names (in dropdown and in read mode), whereas PHP renders the actual property's formatted text.
JS should probably do the same thing, and use formatValue() (and then get rid of those i18n messages), it's just a little "annoying" that formatValue is a slow API call...
Maybe we should fetch all supported property names in PHP & output the formatted text somewhere for JS to pick it up? IDK :)
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Render property names the same way in PHP & JS | mediawiki/extensions/WikibaseMediaInfo | master | +231 -196 |
Event Timeline
Comment Actions
Change 492004 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/WikibaseMediaInfo@master] Render property names the same way in PHP & JS
Comment Actions
Change 492004 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Render property names the same way in PHP & JS