eranroz created this task.
eranroz added a project: Wikidata.
Herald added a subscriber: Aklapper.

TASK DESCRIPTION

Executing the following Lua code in hewiki

local label, lang = mw.wikibase.getLabelWithLang( 'Q532055' )

returns

label='Rosaura Revueltas'
lang='he'

(note - the label is in English, which is a fallback)

Expected:

label='Rosaura Revueltas'
lang='en'

Since getLabelWithLang doesn't provide the real language, one must manually validate it doesn't lie by:

mw.wikibase.getEntityObject( "Q532055' ).labels[lang]['language']

TASK DETAIL
https://phabricator.wikimedia.org/T152241

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: eranroz
Cc: Aklapper, eranroz, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to