better page to look for wikipedia results

This commit is contained in:
Nikos Kouremenos 2005-08-05 14:55:42 +00:00
parent 3ef05fb5cc
commit 08b1d56a7a
1 changed files with 3 additions and 2 deletions

View File

@ -710,9 +710,10 @@ class Chat:
always_use_en = gajim.config.get('always_english_wikipedia')
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:
link = 'http://%s.wikipedia.org/wiki/%s'\
link = 'http://%s.wikipedia.org/wiki/Special:Search?search=%s'\
%(gajim.LANG, self.selected_phrase)
item = gtk.MenuItem(_('Read _Wikipedia Article'))
item.connect('activate', self.visit_url_from_menuitem, link)