From c851eaf67a54635f0da74d86cdc193064ec5240c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 4 Mar 2021 08:22:46 +0530 Subject: [PATCH] Fix #1917675 [[Enhancement] Strings not translatable in Plugins screen](https://bugs.launchpad.net/calibre/+bug/1917675) --- src/calibre/ebooks/conversion/plugins/azw4_input.py | 2 +- src/calibre/ebooks/conversion/plugins/chm_input.py | 2 +- src/calibre/ebooks/conversion/plugins/comic_input.py | 2 +- src/calibre/ebooks/conversion/plugins/djvu_input.py | 2 +- src/calibre/ebooks/conversion/plugins/epub_input.py | 2 +- src/calibre/ebooks/conversion/plugins/fb2_input.py | 2 +- src/calibre/ebooks/conversion/plugins/html_input.py | 2 +- src/calibre/ebooks/conversion/plugins/htmlz_input.py | 2 +- src/calibre/ebooks/conversion/plugins/lit_input.py | 2 +- src/calibre/ebooks/conversion/plugins/lrf_input.py | 2 +- src/calibre/ebooks/conversion/plugins/mobi_input.py | 2 +- src/calibre/ebooks/conversion/plugins/odt_input.py | 2 +- src/calibre/ebooks/conversion/plugins/pdb_input.py | 2 +- src/calibre/ebooks/conversion/plugins/pdf_input.py | 2 +- src/calibre/ebooks/conversion/plugins/pml_input.py | 2 +- src/calibre/ebooks/conversion/plugins/rb_input.py | 2 +- src/calibre/ebooks/conversion/plugins/rtf_input.py | 2 +- src/calibre/ebooks/conversion/plugins/snb_input.py | 2 +- src/calibre/ebooks/conversion/plugins/tcr_input.py | 2 +- src/calibre/ebooks/conversion/plugins/txt_input.py | 2 +- src/calibre/library/catalogs/bibtex.py | 2 +- src/calibre/library/catalogs/csv_xml.py | 2 +- src/calibre/library/catalogs/epub_mobi.py | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/azw4_input.py b/src/calibre/ebooks/conversion/plugins/azw4_input.py index c381e9809c..0c31739ba3 100644 --- a/src/calibre/ebooks/conversion/plugins/azw4_input.py +++ b/src/calibre/ebooks/conversion/plugins/azw4_input.py @@ -13,7 +13,7 @@ class AZW4Input(InputFormatPlugin): name = 'AZW4 Input' author = 'John Schember' - description = 'Convert AZW4 to HTML' + description = _('Convert AZW4 to HTML') file_types = {'azw4'} commit_name = 'azw4_input' diff --git a/src/calibre/ebooks/conversion/plugins/chm_input.py b/src/calibre/ebooks/conversion/plugins/chm_input.py index 7ba0c601a4..dab7b32a48 100644 --- a/src/calibre/ebooks/conversion/plugins/chm_input.py +++ b/src/calibre/ebooks/conversion/plugins/chm_input.py @@ -17,7 +17,7 @@ class CHMInput(InputFormatPlugin): name = 'CHM Input' author = 'Kovid Goyal and Alex Bramley' - description = 'Convert CHM files to OEB' + description = _('Convert CHM files to OEB') file_types = {'chm'} commit_name = 'chm_input' diff --git a/src/calibre/ebooks/conversion/plugins/comic_input.py b/src/calibre/ebooks/conversion/plugins/comic_input.py index 0241f73a9f..2983caa511 100644 --- a/src/calibre/ebooks/conversion/plugins/comic_input.py +++ b/src/calibre/ebooks/conversion/plugins/comic_input.py @@ -20,7 +20,7 @@ class ComicInput(InputFormatPlugin): name = 'Comic Input' author = 'Kovid Goyal' - description = 'Optimize comic files (.cbz, .cbr, .cbc) for viewing on portable devices' + description = _('Optimize comic files (.cbz, .cbr, .cbc) for viewing on portable devices') file_types = {'cbz', 'cbr', 'cb7', 'cbc'} is_image_collection = True commit_name = 'comic_input' diff --git a/src/calibre/ebooks/conversion/plugins/djvu_input.py b/src/calibre/ebooks/conversion/plugins/djvu_input.py index f3f0b132f2..ee28db18cc 100644 --- a/src/calibre/ebooks/conversion/plugins/djvu_input.py +++ b/src/calibre/ebooks/conversion/plugins/djvu_input.py @@ -16,7 +16,7 @@ class DJVUInput(InputFormatPlugin): name = 'DJVU Input' author = 'Anthon van der Neut' - description = 'Convert OCR-ed DJVU files (.djvu) to HTML' + description = _('Convert OCR-ed DJVU files (.djvu) to HTML') file_types = {'djvu', 'djv'} commit_name = 'djvu_input' diff --git a/src/calibre/ebooks/conversion/plugins/epub_input.py b/src/calibre/ebooks/conversion/plugins/epub_input.py index 1ad6d8d290..7d5bf6cca0 100644 --- a/src/calibre/ebooks/conversion/plugins/epub_input.py +++ b/src/calibre/ebooks/conversion/plugins/epub_input.py @@ -33,7 +33,7 @@ class EPUBInput(InputFormatPlugin): name = 'EPUB Input' author = 'Kovid Goyal' - description = 'Convert EPUB files (.epub) to HTML' + description = _('Convert EPUB files (.epub) to HTML') file_types = {'epub'} output_encoding = None commit_name = 'epub_input' diff --git a/src/calibre/ebooks/conversion/plugins/fb2_input.py b/src/calibre/ebooks/conversion/plugins/fb2_input.py index 3a63a91b4b..76d7f62633 100644 --- a/src/calibre/ebooks/conversion/plugins/fb2_input.py +++ b/src/calibre/ebooks/conversion/plugins/fb2_input.py @@ -19,7 +19,7 @@ class FB2Input(InputFormatPlugin): name = 'FB2 Input' author = 'Anatoly Shipitsin' - description = 'Convert FB2 and FBZ files to HTML' + description = _('Convert FB2 and FBZ files to HTML') file_types = {'fb2', 'fbz'} commit_name = 'fb2_input' diff --git a/src/calibre/ebooks/conversion/plugins/html_input.py b/src/calibre/ebooks/conversion/plugins/html_input.py index b9e8abc511..37e6078e2f 100644 --- a/src/calibre/ebooks/conversion/plugins/html_input.py +++ b/src/calibre/ebooks/conversion/plugins/html_input.py @@ -28,7 +28,7 @@ class HTMLInput(InputFormatPlugin): name = 'HTML Input' author = 'Kovid Goyal' - description = 'Convert HTML and OPF files to an OEB' + description = _('Convert HTML and OPF files to an OEB') file_types = {'opf', 'html', 'htm', 'xhtml', 'xhtm', 'shtm', 'shtml'} commit_name = 'html_input' diff --git a/src/calibre/ebooks/conversion/plugins/htmlz_input.py b/src/calibre/ebooks/conversion/plugins/htmlz_input.py index b773b925ee..7ad449a584 100644 --- a/src/calibre/ebooks/conversion/plugins/htmlz_input.py +++ b/src/calibre/ebooks/conversion/plugins/htmlz_input.py @@ -16,7 +16,7 @@ class HTMLZInput(InputFormatPlugin): name = 'HTLZ Input' author = 'John Schember' - description = 'Convert HTML files to HTML' + description = _('Convert HTMLZ files to HTML') file_types = {'htmlz'} commit_name = 'htmlz_input' diff --git a/src/calibre/ebooks/conversion/plugins/lit_input.py b/src/calibre/ebooks/conversion/plugins/lit_input.py index 16a3c376d5..3ad207c657 100644 --- a/src/calibre/ebooks/conversion/plugins/lit_input.py +++ b/src/calibre/ebooks/conversion/plugins/lit_input.py @@ -13,7 +13,7 @@ class LITInput(InputFormatPlugin): name = 'LIT Input' author = 'Marshall T. Vandegrift' - description = 'Convert LIT files to HTML' + description = _('Convert LIT files to HTML') file_types = {'lit'} commit_name = 'lit_input' diff --git a/src/calibre/ebooks/conversion/plugins/lrf_input.py b/src/calibre/ebooks/conversion/plugins/lrf_input.py index e3d5e6cc25..9bc61946bc 100644 --- a/src/calibre/ebooks/conversion/plugins/lrf_input.py +++ b/src/calibre/ebooks/conversion/plugins/lrf_input.py @@ -14,7 +14,7 @@ class LRFInput(InputFormatPlugin): name = 'LRF Input' author = 'Kovid Goyal' - description = 'Convert LRF files to HTML' + description = _('Convert LRF files to HTML') file_types = {'lrf'} commit_name = 'lrf_input' diff --git a/src/calibre/ebooks/conversion/plugins/mobi_input.py b/src/calibre/ebooks/conversion/plugins/mobi_input.py index 457ece8bca..64d71c8a1a 100644 --- a/src/calibre/ebooks/conversion/plugins/mobi_input.py +++ b/src/calibre/ebooks/conversion/plugins/mobi_input.py @@ -14,7 +14,7 @@ class MOBIInput(InputFormatPlugin): name = 'MOBI Input' author = 'Kovid Goyal' - description = 'Convert MOBI files (.mobi, .prc, .azw) to HTML' + description = _('Convert MOBI files (.mobi, .prc, .azw) to HTML') file_types = {'mobi', 'prc', 'azw', 'azw3', 'pobi'} commit_name = 'mobi_input' diff --git a/src/calibre/ebooks/conversion/plugins/odt_input.py b/src/calibre/ebooks/conversion/plugins/odt_input.py index 33989d16af..a05f8e2faa 100644 --- a/src/calibre/ebooks/conversion/plugins/odt_input.py +++ b/src/calibre/ebooks/conversion/plugins/odt_input.py @@ -15,7 +15,7 @@ class ODTInput(InputFormatPlugin): name = 'ODT Input' author = 'Kovid Goyal' - description = 'Convert ODT (OpenOffice) files to HTML' + description = _('Convert ODT (OpenOffice) files to HTML') file_types = {'odt'} commit_name = 'odt_input' diff --git a/src/calibre/ebooks/conversion/plugins/pdb_input.py b/src/calibre/ebooks/conversion/plugins/pdb_input.py index c0115b0a93..ddc5af4295 100644 --- a/src/calibre/ebooks/conversion/plugins/pdb_input.py +++ b/src/calibre/ebooks/conversion/plugins/pdb_input.py @@ -13,7 +13,7 @@ class PDBInput(InputFormatPlugin): name = 'PDB Input' author = 'John Schember' - description = 'Convert PDB to HTML' + description = _('Convert PDB to HTML') file_types = {'pdb', 'updb'} commit_name = 'pdb_input' diff --git a/src/calibre/ebooks/conversion/plugins/pdf_input.py b/src/calibre/ebooks/conversion/plugins/pdf_input.py index 792623e752..cddf73d3f6 100644 --- a/src/calibre/ebooks/conversion/plugins/pdf_input.py +++ b/src/calibre/ebooks/conversion/plugins/pdf_input.py @@ -15,7 +15,7 @@ class PDFInput(InputFormatPlugin): name = 'PDF Input' author = 'Kovid Goyal and John Schember' - description = 'Convert PDF files to HTML' + description = _('Convert PDF files to HTML') file_types = {'pdf'} commit_name = 'pdf_input' diff --git a/src/calibre/ebooks/conversion/plugins/pml_input.py b/src/calibre/ebooks/conversion/plugins/pml_input.py index 78fd8791ef..07d61a195b 100644 --- a/src/calibre/ebooks/conversion/plugins/pml_input.py +++ b/src/calibre/ebooks/conversion/plugins/pml_input.py @@ -18,7 +18,7 @@ class PMLInput(InputFormatPlugin): name = 'PML Input' author = 'John Schember' - description = 'Convert PML to OEB' + description = _('Convert PML to OEB') # pmlz is a zip file containing pml files and png images. file_types = {'pml', 'pmlz'} commit_name = 'pml_input' diff --git a/src/calibre/ebooks/conversion/plugins/rb_input.py b/src/calibre/ebooks/conversion/plugins/rb_input.py index 68d072da9a..434f9e1ef7 100644 --- a/src/calibre/ebooks/conversion/plugins/rb_input.py +++ b/src/calibre/ebooks/conversion/plugins/rb_input.py @@ -14,7 +14,7 @@ class RBInput(InputFormatPlugin): name = 'RB Input' author = 'John Schember' - description = 'Convert RB files to HTML' + description = _('Convert RB files to HTML') file_types = {'rb'} commit_name = 'rb_input' diff --git a/src/calibre/ebooks/conversion/plugins/rtf_input.py b/src/calibre/ebooks/conversion/plugins/rtf_input.py index b09e48e83e..c35085328b 100644 --- a/src/calibre/ebooks/conversion/plugins/rtf_input.py +++ b/src/calibre/ebooks/conversion/plugins/rtf_input.py @@ -43,7 +43,7 @@ class RTFInput(InputFormatPlugin): name = 'RTF Input' author = 'Kovid Goyal' - description = 'Convert RTF files to HTML' + description = _('Convert RTF files to HTML') file_types = {'rtf'} commit_name = 'rtf_input' diff --git a/src/calibre/ebooks/conversion/plugins/snb_input.py b/src/calibre/ebooks/conversion/plugins/snb_input.py index f92b36e553..a349862c1d 100644 --- a/src/calibre/ebooks/conversion/plugins/snb_input.py +++ b/src/calibre/ebooks/conversion/plugins/snb_input.py @@ -23,7 +23,7 @@ class SNBInput(InputFormatPlugin): name = 'SNB Input' author = 'Li Fanxi' - description = 'Convert SNB files to OEB' + description = _('Convert SNB files to OEB') file_types = {'snb'} commit_name = 'snb_input' diff --git a/src/calibre/ebooks/conversion/plugins/tcr_input.py b/src/calibre/ebooks/conversion/plugins/tcr_input.py index 3b2f33551c..ed38dbb838 100644 --- a/src/calibre/ebooks/conversion/plugins/tcr_input.py +++ b/src/calibre/ebooks/conversion/plugins/tcr_input.py @@ -14,7 +14,7 @@ class TCRInput(InputFormatPlugin): name = 'TCR Input' author = 'John Schember' - description = 'Convert TCR files to HTML' + description = _('Convert TCR files to HTML') file_types = {'tcr'} commit_name = 'tcr_input' diff --git a/src/calibre/ebooks/conversion/plugins/txt_input.py b/src/calibre/ebooks/conversion/plugins/txt_input.py index a2794813e0..42cc70cb17 100644 --- a/src/calibre/ebooks/conversion/plugins/txt_input.py +++ b/src/calibre/ebooks/conversion/plugins/txt_input.py @@ -36,7 +36,7 @@ class TXTInput(InputFormatPlugin): name = 'TXT Input' author = 'John Schember' - description = 'Convert TXT files to HTML' + description = _('Convert TXT files to HTML') file_types = {'txt', 'txtz', 'text', 'md', 'textile', 'markdown'} commit_name = 'txt_input' ui_data = { diff --git a/src/calibre/library/catalogs/bibtex.py b/src/calibre/library/catalogs/bibtex.py index cc3137e931..ca8fce82f1 100644 --- a/src/calibre/library/catalogs/bibtex.py +++ b/src/calibre/library/catalogs/bibtex.py @@ -23,7 +23,7 @@ class BIBTEX(CatalogPlugin): Option = namedtuple('Option', 'option, default, dest, action, help') name = 'Catalog_BIBTEX' - description = 'BIBTEX catalog generator' + description = _('BIBTEX catalog generator') supported_platforms = ['windows', 'osx', 'linux'] author = 'Sengian' version = (1, 0, 0) diff --git a/src/calibre/library/catalogs/csv_xml.py b/src/calibre/library/catalogs/csv_xml.py index 6ce97e4dae..e7fa53df53 100644 --- a/src/calibre/library/catalogs/csv_xml.py +++ b/src/calibre/library/catalogs/csv_xml.py @@ -22,7 +22,7 @@ class CSV_XML(CatalogPlugin): Option = namedtuple('Option', 'option, default, dest, action, help') name = 'Catalog_CSV_XML' - description = 'CSV/XML catalog generator' + description = _('CSV/XML catalog generator') supported_platforms = ['windows', 'osx', 'linux'] author = 'Greg Riker' version = (1, 0, 0) diff --git a/src/calibre/library/catalogs/epub_mobi.py b/src/calibre/library/catalogs/epub_mobi.py index 061f573ab2..b47380b0b6 100644 --- a/src/calibre/library/catalogs/epub_mobi.py +++ b/src/calibre/library/catalogs/epub_mobi.py @@ -26,7 +26,7 @@ class EPUB_MOBI(CatalogPlugin): 'EPUB catalog generator' name = 'Catalog_EPUB_MOBI' - description = 'AZW3/EPUB/MOBI catalog generator' + description = _('AZW3/EPUB/MOBI catalog generator') supported_platforms = ['windows', 'osx', 'linux'] minimum_calibre_version = (0, 7, 40) author = 'Greg Riker'