diff --git a/gajim/groupchat_control.py b/gajim/groupchat_control.py index c07cbba5fd4ff8642685167524f557fe86a29dd6..8327ab9a8fb45ef6c8fd75c2596f3202c7330e11 100644 --- a/gajim/groupchat_control.py +++ b/gajim/groupchat_control.py @@ -828,8 +828,8 @@ def on_approve(): NewConfirmationDialog( _('Voice Request'), _('Voice Request'), - _('<b>%(nick)s</b> from <b>%(room_name)s</b> requests voice') % ( - event.voice_request.nick, self.room_name), + _('<b>%(nick)s</b> from <b>%(room_name)s</b> requests voice') % { + 'nick': event.voice_request.nick, 'room_name': self.room_name}, [DialogButton.make('Cancel'), DialogButton.make('Accept', text=_('_Approve'), diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 1436e162a17aa020ac47902968d0989b5aa7a7f1..a189ac32b8502421ff35f3762807ab12eff0c7cb 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -352,7 +352,8 @@ def _remove(): jid = contact.jid NewConfirmationDialog( _('Subscription Removed'), - _('%(name)s (%(jid)s) has removed subscription from you') % (name, jid), + _('%(name)s (%(jid)s) has removed subscription from you') % { + 'name': name, 'jid': jid}, _('You will always see this contact as offline.\n' 'Do you want to remove them from your contact list?'), [DialogButton.make('Cancel',