Page MenuHomePhabricator

property values formatted in english when entering them in non-english
Closed, ResolvedPublic

Description

When I using wikidata in non-english (e.g. German) and enter a statement on Wikidta, with property value (wikibase-item), the value is displayed in english once it is saved instead of in German.

When I reload the item, then it is in German.


Version: unspecified
Severity: major
Whiteboard: u=dev c=frontend p=0
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=63059

Details

Reference
bz72393

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:59 AM
bzimport set Reference to bz72393.
bzimport added a subscriber: Unknown Object (MLST).

this still happens on master

If the frontend should pass the language to wbformatvalue and wbparsevalue, it would have to either pass the language to the valueview which passes it to the experts, or it would have to pass it in to getApiBasedValue{Formatter,Parser}Constructor. The latter is much easier.

This could also be fixed in the API modules: they should default to the user language, not the content language.

Really, we should do both. The API should use the "correct" default, and the UI code should always pass a language when parsing or formatting, for completeness and consistency.

I guess that is related bug #63059.

  • Bug 72648 has been marked as a duplicate of this bug. ***
  • Bug 72648 has been marked as a duplicate of this bug. ***

Still happening on test.wikidata.org right now.