Fix translated string not being used in a couple of places

This commit is contained in:
Kovid Goyal 2020-07-25 21:17:36 +05:30
parent bc90617eec
commit 1558b858a6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1276,7 +1276,7 @@ class Boss(QObject):
if not syntax: if not syntax:
return error_dialog( return error_dialog(
self.gui, _('Unsupported file format'), self.gui, _('Unsupported file format'),
_('Editing files of type %s is not supported' % mt), show=True) _('Editing files of type %s is not supported') % mt, show=True)
editor = self.edit_file(name, syntax) editor = self.edit_file(name, syntax)
if anchor and editor is not None: if anchor and editor is not None:
if editor.go_to_anchor(anchor): if editor.go_to_anchor(anchor):
@ -1603,7 +1603,7 @@ class Boss(QObject):
if not syntax: if not syntax:
return error_dialog( return error_dialog(
self.gui, _('Unsupported file format'), self.gui, _('Unsupported file format'),
_('Editing files of type %s is not supported' % mime), show=True) _('Editing files of type %s is not supported') % mime, show=True)
return self.edit_file(name, syntax) return self.edit_file(name, syntax)
def edit_next_file(self, backwards=False): def edit_next_file(self, backwards=False):