mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add descriptions to builtin plugins
This commit is contained in:
parent
36b4df5232
commit
9887c22207
@ -762,99 +762,127 @@ plugins += input_profiles + output_profiles
|
|||||||
class ActionAdd(InterfaceActionBase):
|
class ActionAdd(InterfaceActionBase):
|
||||||
name = 'Add Books'
|
name = 'Add Books'
|
||||||
actual_plugin = 'calibre.gui2.actions.add:AddAction'
|
actual_plugin = 'calibre.gui2.actions.add:AddAction'
|
||||||
|
description = _('Add books to calibre or the connected device')
|
||||||
|
|
||||||
class ActionFetchAnnotations(InterfaceActionBase):
|
class ActionFetchAnnotations(InterfaceActionBase):
|
||||||
name = 'Fetch Annotations'
|
name = 'Fetch Annotations'
|
||||||
actual_plugin = 'calibre.gui2.actions.annotate:FetchAnnotationsAction'
|
actual_plugin = 'calibre.gui2.actions.annotate:FetchAnnotationsAction'
|
||||||
|
description = _('Fetch annotations from a connected Kindle (experimental)')
|
||||||
|
|
||||||
class ActionGenerateCatalog(InterfaceActionBase):
|
class ActionGenerateCatalog(InterfaceActionBase):
|
||||||
name = 'Generate Catalog'
|
name = 'Generate Catalog'
|
||||||
actual_plugin = 'calibre.gui2.actions.catalog:GenerateCatalogAction'
|
actual_plugin = 'calibre.gui2.actions.catalog:GenerateCatalogAction'
|
||||||
|
description = _('Generate a catalog of the books in your calibre library')
|
||||||
|
|
||||||
class ActionConvert(InterfaceActionBase):
|
class ActionConvert(InterfaceActionBase):
|
||||||
name = 'Convert Books'
|
name = 'Convert Books'
|
||||||
actual_plugin = 'calibre.gui2.actions.convert:ConvertAction'
|
actual_plugin = 'calibre.gui2.actions.convert:ConvertAction'
|
||||||
|
description = _('Convert books to various ebook formats')
|
||||||
|
|
||||||
class ActionDelete(InterfaceActionBase):
|
class ActionDelete(InterfaceActionBase):
|
||||||
name = 'Remove Books'
|
name = 'Remove Books'
|
||||||
actual_plugin = 'calibre.gui2.actions.delete:DeleteAction'
|
actual_plugin = 'calibre.gui2.actions.delete:DeleteAction'
|
||||||
|
description = _('Delete books from your calibre library or connected device')
|
||||||
|
|
||||||
class ActionEditMetadata(InterfaceActionBase):
|
class ActionEditMetadata(InterfaceActionBase):
|
||||||
name = 'Edit Metadata'
|
name = 'Edit Metadata'
|
||||||
actual_plugin = 'calibre.gui2.actions.edit_metadata:EditMetadataAction'
|
actual_plugin = 'calibre.gui2.actions.edit_metadata:EditMetadataAction'
|
||||||
|
description = _('Edit the metadata of books in your calibre library')
|
||||||
|
|
||||||
class ActionView(InterfaceActionBase):
|
class ActionView(InterfaceActionBase):
|
||||||
name = 'View'
|
name = 'View'
|
||||||
actual_plugin = 'calibre.gui2.actions.view:ViewAction'
|
actual_plugin = 'calibre.gui2.actions.view:ViewAction'
|
||||||
|
description = _('Read books in your calibre library')
|
||||||
|
|
||||||
class ActionFetchNews(InterfaceActionBase):
|
class ActionFetchNews(InterfaceActionBase):
|
||||||
name = 'Fetch News'
|
name = 'Fetch News'
|
||||||
actual_plugin = 'calibre.gui2.actions.fetch_news:FetchNewsAction'
|
actual_plugin = 'calibre.gui2.actions.fetch_news:FetchNewsAction'
|
||||||
|
description = _('Download news from the internet in ebook form')
|
||||||
|
|
||||||
class ActionSaveToDisk(InterfaceActionBase):
|
class ActionSaveToDisk(InterfaceActionBase):
|
||||||
name = 'Save To Disk'
|
name = 'Save To Disk'
|
||||||
actual_plugin = 'calibre.gui2.actions.save_to_disk:SaveToDiskAction'
|
actual_plugin = 'calibre.gui2.actions.save_to_disk:SaveToDiskAction'
|
||||||
|
description = _('Export books from your calibre library to the hard disk')
|
||||||
|
|
||||||
class ActionShowBookDetails(InterfaceActionBase):
|
class ActionShowBookDetails(InterfaceActionBase):
|
||||||
name = 'Show Book Details'
|
name = 'Show Book Details'
|
||||||
actual_plugin = 'calibre.gui2.actions.show_book_details:ShowBookDetailsAction'
|
actual_plugin = 'calibre.gui2.actions.show_book_details:ShowBookDetailsAction'
|
||||||
|
description = _('Show book details in a separate popup')
|
||||||
|
|
||||||
class ActionRestart(InterfaceActionBase):
|
class ActionRestart(InterfaceActionBase):
|
||||||
name = 'Restart'
|
name = 'Restart'
|
||||||
actual_plugin = 'calibre.gui2.actions.restart:RestartAction'
|
actual_plugin = 'calibre.gui2.actions.restart:RestartAction'
|
||||||
|
description = _('Restart calibre')
|
||||||
|
|
||||||
class ActionOpenFolder(InterfaceActionBase):
|
class ActionOpenFolder(InterfaceActionBase):
|
||||||
name = 'Open Folder'
|
name = 'Open Folder'
|
||||||
actual_plugin = 'calibre.gui2.actions.open:OpenFolderAction'
|
actual_plugin = 'calibre.gui2.actions.open:OpenFolderAction'
|
||||||
|
description = _('Open the folder that contains the book files in your'
|
||||||
|
' calibre library')
|
||||||
|
|
||||||
class ActionSendToDevice(InterfaceActionBase):
|
class ActionSendToDevice(InterfaceActionBase):
|
||||||
name = 'Send To Device'
|
name = 'Send To Device'
|
||||||
actual_plugin = 'calibre.gui2.actions.device:SendToDeviceAction'
|
actual_plugin = 'calibre.gui2.actions.device:SendToDeviceAction'
|
||||||
|
description = _('Send books to the connected device')
|
||||||
|
|
||||||
class ActionConnectShare(InterfaceActionBase):
|
class ActionConnectShare(InterfaceActionBase):
|
||||||
name = 'Connect Share'
|
name = 'Connect Share'
|
||||||
actual_plugin = 'calibre.gui2.actions.device:ConnectShareAction'
|
actual_plugin = 'calibre.gui2.actions.device:ConnectShareAction'
|
||||||
|
description = _('Send books via email or the web also connect to iTunes or'
|
||||||
|
' folders on your computer as if they are devices')
|
||||||
|
|
||||||
class ActionHelp(InterfaceActionBase):
|
class ActionHelp(InterfaceActionBase):
|
||||||
name = 'Help'
|
name = 'Help'
|
||||||
actual_plugin = 'calibre.gui2.actions.help:HelpAction'
|
actual_plugin = 'calibre.gui2.actions.help:HelpAction'
|
||||||
|
description = _('Browse the calibre User Manual')
|
||||||
|
|
||||||
class ActionPreferences(InterfaceActionBase):
|
class ActionPreferences(InterfaceActionBase):
|
||||||
name = 'Preferences'
|
name = 'Preferences'
|
||||||
actual_plugin = 'calibre.gui2.actions.preferences:PreferencesAction'
|
actual_plugin = 'calibre.gui2.actions.preferences:PreferencesAction'
|
||||||
|
description = _('Customize calibre')
|
||||||
|
|
||||||
class ActionSimilarBooks(InterfaceActionBase):
|
class ActionSimilarBooks(InterfaceActionBase):
|
||||||
name = 'Similar Books'
|
name = 'Similar Books'
|
||||||
actual_plugin = 'calibre.gui2.actions.similar_books:SimilarBooksAction'
|
actual_plugin = 'calibre.gui2.actions.similar_books:SimilarBooksAction'
|
||||||
|
description = _('Easily find books similar to the currently selected one')
|
||||||
|
|
||||||
class ActionChooseLibrary(InterfaceActionBase):
|
class ActionChooseLibrary(InterfaceActionBase):
|
||||||
name = 'Choose Library'
|
name = 'Choose Library'
|
||||||
actual_plugin = 'calibre.gui2.actions.choose_library:ChooseLibraryAction'
|
actual_plugin = 'calibre.gui2.actions.choose_library:ChooseLibraryAction'
|
||||||
|
description = _('Switch between different calibre libraries and perform'
|
||||||
|
' maintenance on them')
|
||||||
|
|
||||||
class ActionAddToLibrary(InterfaceActionBase):
|
class ActionAddToLibrary(InterfaceActionBase):
|
||||||
name = 'Add To Library'
|
name = 'Add To Library'
|
||||||
actual_plugin = 'calibre.gui2.actions.add_to_library:AddToLibraryAction'
|
actual_plugin = 'calibre.gui2.actions.add_to_library:AddToLibraryAction'
|
||||||
|
description = _('Copy books from the devce to your calibre library')
|
||||||
|
|
||||||
class ActionEditCollections(InterfaceActionBase):
|
class ActionEditCollections(InterfaceActionBase):
|
||||||
name = 'Edit Collections'
|
name = 'Edit Collections'
|
||||||
actual_plugin = 'calibre.gui2.actions.edit_collections:EditCollectionsAction'
|
actual_plugin = 'calibre.gui2.actions.edit_collections:EditCollectionsAction'
|
||||||
|
description = _('Edit the collections in which books are placed on your device')
|
||||||
|
|
||||||
class ActionCopyToLibrary(InterfaceActionBase):
|
class ActionCopyToLibrary(InterfaceActionBase):
|
||||||
name = 'Copy To Library'
|
name = 'Copy To Library'
|
||||||
actual_plugin = 'calibre.gui2.actions.copy_to_library:CopyToLibraryAction'
|
actual_plugin = 'calibre.gui2.actions.copy_to_library:CopyToLibraryAction'
|
||||||
|
description = _('Copy a book from one calibre library to another')
|
||||||
|
|
||||||
class ActionTweakEpub(InterfaceActionBase):
|
class ActionTweakEpub(InterfaceActionBase):
|
||||||
name = 'Tweak ePub'
|
name = 'Tweak ePub'
|
||||||
actual_plugin = 'calibre.gui2.actions.tweak_epub:TweakEpubAction'
|
actual_plugin = 'calibre.gui2.actions.tweak_epub:TweakEpubAction'
|
||||||
|
description = _('Make small twekas to epub files in your calibre library')
|
||||||
|
|
||||||
class ActionNextMatch(InterfaceActionBase):
|
class ActionNextMatch(InterfaceActionBase):
|
||||||
name = 'Next Match'
|
name = 'Next Match'
|
||||||
actual_plugin = 'calibre.gui2.actions.next_match:NextMatchAction'
|
actual_plugin = 'calibre.gui2.actions.next_match:NextMatchAction'
|
||||||
|
description = _('Find the next or previous match when searching in '
|
||||||
|
'your calibre library in highlight mode')
|
||||||
|
|
||||||
class ActionStore(InterfaceActionBase):
|
class ActionStore(InterfaceActionBase):
|
||||||
name = 'Store'
|
name = 'Store'
|
||||||
author = 'John Schember'
|
author = 'John Schember'
|
||||||
actual_plugin = 'calibre.gui2.actions.store:StoreAction'
|
actual_plugin = 'calibre.gui2.actions.store:StoreAction'
|
||||||
|
description = _('Search for books from different book sellers')
|
||||||
|
|
||||||
def customization_help(self, gui=False):
|
def customization_help(self, gui=False):
|
||||||
return 'Customize the behavior of the store search.'
|
return 'Customize the behavior of the store search.'
|
||||||
@ -870,7 +898,7 @@ class ActionStore(InterfaceActionBase):
|
|||||||
class ActionPluginUpdater(InterfaceActionBase):
|
class ActionPluginUpdater(InterfaceActionBase):
|
||||||
name = 'Plugin Updater'
|
name = 'Plugin Updater'
|
||||||
author = 'Grant Drake'
|
author = 'Grant Drake'
|
||||||
description = 'Queries the MobileRead forums for updates to plugins to install'
|
description = _('Get new calibre plugins or update your existing ones')
|
||||||
actual_plugin = 'calibre.gui2.actions.plugin_updates:PluginUpdaterAction'
|
actual_plugin = 'calibre.gui2.actions.plugin_updates:PluginUpdaterAction'
|
||||||
|
|
||||||
plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
plugins += [ActionAdd, ActionFetchAnnotations, ActionGenerateCatalog,
|
||||||
|
@ -259,6 +259,10 @@ class OutputFormatPlugin(Plugin):
|
|||||||
#: (option_name, recommended_value, recommendation_level)
|
#: (option_name, recommended_value, recommendation_level)
|
||||||
recommendations = set([])
|
recommendations = set([])
|
||||||
|
|
||||||
|
@property
|
||||||
|
def description(self):
|
||||||
|
return _('Convert ebooks to the %s format'%self.file_type)
|
||||||
|
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
Plugin.__init__(self, *args)
|
Plugin.__init__(self, *args)
|
||||||
self.report_progress = DummyReporter()
|
self.report_progress = DummyReporter()
|
||||||
|
@ -26,6 +26,10 @@ class Epubcheck(ePubFixer):
|
|||||||
'significant changes to your epub, complain to the epubcheck '
|
'significant changes to your epub, complain to the epubcheck '
|
||||||
'project.')
|
'project.')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def description(self):
|
||||||
|
return self.long_description
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fix_name(self):
|
def fix_name(self):
|
||||||
return 'epubcheck'
|
return 'epubcheck'
|
||||||
|
@ -22,6 +22,10 @@ class Unmanifested(ePubFixer):
|
|||||||
'the manifest or delete them as specified by the '
|
'the manifest or delete them as specified by the '
|
||||||
'delete unmanifested option.')
|
'delete unmanifested option.')
|
||||||
|
|
||||||
|
@property
|
||||||
|
def description(self):
|
||||||
|
return self.long_description
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def fix_name(self):
|
def fix_name(self):
|
||||||
return 'unmanifested'
|
return 'unmanifested'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user