fix strings and fix comments

This commit is contained in:
Nikos Kouremenos 2005-11-02 14:54:25 +00:00
parent 73a9a282ba
commit f7a1f8fa64
1 changed files with 6 additions and 4 deletions

View File

@ -330,7 +330,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
self.group_comboboxentry.append_text(g) self.group_comboboxentry.append_text(g)
if not jid_agents: if not jid_agents:
# There are no transports, just hide the protocol combobox # There are no transports, so hide the protocol combobox and label
self.protocol_combobox.hide() self.protocol_combobox.hide()
self.protocol_combobox.set_no_show_all(True) self.protocol_combobox.set_no_show_all(True)
protocol_label = self.xml.get_widget('protocol_label') protocol_label = self.xml.get_widget('protocol_label')
@ -354,9 +354,11 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
nickname = self.nickname_entry.get_text().decode('utf-8') nickname = self.nickname_entry.get_text().decode('utf-8')
if not jid: if not jid:
return return
if jid.find('@') < 0: if jid.find('@') < 0:
ErrorDialog(_('Invalid user name'), pritext = _('Invalid User ID')
_('Contact names must be of the form "user@servername".')).get_response() sectext = _('Jabber ID must be of the form "user@servername".')
ErrorDialog(pritext, sectext).get_response()
return return
# check if contact is already in roster (user@server == UsEr@server) # check if contact is already in roster (user@server == UsEr@server)
@ -367,7 +369,7 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
break break
if already_in: if already_in:
ErrorDialog(_('Contact already in roster'), ErrorDialog(_('Contact already in roster'),
_('The contact is already registered in your roster.')).get_response() _('The contact is already listed in your roster.')).get_response()
return return
message_buffer = self.xml.get_widget('message_textview').get_buffer() message_buffer = self.xml.get_widget('message_textview').get_buffer()