Page MenuHomePhabricator

Add language form - multiple warnings for not recognized languages names
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • On any object page, e.g. https://www.wikifunctions.org/view/en/Z10001, click on "N languages" button
  • In "Labels in other languages" popup, click Add language .
  • In the Language field on "Edit information", type (paste) a language name in Arabic or Cyrillic script. e.g. الدارجة (Arabic), Беларускi (Belarusian). Note: both strings are recognized by the uls on wikidata. الدارجة

What happens?:

  • language names in native scripts are not recognized - no suggestions are displayed
NOTE: If a user changes UI lang, the issue is not present.
  • If a language name is typed more or less slowly, multiple warnings will be displayed:
Screen Shot 2023-08-07 at 2.24.25 PM.png (1×1 px, 119 KB)
Screen Shot 2023-08-07 at 2.25.40 PM.png (1×1 px, 135 KB)
Screen Shot 2023-08-07 at 2.45.21 PM.png (1×1 px, 131 KB)

What should have happened instead?:

  • native names of languages should be recognized without switching the entire UI to language that is going to be added
  • no multiple identical warnings should be displayed

Event Timeline

This also is true the other way around: if your UI is in Arabic or Belarusian, the search term "English" will not hit anything (unless fallback). Currently the language selector only works with names in the given language.

DVrandecic moved this task from To triage to Backlog on the Abstract Wikipedia team board.

Change 964913 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Rewrite labels API and improve ZObjectSelector

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

Jdforrester-WMF changed the task status from Open to In Progress.Oct 10 2023, 2:17 PM
Jdforrester-WMF assigned this task to gengh.
Jdforrester-WMF moved this task from Backlog to In Progress on the Abstract Wikipedia team board.

Change 964913 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Rewrite labels API and improve ZObjectSelector

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

Etonkovidova closed this task as Resolved.EditedOct 18 2023, 7:57 PM

Checked in wikifunctions wmf.1 - the issues are fixed :

Screen Shot 2023-10-18 at 12.42.38 PM.png (1×1 px, 163 KB)

  • entered languages are recognized regardless of the user interface language
  • no multiple warnings appear
  • if a language is not recognize - "No results found" is displayed (Error type: not found Z543).

This also is true the other way around: if your UI is in Arabic or Belarusian, the search term "English" will not hit anything (unless fallback). Currently the language selector only works with names in the given language.

The issue is not present anymore (as mentioned above). Below in the screenshot - the user UI is in Russian, typing "English" shows the correctly found lang options:

Screen Shot 2023-10-18 at 12.47.16 PM.png (1×1 px, 287 KB)