From: precondition <57645186+precondition@users.noreply.github.com> Date: Fri, 11 Aug 2023 15:48:42 +0000 (+0200) Subject: Obok.py/action.py: invoke _() only once X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=2cd2792306d4e10632856e0b5803fb63c835a236;p=DeDRM.git Obok.py/action.py: invoke _() only once --- diff --git a/Obok_plugin/action.py b/Obok_plugin/action.py index af656ec..36562af 100644 --- a/Obok_plugin/action.py +++ b/Obok_plugin/action.py @@ -377,7 +377,7 @@ class InterfacePluginAction(InterfaceAction): try: zin = zipfile.ZipFile(book.filename, 'r') except FileNotFoundError: - print(_("File not found. Make sure that the ebook has been properly downloaded in the Kobo app. ("), book.filename, _(")")) + print (_('{0} - File "{1}" not found. Make sure the eBook has been properly downloaded in the Kobo app.').format(PLUGIN_NAME, book.filename)) return result #print ('Kobo library filename: {0}'.format(book.filename)) for userkey in self.userkeys: