Page MenuHomePhabricator

[LIB][SW] consider removing wikibase-monolingualtext message
Open, Needs TriagePublic

Description

The message wikibase-monolingualtext has some HTML and ($1). It is optional and not translated to any languages. It can probably be completely removed. For languages that need different parentheses characters, there is the core MediaWiki message parentheses, and the HTML can be just constructed in the code in run time.

(The message is actually in WikibaseLib, but I couldn't find a project tag for that, so tagging as WikibaseRepository.)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
ArthurTaylor renamed this task from consider removing wikibase-monolingualtext to [LIB][SW] consider removing wikibase-monolingualtext.Apr 2 2024, 2:47 PM
ArthurTaylor moved this task from Incoming to [DOT] By Project on the wmde-wikidata-tech board.

Prio Notes:

Impact AreaAffected
production / end users
monitoring
development efforts
onboarding efforts
additional stakeholders
Lucas_Werkmeister_WMDE renamed this task from [LIB][SW] consider removing wikibase-monolingualtext to [LIB][SW] consider removing wikibase-monolingualtext message.Tue, Apr 23, 1:12 PM

Change #1032787 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Replace wikibase-monolingualtext message with hard-coded HTML

https://gerrit.wikimedia.org/r/1032787

For languages that need different parentheses characters, there is the core MediaWiki message parentheses, and the HTML can be just constructed in the code in run time.

In the above patch I also used the word-separator message to replace the space between the two spans; do you think that makes sense, or should it be a hard-coded space after all? The first span isn’t necessarily in the user interface language, but to my naive eye, having no space before the full-width parenthesis still looks okay:

image.png (89×204 px, 5 KB)

image.png (92×232 px, 5 KB)