move "Do not ask me again" accelerator to D. Fixes #5755

This commit is contained in:
Yann Leboulanger 2010-05-21 09:38:09 +02:00
parent e9e54f2c9f
commit b7d6441846
4 changed files with 9 additions and 9 deletions

View file

@ -1723,7 +1723,7 @@ class GroupchatControl(ChatControlBase):
'from this group chat.') 'from this group chat.')
dialogs.ConfirmationDialogCheck(pritext, sectext, dialogs.ConfirmationDialogCheck(pritext, sectext,
_('Do _not ask me again'), on_response_ok=on_ok, _('_Do not ask me again'), on_response_ok=on_ok,
on_response_cancel=on_cancel) on_response_cancel=on_cancel)
return return

View file

@ -1211,7 +1211,7 @@ class Interface:
dialogs.YesNoDialog(_('GPG key not trusted'), _('The GPG key used to ' dialogs.YesNoDialog(_('GPG key not trusted'), _('The GPG key used to '
'encrypt this chat is not trusted. Do you really want to encrypt ' 'encrypt this chat is not trusted. Do you really want to encrypt '
'this message?'), checktext=_('Do _not ask me again'), 'this message?'), checktext=_('_Do not ask me again'),
on_response_yes=on_yes, on_response_no=on_no) on_response_yes=on_yes, on_response_no=on_no)
def handle_event_password_required(self, account, array): def handle_event_password_required(self, account, array):
@ -1983,7 +1983,7 @@ class Interface:
'connection. This means all your conversations will be ' 'connection. This means all your conversations will be '
'exchanged unencrypted. Are you sure you want to do that?') 'exchanged unencrypted. Are you sure you want to do that?')
checktext1 = _('Yes, I really want to connect insecurely') checktext1 = _('Yes, I really want to connect insecurely')
checktext2 = _('Do _not ask me again') checktext2 = _('_Do not ask me again')
if 'plain_connection' in self.instances[account]['online_dialog']: if 'plain_connection' in self.instances[account]['online_dialog']:
self.instances[account]['online_dialog']['plain_connection'].\ self.instances[account]['online_dialog']['plain_connection'].\
destroy() destroy()
@ -2020,7 +2020,7 @@ class Interface:
'connection. You should install PyOpenSSL to prevent that. Are you ' 'connection. You should install PyOpenSSL to prevent that. Are you '
'sure you want to do that?') 'sure you want to do that?')
checktext1 = _('Yes, I really want to connect insecurely') checktext1 = _('Yes, I really want to connect insecurely')
checktext2 = _('Do _not ask me again') checktext2 = _('_Do not ask me again')
if 'insecure_ssl' in self.instances[account]['online_dialog']: if 'insecure_ssl' in self.instances[account]['online_dialog']:
self.instances[account]['online_dialog']['insecure_ssl'].destroy() self.instances[account]['online_dialog']['insecure_ssl'].destroy()
self.instances[account]['online_dialog']['insecure_ssl'] = \ self.instances[account]['online_dialog']['insecure_ssl'] = \
@ -2055,7 +2055,7 @@ class Interface:
sectext = _('You are about to send your password unencrypted on an ' sectext = _('You are about to send your password unencrypted on an '
'insecure connection. Are you sure you want to do that?') 'insecure connection. Are you sure you want to do that?')
checktext1 = _('Yes, I really want to connect insecurely') checktext1 = _('Yes, I really want to connect insecurely')
checktext2 = _('Do _not ask me again') checktext2 = _('_Do not ask me again')
if 'insecure_password' in self.instances[account]['online_dialog']: if 'insecure_password' in self.instances[account]['online_dialog']:
self.instances[account]['online_dialog']['insecure_password'].\ self.instances[account]['online_dialog']['insecure_password'].\
destroy() destroy()

View file

@ -219,7 +219,7 @@ class MessageWindow(object):
dialogs.YesNoDialog( dialogs.YesNoDialog(
_('You are going to close several tabs'), _('You are going to close several tabs'),
_('Do you really want to close them all?'), _('Do you really want to close them all?'),
checktext=_('Do _not ask me again'), on_response_yes=on_yes1) checktext=_('_Do not ask me again'), on_response_yes=on_yes1)
return True return True
def on_yes(ctrl): def on_yes(ctrl):

View file

@ -2733,7 +2733,7 @@ class RosterWindow:
sectext = _('This contact will see you offline and you will not ' sectext = _('This contact will see you offline and you will not '
'receive messages he will send you.') 'receive messages he will send you.')
dialogs.ConfirmationDialogCheck(pritext, sectext, dialogs.ConfirmationDialogCheck(pritext, sectext,
_('Do _not ask me again'), on_response_ok=_block_it) _('_Do not ask me again'), on_response_ok=_block_it)
def on_unblock(self, widget, list_, group=None): def on_unblock(self, widget, list_, group=None):
""" """
@ -3393,7 +3393,7 @@ class RosterWindow:
'but only until you change your status. Then he or she will see ' 'but only until you change your status. Then he or she will see '
'your global status.') % {'status': show} 'your global status.') % {'status': show}
dialogs.ConfirmationDialogCheck(pritext, sectext, dialogs.ConfirmationDialogCheck(pritext, sectext,
_('Do _not ask me again'), on_response_ok=send_it) _('_Do not ask me again'), on_response_ok=send_it)
def on_status_combobox_changed(self, widget): def on_status_combobox_changed(self, widget):
""" """
@ -4117,7 +4117,7 @@ class RosterWindow:
'line. Generally it is used when the same person has several ' 'line. Generally it is used when the same person has several '
'Jabber accounts or transport accounts.') 'Jabber accounts or transport accounts.')
dlg = dialogs.ConfirmationDialogCheck(pritext, sectext, dlg = dialogs.ConfirmationDialogCheck(pritext, sectext,
_('Do _not ask me again'), on_response_ok=merge_contacts) _('_Do not ask me again'), on_response_ok=merge_contacts)
if not confirm_metacontacts: # First time we see this window if not confirm_metacontacts: # First time we see this window
dlg.checkbutton.set_active(True) dlg.checkbutton.set_active(True)