diff --git a/src/calibre/gui2/actions/add.py b/src/calibre/gui2/actions/add.py index 3e3c48b8b8..ebbef8e845 100644 --- a/src/calibre/gui2/actions/add.py +++ b/src/calibre/gui2/actions/add.py @@ -106,7 +106,7 @@ class AddAction(InterfaceAction): ids = [view.model().id(r) for r in rows] if len(ids) > 1 and not question_dialog(self.gui, - _('Are you sure'), + _('Are you sure?'), _('Are you sure you want to add the same' ' files to all %d books? If the format' ' already exists for a book, it will be replaced.')%len(ids)): @@ -128,7 +128,7 @@ class AddAction(InterfaceAction): title = db.title(ids[0], index_is_id=True) msg = _('The {0} format(s) will be replaced in the book {1}. Are you sure?').format( ', '.join(override), title) - if not confirm(msg, 'confirm_format_override_on_add', title=_('Are you sure'), parent=self.gui): + if not confirm(msg, 'confirm_format_override_on_add', title=_('Are you sure?'), parent=self.gui): return for id_ in ids: diff --git a/src/calibre/gui2/preferences/adding.py b/src/calibre/gui2/preferences/adding.py index 1db4020063..5bb19c8df7 100644 --- a/src/calibre/gui2/preferences/adding.py +++ b/src/calibre/gui2/preferences/adding.py @@ -120,7 +120,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form): _('You do not have read/write permissions for ' 'the folder: %s')%path, show=True) raise AbortCommit('invalid auto-add folder') - if not question_dialog(self, _('Are you sure'), + if not question_dialog(self, _('Are you sure?'), _('WARNING: Any files you place in %s will be ' 'automatically deleted after being added to ' 'calibre. Are you sure?')%path): diff --git a/src/calibre/gui2/tag_browser/ui.py b/src/calibre/gui2/tag_browser/ui.py index 80b4252315..3205b5fc63 100644 --- a/src/calibre/gui2/tag_browser/ui.py +++ b/src/calibre/gui2/tag_browser/ui.py @@ -252,8 +252,7 @@ class TagBrowserMixin(object): # {{{ if not question_dialog(self.tags_view, title=_('Delete item'), msg='
'+
- _('%s will be deleted from all books. Are you sure?')
- %orig_name,
+ _('%s will be deleted from all books. Are you sure?') %orig_name,
skip_dialog_name='tag_item_delete',
skip_dialog_msg=_('Show this confirmation again')):
return
@@ -436,7 +435,7 @@ class TagBrowserWidget(QWidget): # {{{
'match any or all of them'))
ma.setStatusTip(ma.toolTip())
- mt = l.m.addAction(_('Manage authors, tags, etc'))
+ mt = l.m.addAction(_('Manage authors, tags, etc.'))
mt.setToolTip(_('All of these category_managers are available by right-clicking '
'on items in the tag browser above'))
mt.m = l.manage_menu = QMenu(l.m)
diff --git a/src/calibre/gui2/tweak_book/editor/themes.py b/src/calibre/gui2/tweak_book/editor/themes.py
index 1663843584..5c04d86fdf 100644
--- a/src/calibre/gui2/tweak_book/editor/themes.py
+++ b/src/calibre/gui2/tweak_book/editor/themes.py
@@ -6,7 +6,6 @@ from __future__ import (unicode_literals, division, absolute_import,
__license__ = 'GPL v3'
__copyright__ = '2013, Kovid Goyal You can create a custom syntax highlighting
+theme, with your own colors and font styles. The most important
+types of highlighting rules are described below. Note that not
+every rule supports every kind of customization, for example,
+changing font or underline styles for the As you make changes to your theme on the left, the changes will
+be reflected live in this panel.
+{0}
+ The most important rule. Sets the
+ foreground and background colors for the editor as well as the
+ style of "normal" text, that is, text that does not match any
+ special syntax.
+
+{1}
+ Defines the colors for text selected by the mouse.
+
+{2}
+ Defines the color for the line containing the cursor.
+
+{3}
+ Defines the colors for the line numbers on the left.
+
+{4}
+ Defines the colors for matching tags in HTML and matching
+ braces in CSS.
+
+{5}
+ Used for highlighting tags in HTML
+
+{6}
+ Used for highlighting attributes in HTML
+
+{7}
+ Tag names in HTML
+
+{8}
+ Namespace prefixes in XML and constants in CSS
+
+{9}
+ Non-breaking spaces/hyphens in HTML
+
+{10}
+ Syntax errors such as You can create a custom syntax highlighting
- theme, with your own colors and font styles. The most important
- types of highlighting rules are described below. Note that not
- every rule supports every kind of customization, for example,
- changing font or underline styles for the As you make changes to your theme on the left, the changes will
- be reflected live in this panel.
- {0}
- The most important rule. Sets the
- foreground and background colors for the editor as well as the
- style of "normal" text, that is, text that does not match any
- special syntax.
-
- {1}
- Defines the colors for text selected by the mouse.
-
- {2}
- Defines the color for the line containing the cursor.
-
- {3}
- Defines the colors for the line numbers on the left.
-
- {4}
- Defines the colors for matching tags in HTML and matching
- braces in CSS.
-
- {5}
- Used for highlighting tags in HTML
-
- {6}
- Used for highlighting attributes in HTML
-
- {7}
- Tag names in HTML
-
- {8}
- Namespace prefixes in XML and constants in CSS
-
- {9}
- Non-breaking spaces/hyphens in HTML
-
- {10}
- Syntax errors such as Creating a custom theme
+
+Cursor
rule
+does not have any effect as that rule is used only for the color of
+the blinking cursor.Creating a custom theme
-
- Cursor
rule
- does not have any effect as that rule is used only for the color of
- the blinking cursor.