better page to look for wikipedia results
This commit is contained in:
parent
3ef05fb5cc
commit
08b1d56a7a
|
@ -710,9 +710,10 @@ class Chat:
|
||||||
|
|
||||||
always_use_en = gajim.config.get('always_english_wikipedia')
|
always_use_en = gajim.config.get('always_english_wikipedia')
|
||||||
if always_use_en:
|
if always_use_en:
|
||||||
link = 'http://en.wikipedia.org/wiki/%s' % self.selected_phrase
|
link = 'http://en.wikipedia.org/wiki/Special:Search?search=%s'\
|
||||||
|
% self.selected_phrase
|
||||||
else:
|
else:
|
||||||
link = 'http://%s.wikipedia.org/wiki/%s'\
|
link = 'http://%s.wikipedia.org/wiki/Special:Search?search=%s'\
|
||||||
%(gajim.LANG, self.selected_phrase)
|
%(gajim.LANG, self.selected_phrase)
|
||||||
item = gtk.MenuItem(_('Read _Wikipedia Article'))
|
item = gtk.MenuItem(_('Read _Wikipedia Article'))
|
||||||
item.connect('activate', self.visit_url_from_menuitem, link)
|
item.connect('activate', self.visit_url_from_menuitem, link)
|
||||||
|
|
Loading…
Reference in New Issue