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.
We'll have a look into this. Patches would still be appreciated though ;-)
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.
-----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-----
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.