diff --git a/gajim/common/jingle_rtp.py b/gajim/common/jingle_rtp.py index d392ca5e748027f16c8cca951425fc351e48dc24..41988afbd7510fe679b4a386ccbcd0d06a221256 100644 --- a/gajim/common/jingle_rtp.py +++ b/gajim/common/jingle_rtp.py @@ -130,11 +130,13 @@ def make_bin_from_config(self, config_key, pipeline, text): None, conn=self.session.connection, level='error', - pri_txt=_(f'{text.capitalize()} configuration error'), - sec_txt=_( - f'Couldn’t set up {text}. Check your configuration.\n' - f'Pipeline was:\n{pipeline}\n' - f'Error was:\n{err}'))) + pri_txt=_(f'{text} configuration error'), + sec_txt=_('Couldn’t set up %(text)s. Check your ' + 'configuration.\nPipeline:\n%(pipeline)s\n' + 'Error:\n%(error)s') % { + 'text': text, + 'pipeline': pipeline, + 'error': str(err)})) raise JingleContentSetupException def add_remote_candidates(self, candidates): diff --git a/gajim/gui_interface.py b/gajim/gui_interface.py index 505ba193d3f1c03c40d107f7f067571f7642a74b..fe596fe68bbda19dc15a9c7d679fdff2203192fe 100644 --- a/gajim/gui_interface.py +++ b/gajim/gui_interface.py @@ -924,7 +924,8 @@ def handle_event_jingle_incoming(self, event): if helpers.allow_showing_notification(account): heading = _('Incoming Call') - text = _(f'{app.get_name_from_jid(account, event.jid)} is calling') + contact = app.get_name_from_jid(account, event.jid) + text = _(f'{contact} is calling') app.notification.popup( heading, event.fjid,