Jarekt created this task. Jarekt added projects: SDC General, MediaWiki-extensions-WikibaseClient, Wikibase-Lua. Restricted Application added a subscriber: Aklapper. Restricted Application added a project: Wikidata.
TASK DESCRIPTION mw.wikibase.getEntity lua function, activated by T223792 <https://phabricator.wikimedia.org/T223792> to work with Structured Data on Commons (SDC) returns SDC entity. The best way to view it is by mw.dumpObject <https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#mw.dumpObject> function. The output of mw.dumpObject|mw.dumpObject (with collapsed "statements" table) for File:Indoor_Climbing_Kid.jpg <https://commons.wikimedia.org/wiki/File:Indoor_Climbing_Kid.jpg> (M4184419) is `table#1 { metatable = table#2 ["id"] = "M4184419", ["labels"] = table#3 { metatable = table#4 ["en"] = table#5 { ["language"] = "en", ["value"] = "A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA", }, }, ["schemaVersion"] = 2, ["statements"] = table#6 { ... }, ["type"] = "mediainfo", }` which is correct as the file has only English caption. That changes when I switch my language from English to Polish and than I get `table#1 { metatable = table#2 ["id"] = "M4184419", ["labels"] = table#3 { metatable = table#4 ["en"] = table#5 { ["language"] = "en", ["value"] = "A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA", }, ["pl"] = table#6 { ["language"] = "en", ["value"] = "A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA", }, }, ["schemaVersion"] = 2, ["statements"] = table#7 { ... }, ["type"] = "mediainfo", }` The entity returned should not depend on user's language. TASK DETAIL https://phabricator.wikimedia.org/T238484 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jarekt Cc: Jarekt, Aklapper, darthmon_wmde, DannyS712, Nandana, JKSTNK, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Cparle, Anooprao, SandraF_WMF, GoranSMilovanovic, QZanden, Tramullas, Acer, LawExplorer, Salgo60, Silverfish, _jensen, rosalieper, Scott_WUaS, Susannaanas, Jane023, Wikidata-bugs, Base, matthiasmullie, aude, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, Raymond, Steinsplitter, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
