magnusmanske / listeria_rs

Repo for the Wikimedia Listeria bot
https://listeria.toolforge.org/
25 stars 6 forks source link

Allow overriding label language #127

Open tacsipacsi opened 3 months ago

tacsipacsi commented 3 months ago

Apparently ListeriaBot uses the content language of the wiki to format labels. Especially on multilingual wikis like Wikidata itself, this is often wrong. At least it should use the page language (specific to the page, included in action=query&prop=info as pagelanguage) rather than the content language (specific to the wiki). Even better, it could be a template parameter (defaulting to the page language), so that no extra permissions are needed to change it (the page language can be changed only by specific user groups) and multiple languages can be used on the same page.

pere-prlpz commented 1 month ago

@tacsipacsi : In https://en.wikipedia.org/wiki/Template:Wikidata_list a "language" parameter is described to globally use a different language and there are language modified for labels, to use labels in several languages at the same time. However, I have never used this feature and I don't know if it is implemented in all wikis.