This commit is contained in:
Nikos Kouremenos 2005-07-18 16:40:12 +00:00
parent 879ffc65a4
commit f088e4203a
2 changed files with 8 additions and 8 deletions

View File

@ -570,16 +570,16 @@ class Chat:
else: else:
link = 'http://%s.wikipedia.org/wiki/%s'\ link = 'http://%s.wikipedia.org/wiki/%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)
submenu.append(item) submenu.append(item)
item = gtk.MenuItem(_('Look it up in _dictionary')) item = gtk.MenuItem(_('Look it up in _Dictionary'))
link = gajim.config.get('dictionary_url') + self.selected_phrase link = gajim.config.get('dictionary_url') + self.selected_phrase
item.connect('activate', self.visit_url_from_menuitem, link) item.connect('activate', self.visit_url_from_menuitem, link)
submenu.append(item) submenu.append(item)
item = gtk.MenuItem(_('Web _search for it')) item = gtk.MenuItem(_('Web _Search for it'))
gajim.config.get('search_engine') gajim.config.get('search_engine')
link = gajim.config.get('search_engine') + self.selected_phrase +\ link = gajim.config.get('search_engine') + self.selected_phrase +\
'&sourceid=gajim' '&sourceid=gajim'

View File

@ -1082,16 +1082,16 @@ class AccountModificationWindow:
if gajim.connections.has_key(self.account): if gajim.connections.has_key(self.account):
if name != self.account and \ if name != self.account and \
gajim.connections[self.account].connected != 0: gajim.connections[self.account].connected != 0:
dialogs.ErrorDialog(_('You are connected to the server'), dialogs.ErrorDialog(_('You are currently connected to the server'),
_('To change the account name, it must be disconnected.')).get_response() _('To change the account name, you must be disconnected.')).get_response()
return return
if (name == ''): if (name == ''):
dialogs.ErrorDialog(_('Invalid account name'), dialogs.ErrorDialog(_('Invalid account name'),
_('Account names cannot be empty.')).get_response() _('Account name cannot be empty.')).get_response()
return return
if name.find(' ') != -1: if name.find(' ') != -1:
dialogs.ErrorDialog(_('Invalid account name'), dialogs.ErrorDialog(_('Invalid account name'),
_('Account names cannot contain spaces.')).get_response() _('Account name cannot contain spaces.')).get_response()
return return
jid = self.xml.get_widget('jid_entry').get_text() jid = self.xml.get_widget('jid_entry').get_text()
if jid == '' or jid.count('@') != 1: if jid == '' or jid.count('@') != 1:
@ -1809,7 +1809,7 @@ class ManageEmoticonsWindow:
if not iter: if not iter:
return return
file = model.get_value(iter, 1) file = model.get_value(iter, 1)
dialog = gtk.FileChooserDialog(_('Choose image'), None, dialog = gtk.FileChooserDialog(_('Choose Ιmage'), None,
gtk.FILE_CHOOSER_ACTION_OPEN, gtk.FILE_CHOOSER_ACTION_OPEN,
(gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL, (gtk.STOCK_CANCEL, gtk.RESPONSE_CANCEL,
gtk.STOCK_OPEN, gtk.RESPONSE_OK)) gtk.STOCK_OPEN, gtk.RESPONSE_OK))