Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata, Wikidata Lexicographical data.
TASK DESCRIPTION **Problem:** WikibaseLexeme formats the glosses widget using MediaWiki language codes when it should use HTML language codes (in PHP: `LanguageCode::bcp47()` or `Language::getHtmlCode()`; in JS: `mw.language.bcp47`). **Example:** L123-S116 <https://www.wikidata.org/w/index.php?title=Lexeme:L123&oldid=1316840801#S116> has a gloss in the language for which MediaWiki uses the language code `simple`; the HTML currently looks like this: <td dir="ltr" class="wikibase-lexeme-sense-gloss-value-cell" lang="simple"> <span class="wikibase-lexeme-sense-gloss-value"> a simple English text </span> </td> But `simple` is not a valid HTML / BCP 47 language code – it should be `en-simple`. **Screenshots/mockups:** **BDD** GIVEN a lexeme with an existing gloss with a nonstandard MediaWiki language code THEN the HTML uses a standard language code for the `lang` attribute GIVEN any lexeme WHEN I create a new sense, or edit an existing sense, and add a new gloss with a nonstandard MediaWiki language code AND save the sense THEN the HTML uses a standard language code for the `lang` attribute **Acceptance criteria:** - HTML / BCP 47 language codes are used when the page is rendered server-side in PHP - HTML / BCP 47 language codes are used when the page is rendered client-side in JS **Open questions:** TASK DETAIL https://phabricator.wikimedia.org/T269251 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs