Bug 256019

Summary: wikipedia plugin for krunner only searches in english wikipedia, no way to configure preferred language
Product: [Plasma] krunner Reporter: Janet <bugzilla>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: alexander.lohnau, kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Janet 2010-11-04 07:48:09 UTC
Version:           unspecified (using KDE 4.5.2) 
OS:                Linux

I prefer to seach the german wikipedia because that's my native language. But when I use the wikipedia plugin for krunner and type in the shortcut "wiki" followed by the terms I want to search for I only get a list with the english wikipedia links. In the plugin settings there's no configuration option. 

Reproducible: Always



Expected Results:  
There should be a configuration option for the wikipedia plugin that allows the user to set the preferred language version of wikipedia. Fallback should stay the english wikipedia.
Comment 1 Janet 2010-11-04 08:59:50 UTC
As alternative to language settings the wikipedia plugin maybe could use the system locale? Though I'd prefer to have it as per user setting.
Comment 2 Kai Uwe Broulik 2011-10-18 10:46:52 UTC
The major "problem" with this thing is that the Wikipedia runner uses an underlying MediaWiki API thingie which is utilized by KDE's Techbase and Userbase runners as well. The MediaWiki API query thing is only given the API URL (which is http://en.wikipedia.org/w/api.php in case of Wikipedia) and this one only querys in the English wikipedia. I looked at the API docs but I can't find a way to make it query in a different language on the same API domain (i.e. "uselang=de" or something like that), so I need to enable the MediaWiki runner to replate that "en" in the URL by "de" or "fr" etc.
I put it on my ToDo-list for 4.9 :)
Comment 3 Andrew Crouthamel 2018-11-06 15:11:28 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-11-18 03:35:05 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Alexander Lohnau 2020-07-08 14:30:18 UTC
Now the url used in the runner is different:
>https://en.wikipedia.org/wiki/Special:Search?search=\{@}&go=Go

This should be easy any intuitive if you want to edit it.