From 16beec21aad1e04167e10098237abccd8ba6c1ba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 May 2017 14:12:54 +0530 Subject: [PATCH] String changes --- src/calibre/customize/conversion.py | 2 +- src/calibre/gui2/convert/fb2_output.ui | 4 +-- src/calibre/gui2/convert/pdb_output.ui | 2 +- .../gui2/convert/structure_detection.py | 6 ++-- src/calibre/gui2/convert/txt_output.ui | 4 +-- .../gui2/dialogs/edit_authors_dialog.py | 10 +++---- .../gui2/dialogs/edit_authors_dialog.ui | 8 ++--- .../gui2/dialogs/saved_search_editor.ui | 2 +- src/calibre/gui2/dialogs/tag_categories.ui | 30 ++++++++++--------- src/calibre/gui2/filename_pattern.ui | 2 +- src/calibre/gui2/preferences/adding.ui | 16 ++++++---- src/calibre/gui2/preferences/plugboard.ui | 6 ++-- src/calibre/gui2/preferences/save_template.ui | 2 +- src/calibre/gui2/tweak_book/search.py | 4 +-- src/calibre/gui2/tweak_book/ui.py | 2 +- src/calibre/gui2/viewer/config.ui | 14 ++++----- src/calibre/gui2/wizard/send_email.ui | 2 +- 17 files changed, 62 insertions(+), 54 deletions(-) diff --git a/src/calibre/customize/conversion.py b/src/calibre/customize/conversion.py index 6c40ee1a54..45aed8d07d 100644 --- a/src/calibre/customize/conversion.py +++ b/src/calibre/customize/conversion.py @@ -149,7 +149,7 @@ class InputFormatPlugin(Plugin): #: a list of images. is_image_collection = False - #: Number of CPU cores used by this plugin + #: Number of CPU cores used by this plugin. #: A value of -1 means that it uses all available cores core_usage = 1 diff --git a/src/calibre/gui2/convert/fb2_output.ui b/src/calibre/gui2/convert/fb2_output.ui index c8d4230a99..01ac899113 100644 --- a/src/calibre/gui2/convert/fb2_output.ui +++ b/src/calibre/gui2/convert/fb2_output.ui @@ -30,7 +30,7 @@ - Sectionize: + &Sectionize: opt_sectionize @@ -47,7 +47,7 @@ - Genre + &Genre diff --git a/src/calibre/gui2/convert/pdb_output.ui b/src/calibre/gui2/convert/pdb_output.ui index 66f74b41e8..867e50c0ff 100644 --- a/src/calibre/gui2/convert/pdb_output.ui +++ b/src/calibre/gui2/convert/pdb_output.ui @@ -50,7 +50,7 @@ - Output Encoding: + Output &encoding: diff --git a/src/calibre/gui2/convert/structure_detection.py b/src/calibre/gui2/convert/structure_detection.py index e6803644e6..213956b128 100644 --- a/src/calibre/gui2/convert/structure_detection.py +++ b/src/calibre/gui2/convert/structure_detection.py @@ -29,11 +29,11 @@ class StructureDetectionWidget(Widget, Ui_Form): for x in ('pagebreak', 'rule', 'both', 'none'): self.opt_chapter_mark.addItem(x) self.initialize_options(get_option, get_help, db, book_id) - self.opt_chapter.set_msg(_('Detect chapters at (XPath expression):')) - self.opt_page_breaks_before.set_msg(_('Insert page breaks before ' + self.opt_chapter.set_msg(_('Detect &chapters at (XPath expression):')) + self.opt_page_breaks_before.set_msg(_('Insert &page breaks before ' '(XPath expression):')) self.opt_start_reading_at.set_msg( - _('Start reading at (XPath expression):')) + _('Start &reading at (XPath expression):')) def break_cycles(self): Widget.break_cycles(self) diff --git a/src/calibre/gui2/convert/txt_output.ui b/src/calibre/gui2/convert/txt_output.ui index 90ef30a8ce..c45a8a49d2 100644 --- a/src/calibre/gui2/convert/txt_output.ui +++ b/src/calibre/gui2/convert/txt_output.ui @@ -118,14 +118,14 @@ - Do not remove image references before processing + Do not remove image &references before processing - Keep text color, when possible + Keep text &color, when possible diff --git a/src/calibre/gui2/dialogs/edit_authors_dialog.py b/src/calibre/gui2/dialogs/edit_authors_dialog.py index 524a9a174e..97c0075782 100644 --- a/src/calibre/gui2/dialogs/edit_authors_dialog.py +++ b/src/calibre/gui2/dialogs/edit_authors_dialog.py @@ -163,11 +163,11 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog): def show_context_menu(self, point): self.context_item = self.table.itemAt(point) - case_menu = QMenu(_('Change Case')) - action_upper_case = case_menu.addAction(_('Upper Case')) - action_lower_case = case_menu.addAction(_('Lower Case')) - action_swap_case = case_menu.addAction(_('Swap Case')) - action_title_case = case_menu.addAction(_('Title Case')) + case_menu = QMenu(_('Change case')) + action_upper_case = case_menu.addAction(_('Upper case')) + action_lower_case = case_menu.addAction(_('Lower case')) + action_swap_case = case_menu.addAction(_('Swap case')) + action_title_case = case_menu.addAction(_('Title case')) action_capitalize = case_menu.addAction(_('Capitalize')) action_upper_case.triggered.connect(self.upper_case) diff --git a/src/calibre/gui2/dialogs/edit_authors_dialog.ui b/src/calibre/gui2/dialogs/edit_authors_dialog.ui index 7fe965cc23..e0f08d1b6a 100644 --- a/src/calibre/gui2/dialogs/edit_authors_dialog.ui +++ b/src/calibre/gui2/dialogs/edit_authors_dialog.ui @@ -82,14 +82,14 @@ - Sort by author + Sort by &author - Sort by author sort + Sort by author &sort @@ -101,7 +101,7 @@ generated from the author. Exactly how this value is automatically generated can be controlled via Preferences->Advanced->Tweaks - Recalculate all author sort values + &Recalculate all author sort values @@ -112,7 +112,7 @@ generated can be controlled via Preferences->Advanced->Tweaks after changing Preferences->Advanced->Tweaks->Author sort name algorithm - Copy all author sort values to author + &Copy all author sort values to author diff --git a/src/calibre/gui2/dialogs/saved_search_editor.ui b/src/calibre/gui2/dialogs/saved_search_editor.ui index fbfc941249..3c60997f35 100644 --- a/src/calibre/gui2/dialogs/saved_search_editor.ui +++ b/src/calibre/gui2/dialogs/saved_search_editor.ui @@ -48,7 +48,7 @@ - Saved search: + &Saved search: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter diff --git a/src/calibre/gui2/dialogs/tag_categories.ui b/src/calibre/gui2/dialogs/tag_categories.ui index 5281961267..83b9185715 100644 --- a/src/calibre/gui2/dialogs/tag_categories.ui +++ b/src/calibre/gui2/dialogs/tag_categories.ui @@ -6,7 +6,7 @@ 0 0 - 588 + 628 482 @@ -14,7 +14,7 @@ User Categories Editor - + :/images/chapters.png:/images/chapters.png @@ -35,7 +35,7 @@ - Category name: + Category &name: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter @@ -78,7 +78,7 @@ ... - + :/images/trash.png:/images/trash.png @@ -107,9 +107,8 @@ ... - - :/images/plus.png:/images/plus.png - + + :/images/plus.png:/images/plus.png @@ -124,7 +123,7 @@ ... - + :/images/edit-undo.png:/images/edit-undo.png @@ -134,11 +133,14 @@ - Category filter: + Category &filter: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + category_filter_box + @@ -155,10 +157,10 @@ <p>Show items in the Available items box only if they appear in the current virtual library. Applied items not in the VL will be marked - "not on any book".</p> + "not on any book".</p> - Show only available items in current virtual library + &Show only available items in current virtual library @@ -234,7 +236,7 @@ ... - + :/images/forward.png:/images/forward.png @@ -319,7 +321,7 @@ ... - + :/images/list_remove.png:/images/list_remove.png @@ -355,7 +357,7 @@ - + diff --git a/src/calibre/gui2/filename_pattern.ui b/src/calibre/gui2/filename_pattern.ui index 0a0e282985..57f9e593f3 100644 --- a/src/calibre/gui2/filename_pattern.ui +++ b/src/calibre/gui2/filename_pattern.ui @@ -58,7 +58,7 @@ - &Test + Test diff --git a/src/calibre/gui2/preferences/adding.ui b/src/calibre/gui2/preferences/adding.ui index 706281c065..0e2573f5eb 100644 --- a/src/calibre/gui2/preferences/adding.ui +++ b/src/calibre/gui2/preferences/adding.ui @@ -63,7 +63,7 @@ - &Configure metadata from file name + Configure metadata from file name @@ -223,7 +223,7 @@ Author matching is exact. - Control &how tags are processed: + Control how tags are processed: tag_map_rules_button @@ -250,7 +250,7 @@ Author matching is exact. - Control &which files are added during bulk imports: + Control which files are added during bulk imports: add_filter_rules_button @@ -344,11 +344,14 @@ that have been explicitly ignored below. - <b>Ignore</b> files with the following extensions when automatically adding + <b>Ignore</b> files with the following &extensions when automatically adding true + + opt_blocked_auto_formats + @@ -367,11 +370,14 @@ that have been explicitly ignored below. - Specify a folder. Any files you put into this folder will be automatically added to calibre (restart required). + Specify a &folder. Any files you put into this folder will be automatically added to calibre (restart required). true + + opt_auto_add_path + diff --git a/src/calibre/gui2/preferences/plugboard.ui b/src/calibre/gui2/preferences/plugboard.ui index 632f85db5f..f0890135f2 100644 --- a/src/calibre/gui2/preferences/plugboard.ui +++ b/src/calibre/gui2/preferences/plugboard.ui @@ -75,7 +75,7 @@ One possible use for a plugboard is to alter the title to contain series informa - Add new plugboard: + Add &new plugboard: new_format @@ -91,7 +91,7 @@ One possible use for a plugboard is to alter the title to contain series informa - Edit existing plugboard: + Edit &existing plugboard: edit_format @@ -107,7 +107,7 @@ One possible use for a plugboard is to alter the title to contain series informa - Existing plugboards: + Existing &plugboards: Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop diff --git a/src/calibre/gui2/preferences/save_template.ui b/src/calibre/gui2/preferences/save_template.ui index c1060f815e..130492f78c 100644 --- a/src/calibre/gui2/preferences/save_template.ui +++ b/src/calibre/gui2/preferences/save_template.ui @@ -59,7 +59,7 @@ - Template editor + Template &editor diff --git a/src/calibre/gui2/tweak_book/search.py b/src/calibre/gui2/tweak_book/search.py index c59d74e2a4..af4967f568 100644 --- a/src/calibre/gui2/tweak_book/search.py +++ b/src/calibre/gui2/tweak_book/search.py @@ -246,7 +246,7 @@ class SearchWidget(QWidget): self.fl = fl = QLabel(_('&Find:')) fl.setAlignment(Qt.AlignRight | Qt.AlignCenter) - self.find_text = ft = HistoryBox(self, _('Clear search history')) + self.find_text = ft = HistoryBox(self, _('Clear search &history')) ft.save_search.connect(self.save_search) ft.show_saved_searches.connect(self.show_saved_searches) ft.initialize('tweak_book_find_edit') @@ -258,7 +258,7 @@ class SearchWidget(QWidget): self.rl = rl = QLabel(_('&Replace:')) rl.setAlignment(Qt.AlignRight | Qt.AlignCenter) - self.replace_text = rt = HistoryBox(self, _('Clear replace history')) + self.replace_text = rt = HistoryBox(self, _('Clear replace &history')) rt.save_search.connect(self.save_search) rt.show_saved_searches.connect(self.show_saved_searches) rt.initialize('tweak_book_replace_edit') diff --git a/src/calibre/gui2/tweak_book/ui.py b/src/calibre/gui2/tweak_book/ui.py index 7d6351fd6d..c350b0fb28 100644 --- a/src/calibre/gui2/tweak_book/ui.py +++ b/src/calibre/gui2/tweak_book/ui.py @@ -363,7 +363,7 @@ class Main(MainWindow): _('Cut text')) self.action_editor_copy = reg('edit-copy.png', _('&Copy to clipboard'), self.boss.do_editor_copy, 'editor-copy', ('Ctrl+C', 'Ctrl+Insert'), _('Copy to clipboard')) - self.action_editor_paste = reg('edit-paste.png', _('&Paste from clipboard'), self.boss.do_editor_paste, 'editor-paste', ('Ctrl+V', 'Shift+Insert', ), + self.action_editor_paste = reg('edit-paste.png', _('P&aste from clipboard'), self.boss.do_editor_paste, 'editor-paste', ('Ctrl+V', 'Shift+Insert', ), _('Paste from clipboard')) self.action_editor_cut.setEnabled(False) self.action_editor_copy.setEnabled(False) diff --git a/src/calibre/gui2/viewer/config.ui b/src/calibre/gui2/viewer/config.ui index 70ea633dec..0a4e627a3a 100644 --- a/src/calibre/gui2/viewer/config.ui +++ b/src/calibre/gui2/viewer/config.ui @@ -543,14 +543,14 @@ QToolBox::tab:hover { - Change + &Change - Reset + &Reset @@ -575,7 +575,7 @@ QToolBox::tab:hover { - Change + &Change @@ -809,7 +809,7 @@ QToolBox::tab:hover { - &Search online URL: + Search &online URL: search_online_url @@ -835,7 +835,7 @@ You must enter the search URL for the search engine, with the placeholder - Remember the &current page when quitting + Remember the current &page when quitting @@ -855,7 +855,7 @@ You must enter the search URL for the search engine, with the placeholder Normally, you can view multiple books in calibre, each in its own viewer window. With this option, if you attempt to view a second book, it will replace the previously opened book instead of using a new window. - Allow only a &single book to be viewed at a time (needs restart) + Allow only a single book to be &viewed at a time (needs restart) @@ -869,7 +869,7 @@ You must enter the search URL for the search engine, with the placeholder - Clear search history + Clear search &history diff --git a/src/calibre/gui2/wizard/send_email.ui b/src/calibre/gui2/wizard/send_email.ui index 815089bbd3..696fc226d0 100644 --- a/src/calibre/gui2/wizard/send_email.ui +++ b/src/calibre/gui2/wizard/send_email.ui @@ -41,7 +41,7 @@ <p>A mail server is useful if the service you are sending mail to only accepts email from well know mail services. - Mail &server + Mail server