<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;">Hello,<br /><br />I am Pablo and I am working on </span><a href="https://bugs.kde.org/show_bug.cgi?id=267394"><span style=" font-family:'dejavu sans'; font-size:13px; text-decoration: underline; color:#0068c6;">this bug</span></a><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;">. </span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;">The idea is modify Wikipedia plug-in to show Wikipedia items, not only in the locale language, but also in additional configured languages.<br /></span><span style=" font-family:'dejavu sans';"><br /></span><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;">In the bug</span><span style=" font-family:'dejavu sans';">, someone </span><span style=" font-family:'dejavu sans'; color:#2e3436;">told</span><span style=" font-family:'dejavu sans'; font-size:14px; color:#2e3436;">:</span><br /></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; font-style:italic; color:#2e3436; background-color:#fefefe;">A possible approach might be this:</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; font-style:italic; color:#2e3436; background-color:#fefefe;">- extend the existing configuration dialog of the Wikipedia plug-in to have an configurable list of additional languages (besides current locale)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; font-style:italic; color:#2e3436; background-color:#fefefe;">- change WikipediaModel::getAdditionalItems() to query not only the current locale, but also all configured additional languages</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; font-style:italic; color:#2e3436; background-color:#fefefe;">- 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)</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'Open Sans,Helvetica Neue,Helvetica,Arial,sans-serif'; font-size:13px; color:#2e3436;"><br /></span><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;">How ever I found some problems that I could not solve:<br /></span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;">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 </span><span style=" font-family:'dejavu sans'; font-size:13px; font-style:italic; color:#2e3436; background-color:#fefefe;">WikipediaModel::getAdditionalItems() </span><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436; background-color:#fefefe;">to query for additional languages</span><span style=" font-family:'dejavu sans'; font-size:13px; font-style:italic; color:#2e3436; background-color:#fefefe;">, AbstractDataPluginModel::downloadDescriptionFile </span><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436; background-color:#fefefe;">will not download the same Wikipedia article twice.</span></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><span style=" font-family:'dejavu sans'; font-size:13px; color:#2e3436;"><br />On the other hand, I can not decide the order in which the plug-in will download the information, so I can not prioritize languages. <br /><br />Also I found another problem that would do not allow prioritize a language over another one: there are Wikipedia articles with different names in each language, so it is no possible to know which WikipediaItems are the same article in different languages.<br /><br />I do not know how to really solve these problems.<br /><br />Thanks,<br />Pablo</span><br /></p></body></html>