Page MenuHomePhabricator

ULS and CLDR are dependencies for WikibaseLexeme
Closed, ResolvedPublic1 Estimated Story Points

Description

After installing WikibaseLexeme extension in my fresh MediaWiki instance, I faced an issue trying to add Senses where the Language field for a gloss would not lookup and populate with proper language value.

Even if I get a textual representation of a language value, such as Afrikaans (af) or en-gb and put it manually in, it still appears not to process it properly and I get the following error:

image.png (109×845 px, 10 KB)

I'm not sure if that's a bug in WikibaseLexeme function (or a feature), But I think adding the two extensions as (recommended?) prerequisites as part of WikibaseLexeme install instructions is a good idea.

Reproduce

  1. Do not install/load CLDR and ULS extensions on your MediaWiki instance
  2. Create a Lexeme
  3. Try to add a Sense, filling in 1-or-more glosses with language codes
  4. Save the sense form
  5. You should an error message similar to the one in screenshot above

Event Timeline

alaa_wmde triaged this task as Medium priority.
alaa_wmde set the point value for this task to 1.

Change 488911 had a related patch set uploaded (by Alaa Sarhan; owner: Alaa Sarhan):
[mediawiki/extensions/WikibaseLexeme@master] Add ULS and CLDR as prerequisites in install instructions

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

@Lydia_Pintscher do we want to support language lookup for language field in Forms as well? Currently it allows you to enter anything, and reports an error if you do enter an invalid language code (coming from the api).

@Lydia_Pintscher do we want to support language lookup for language field in Forms as well? Currently it allows you to enter anything, and reports an error if you do enter an invalid language code (coming from the api).

At this point no. It's complicated. Happy to give the longer version over a lunch or so.

Change 488911 merged by jenkins-bot:
[mediawiki/extensions/WikibaseLexeme@master] Add ULS and CLDR as prerequisites in install instructions

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