Yes, I wanted to say this too! Even a single use of "uselang" in the examples would have been helpful. Plus, it does seem strange that all the examples involve data being both queried and displayed in English.
-Yaron On Tue, Oct 20, 2020 at 11:16 AM Addshore <addshorew...@gmail.com> wrote: > Perhaps an example making use of uselang would be useful? > > On Fri, 16 Oct 2020, 16:45 Antonin Delpeuch (lists), < > li...@antonin.delpeuch.eu> wrote: > >> I agree - it would be great if help pages like >> https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities >> could also mention parameters such as "uselang", even if those apply to >> all of MediaWiki. >> >> I filed a Phabricator ticket here: >> https://phabricator.wikimedia.org/T265734 >> >> Antonin >> >> On 16/10/2020 17:04, Thad Guidry wrote: >> > Dmitry, >> > >> > Looking at mailing list history and API Project talk pages... this has >> > been asked tens of times in the past year or so. ;-) (just an >> observation) >> > So "uselang" probably does deserve at least a small mention on the >> > wbsearchentities help page and then in that mention, just provide the >> > link to the main doc page. >> > >> > Thad >> > https://www.linkedin.com/in/thadguidry/ >> > >> > >> > On Fri, Oct 16, 2020 at 9:36 AM Yaron Koren <ya...@wikiworks.com >> > <mailto:ya...@wikiworks.com>> wrote: >> > >> > Okay, now I get it - thanks again. >> > >> > On Fri, Oct 16, 2020 at 10:21 AM Dmitry Brant <dbr...@wikimedia.org >> > <mailto:dbr...@wikimedia.org>> wrote: >> > >> > The "uselang" parameter applies to the base (main) module, and >> > automatically gets used by other modules that are part of the >> > API call: >> > https://www.wikidata.org/w/api.php?action=help&modules=main >> > >> > >> > >> > On Fri, Oct 16, 2020 at 10:01 AM Yaron Koren >> > <ya...@wikiworks.com <mailto:ya...@wikiworks.com>> wrote: >> > >> > Hi Dmitry, >> > >> > Great, thank you! >> > >> > It looks like "uselang" still needs to be added to the >> > documentation for this API action: >> > >> > >> https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities >> > >> > On Fri, Oct 16, 2020 at 9:46 AM Dmitry Brant >> > <dbr...@wikimedia.org <mailto:dbr...@wikimedia.org>> wrote: >> > >> > Yep, just add the "uselang" parameter: >> > >> > >> https://www.wikidata.org/w/api.php?action=wbsearchentities&language=fr&type=item&search=m&uselang=fr >> > >> > >> > >> > On Fri, Oct 16, 2020 at 9:37 AM Yaron Koren >> > <yaro...@gmail.com <mailto:yaro...@gmail.com>> wrote: >> > >> > Hi, >> > >> > When you call the "wbsearchentities" API, the main >> > label and description returned for each item are >> > always hardcoded in English. (Which is strange.) >> > Thankfully, it also returns the label for each item >> > in the specified language - here is an example: >> > >> > >> https://www.wikidata.org/w/api.php?action=wbsearchentities&language=fr&type=item&search=m >> > >> > However, it doesn't seem like there's any way to get >> > the *description* of each item in the specified >> > language. Is there? >> > >> > -Yaron >> > >> > -- >> > WikiWorks · MediaWiki Consulting · >> http://wikiworks.com >> > _______________________________________________ >> > Wikidata mailing list >> > Wikidata@lists.wikimedia.org >> > <mailto:Wikidata@lists.wikimedia.org> >> > >> https://lists.wikimedia.org/mailman/listinfo/wikidata >> > >> > >> > >> > -- >> > Dmitry Brant >> > Senior Software Engineer (Android) >> > Wikimedia Foundation >> > >> https://www.mediawiki.org/wiki/Wikimedia_mobile_engineering >> > >> > _______________________________________________ >> > Wikidata mailing list >> > Wikidata@lists.wikimedia.org >> > <mailto:Wikidata@lists.wikimedia.org> >> > https://lists.wikimedia.org/mailman/listinfo/wikidata >> > >> > >> > >> > -- >> > WikiWorks · MediaWiki Consulting · http://wikiworks.com >> > _______________________________________________ >> > Wikidata mailing list >> > Wikidata@lists.wikimedia.org >> > <mailto:Wikidata@lists.wikimedia.org> >> > https://lists.wikimedia.org/mailman/listinfo/wikidata >> > >> > >> > >> > -- >> > Dmitry Brant >> > Senior Software Engineer (Android) >> > Wikimedia Foundation >> > https://www.mediawiki.org/wiki/Wikimedia_mobile_engineering >> > >> > _______________________________________________ >> > Wikidata mailing list >> > Wikidata@lists.wikimedia.org <mailto: >> Wikidata@lists.wikimedia.org> >> > https://lists.wikimedia.org/mailman/listinfo/wikidata >> > >> > >> > >> > -- >> > WikiWorks · MediaWiki Consulting · http://wikiworks.com >> > _______________________________________________ >> > Wikidata mailing list >> > Wikidata@lists.wikimedia.org <mailto:Wikidata@lists.wikimedia.org> >> > https://lists.wikimedia.org/mailman/listinfo/wikidata >> > >> > >> > _______________________________________________ >> > Wikidata mailing list >> > Wikidata@lists.wikimedia.org >> > https://lists.wikimedia.org/mailman/listinfo/wikidata >> > >> >> >> _______________________________________________ >> Wikidata mailing list >> Wikidata@lists.wikimedia.org >> https://lists.wikimedia.org/mailman/listinfo/wikidata >> > _______________________________________________ > Wikidata mailing list > Wikidata@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata > -- WikiWorks · MediaWiki Consulting · http://wikiworks.com
_______________________________________________ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata