[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2016-08-30 Thread thiemowmde
thiemowmde added a comment. This was just mentioned in https://github.com/Wikidata/Wikidata-Toolkit/issues/239.TASK DETAILhttps://phabricator.wikimedia.org/T109584EMAIL PREFERENCEShttps://phabricator.wikimedia.org/settings/panel/emailpreferences/To: thiemowmdeCc: Ricordisamoa, Sjoerddebruin, nichti

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-10-26 Thread nichtich
nichtich added a comment. At least the documentation lacks a clear description of this complex language negotiation mechanism (`uselang` is not mentioned. Meaning of 'strictlanguage' unclear, examples only refer to Engli

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-10-25 Thread Addshore
Addshore added a comment. So this is due to language fallback. DE falls back to EN. Again I don't see anything in the comment that we did not explicitly design into this version of the API module. You search in a language (with fallback) The matched result is always returned to you, with what th

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-10-24 Thread nichtich
nichtich added a comment. I found an example where even `uselang` and `language` does not help but part of the response is always English: https://www.wikidata.org/w/api.php?action=wbsearchentities&search=%C3%84rzte%20ohne&language=de&format=json&uselang=de contains the result { "id":"

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-10-22 Thread nichtich
nichtich added a subscriber: nichtich. nichtich added a comment. I also stumbled upon this weird behaviour. The `Accept-language` HTTP header is also ignored but response language for some fields comes from **a cookie (?!)**. Luckily parameter `uselang` can be used to control the response langu

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-09-07 Thread thiemowmde
thiemowmde added a comment. @Addshore wrote: > The module returns [...] details about the entity matched in the display > language Did you ever tried to build a renderer on top of this? { "search": [ { "match": { "type": "label",

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-09-07 Thread Addshore
Addshore added a comment. The module returns: 1. the matched term in the language of the search (language param) 2. details about the entity matched in the display language (uselang param) TASK DETAIL https://phabricator.wikimedia.org/T109584 EMAIL PREFERENCES https://phabricator.wikimedia

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-09-03 Thread thiemowmde
thiemowmde added a comment. To what does "display language" refer to? Error messages should be in the users language. Search results should be in the language the user is searching in. Again, I don't know how this bug's description could be more simple and obvious. TASK DETAIL https://phabri

[Wikidata-bugs] [Maniphest] [Commented On] T109584: [Bug] wbsearchentities API defaults to something else than the given language parameter

2015-09-03 Thread Addshore
Addshore added a comment. So when no uselang param is explicitly passed to the api then fallback to the language param as the display language? TASK DETAIL https://phabricator.wikimedia.org/T109584 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Ad