Page MenuHomePhabricator

In Wikidata value entering boxes "Malformed value", date precision values, and other elements cannot be translated
Open, MediumPublic

Description

Users were trying to: add a new property to the box that checks the entered text for validity (like geo location) in German and received "Malformed Value" error.
What actually happened: The error was in English and not German.

Proposed solution: Use localized strings for that output and others on this window like "to 1/10 of an arcsecond."

Event Timeline

James_Budday updated the task description. (Show Details)Jul 12 2017, 3:02 PM

It doesn't sound like an exceptionally complicated thing to fix, but I don't even know where are these strings.

Is it in Wikibase? Or in one of the extensions or libraries on which it depends? Or is it part of wikidata.org's content?

Amire80 renamed this task from "Malformed value" and other elements not translated to In Wikidata value entering boxes "Malformed value", date precision values, and other elements cannot be translated.Feb 16 2018, 1:17 PM
Amire80 updated the task description. (Show Details)
thiemowmde triaged this task as Medium priority.Feb 19 2018, 5:52 PM

I had a brief look and found two details that might help solving this issue:

  1. The API request might need a uselang=de attached to make sure the error messages the API call possibly returns are all localized.
  2. The file RepoApiError.js in the "wikibase-api" JavaScript component contains code to extract the human-readable error message from an API response. I think the code does not support the current format.

In both cases I believe it's not a design ticket, but an actual bug.