mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
string changes
This commit is contained in:
parent
5893eea459
commit
2d6fe7a8b5
@ -33,7 +33,7 @@ fetching news. For more examples of plugins designed to add features to calibre,
|
|||||||
Code layout
|
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.
|
* devices - All the device drivers. Just look through some of the built-in drivers to get an idea for how they work.
|
||||||
|
|
||||||
|
@ -827,7 +827,7 @@ def evaluate(book, context):
|
|||||||
return (_('User defined Python template function') if longform else
|
return (_('User defined Python template function') if longform else
|
||||||
_('User function'))
|
_('User function'))
|
||||||
elif self.all_functions[name].object_type is StoredObjectType.StoredPythonTemplate:
|
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'))
|
return (_('Stored user defined GPM template') if longform else _('Stored template'))
|
||||||
|
|
||||||
def function_changed(self, toWhat):
|
def function_changed(self, toWhat):
|
||||||
|
@ -91,7 +91,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
|||||||
either begin with the text '{0}' or be {1}. You retrieve arguments
|
either begin with the text '{0}' or be {1}. You retrieve arguments
|
||||||
passed to a GPM stored template using the '{2}()' template function, as
|
passed to a GPM stored template using the '{2}()' template function, as
|
||||||
in '{2}(var1, var2, ...)'. The passed arguments are copied to the named
|
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.</p>
|
parameter. Arguments are always strings.</p>
|
||||||
|
|
||||||
<p>For example, this stored template checks if any items are in a
|
<p>For example, this stored template checks if any items are in a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user