Commit 378d5200 authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist

Replace Disconnect in group chat menu with Leave

parent 2069e1cf
......@@ -2289,8 +2289,8 @@ def on_cancel(is_checked):
NewConfirmationCheckDialog(
_('Leave Group Chat'),
_('Are you sure you want to leave this group chat?'),
_('If you close this window, you will be disconnected '
'from \'%s\'.') % self.name,
_('If you close this window, you will leave '
'\'%s\'.') % self.name,
_('_Do not ask me again'),
[DialogButton.make('Cancel',
callback=on_cancel),
......
......@@ -598,7 +598,7 @@ def get_groupchat_menu(control_id, account, jid):
('win.request-voice-', _('Request Voice')),
('win.execute-command-', _('Execute command')),
('app.browse-history', _('History')),
('win.disconnect-', _('Disconnect')),
('win.disconnect-', _('Leave')),
]
def build_menu(preset):
......
......@@ -2249,7 +2249,7 @@ def on_response(message, pep_dict):
_('Disconnect for Invisibility'),
_('You are participating in one or more group chats'),
_('Changing your status to invisible will result in '
'disconnection from those group chats.\n'
'you leaving those group chats.\n'
'Are you sure you want to go invisible?'),
[DialogButton.make('Cancel'),
DialogButton.make('Remove',
......@@ -3468,7 +3468,7 @@ def on_cancel():
_('Disconnect for Invisibility'),
_('You are participating in one or more group chats'),
_('Changing your status to invisible will result in '
'disconnection from those group chats.\n'
'you leaving those group chats.\n'
'Are you sure you want to go invisible?'),
[DialogButton.make('Cancel',
callback=on_cancel),
......@@ -5201,7 +5201,7 @@ def make_groupchat_menu(self, event, titer):
account)
menu.append(connect_menuitem)
disconnect_menuitem = Gtk.MenuItem.new_with_mnemonic(_(
'_Disconnect'))
'_Leave'))
disconnect_menuitem.connect('activate', self.on_disconnect, jid,
account)
menu.append(disconnect_menuitem)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment