]> xmof Git - DeDRM.git/commitdiff
Obok.py/action.py: invoke _() only once
authorprecondition <57645186+precondition@users.noreply.github.com>
Fri, 11 Aug 2023 15:48:42 +0000 (17:48 +0200)
committernoDRM <no_drm123@protonmail.com>
Sun, 10 Nov 2024 13:11:28 +0000 (13:11 +0000)
Obok_plugin/action.py

index af656ec1713eaa2b9ca050b42c825a8388e2a2c0..36562af5c86f54422a94a1c87ea81b38bab275b6 100644 (file)
@@ -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: