From 2d6fe7a8b57aa14107e2377fea2755326bb44dae Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Oct 2022 15:58:02 +0530 Subject: [PATCH] string changes --- manual/develop.rst | 2 +- src/calibre/gui2/dialogs/template_dialog.py | 2 +- src/calibre/gui2/preferences/template_functions.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/develop.rst b/manual/develop.rst index 3610c36be3..02f457d35c 100644 --- a/manual/develop.rst +++ b/manual/develop.rst @@ -33,7 +33,7 @@ fetching news. For more examples of plugins designed to add features to calibre, Code layout ^^^^^^^^^^^^^^ -All the calibre python code is in the ``calibre`` package. This package contains the following main sub-packages +All the calibre Python code is in the ``calibre`` package. This package contains the following main sub-packages * devices - All the device drivers. Just look through some of the built-in drivers to get an idea for how they work. diff --git a/src/calibre/gui2/dialogs/template_dialog.py b/src/calibre/gui2/dialogs/template_dialog.py index 15bdf4115b..a158f6a982 100644 --- a/src/calibre/gui2/dialogs/template_dialog.py +++ b/src/calibre/gui2/dialogs/template_dialog.py @@ -827,7 +827,7 @@ def evaluate(book, context): return (_('User defined Python template function') if longform else _('User function')) elif self.all_functions[name].object_type is StoredObjectType.StoredPythonTemplate: - return (_('Stored user defined python template') if longform else _('Stored template')) + return (_('Stored user defined Python template') if longform else _('Stored template')) return (_('Stored user defined GPM template') if longform else _('Stored template')) def function_changed(self, toWhat): diff --git a/src/calibre/gui2/preferences/template_functions.py b/src/calibre/gui2/preferences/template_functions.py index 15f510fbd6..e83504c992 100644 --- a/src/calibre/gui2/preferences/template_functions.py +++ b/src/calibre/gui2/preferences/template_functions.py @@ -91,7 +91,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): either begin with the text '{0}' or be {1}. You retrieve arguments passed to a GPM stored template using the '{2}()' template function, as in '{2}(var1, var2, ...)'. The passed arguments are copied to the named - variables. Arguments passed to a python template are in the '{2}' + variables. Arguments passed to a Python template are in the '{2}' parameter. Arguments are always strings.

For example, this stored template checks if any items are in a