[Marble-devel] Troubles in Junior Job: Article language choice in the Wikipedia plugin for Marble

Pablo pablos.sr85 at gmail.com
Mon Sep 30 17:53:28 UTC 2013


Hello,

I am Pablo and I am working on this bug[1]. 
The idea is modify Wikipedia plug-in to show Wikipedia items, not only in 
the locale language, but also in additional configured languages.


In the bug, someone told:

/A possible approach might be this:/
/- extend the existing configuration dialog of the Wikipedia plug-in to have 
an configurable list of additional languages (besides current locale)/
/- change WikipediaModel::getAdditionalItems() to query not only the 
current locale, but also all configured additional languages/
/- try whether it is needed to remove duplicate entries (when articles are 
available in several of the configured languages) in the plug-in (might not 
be needed: when items overlap on the map, Marble shows a context menu 
to select them. So if they're named correctly, this could be a nice way for 
the user to switch languages before even opening the pop-up browser)/

How ever I found some problems that I could not solve:


In one hand, WikipediaItems do not overlap and only the last item 
downloaded from a location is showed in the map. As long as I could see, 
only plug-ins of differents types can overlap.  Although I can change 
/WikipediaModel::getAdditionalItems() /to query for additional languages/, 
AbstractDataPluginModel::downloadDescriptionFile /will not download the 
same Wikipedia article twice.




--------
[1] https://bugs.kde.org/show_bug.cgi?id=267394
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20130930/5bb01c05/attachment.html>


More information about the Marble-devel mailing list