Bug 169728 - Configuration option for Wikipedia-URL
Summary: Configuration option for Wikipedia-URL
Status: RESOLVED INTENTIONAL
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Torsten Rahn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-24 16:14 UTC by Sebastian Raible
Modified: 2011-08-19 13:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
marble-custom-wikipedia-mirror.diff (4.39 KB, patch)
2009-11-15 13:20 UTC, Dennis Nienhüser
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Raible 2008-08-24 16:14:02 UTC
Version:           marble-0.6+svn837399 (from debian unstable) (using KDE 3.5.9)
Installed from:    Debian testing/unstable Packages

We're distributing an offline version of wikipedia and would like to change wikipedia's hostname to localhost, which is now done by changing the string in src/lib/TinyWebBrowser.cpp:52.

It would be kind of convenient to have this as a config option.
Comment 1 Torsten Rahn 2008-08-25 17:57:56 UTC
We'll have a look into this. Patches would still be appreciated though ;-)
Comment 2 Dennis Nienhüser 2009-11-15 13:20:06 UTC
Created attachment 38342 [details]
marble-custom-wikipedia-mirror.diff

What's your use case exactly? For an offline usage of marble with wikipedia support, you'd also need to provide the geonames.org service locally. I guess that's harder to set up than a wikipedia mirror.

Anyway, attached is a patch to support rewriting the host part of wikipedia. To activate it, edit ~/.kde4/share/config/marblerc to include
[plugin_wikipedia]
rewriteHost=localhost

Not sure if this should be commited, it adds some more complexity that needs to be maintained for what I think is a rather uncommon use case.
Comment 3 Sebastian Raible 2009-11-16 11:15:43 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,


the use case was a project that was ended last year. It was about
distributing computers to children that otherwise wouldn't have had
access to a computer. They wouldn't have had access to the internet so
we thought about distributing a wikipedia snapshot with the computers.

The project has been ended one year ago though, so thanks much for your
effort. I still think it might be a good idea to have that upstream but
nevermind.


Cheers
Sebastian

Dennis Nienhüser wrote:
> https://bugs.kde.org/show_bug.cgi?id=169728
> 
> 
> 
> 
> 
> --- Comment #2 from Dennis Nienhüser <earthwings gentoo org>  2009-11-15 13:20:06 ---
> Created an attachment (id=38342)
>  --> (http://bugs.kde.org/attachment.cgi?id=38342)
> marble-custom-wikipedia-mirror.diff
> 
> What's your use case exactly? For an offline usage of marble with wikipedia
> support, you'd also need to provide the geonames.org service locally. I guess
> that's harder to set up than a wikipedia mirror.
> 
> Anyway, attached is a patch to support rewriting the host part of wikipedia. To
> activate it, edit ~/.kde4/share/config/marblerc to include
> [plugin_wikipedia]
> rewriteHost=localhost
> 
> Not sure if this should be commited, it adds some more complexity that needs to
> be maintained for what I think is a rather uncommon use case.
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLASZMAAoJEN0xCum40jUQi64IALsqhmVL/ClrOwm6oj+FBuBy
I67dfuMjWB2ZaZsoqWu79maqb40eaDNmJD4o5iWSb6TNyXBY25mpyDOBAJumzHgQ
4qbGxkj/4ubdmpUihHITGJJ6yE7KUck4d4FoMAnm76EKKhdSpY387KCyjZQe8Bh0
F1LwjjZvyPpzSAOKSqvbtcccdITBg8LzXyxmVmMM2255efisy0UWSSTgeylqroKw
sO4mlhlh34rjCpB/8QDgWMyPBqr+L1zKAppB54xM81Mu8cmL7+k91Zd2yW17Fhp6
P1a3538LC9JgcJBeJdL9xZVKPMftoNveeJg1gmClkn2RDqV1GPvm2RHv9MtMB1w=
=QKWa
-----END PGP SIGNATURE-----
Comment 4 Bernhard Beschow 2011-08-19 13:31:21 UTC
I agree with Dennis. I can't see a use case where Wikipedia data is stored offline, while reverse geocoding still needs internet access.

I've created a new bug report (bug 280423), where proper offline access to Wikipedia articles is requested.

Please reopen if that doesn't solve the problem.