String changes

This commit is contained in:
Kovid Goyal 2017-04-23 20:54:39 +05:30
parent 576a757edf
commit bee1650017
15 changed files with 30 additions and 32 deletions

View File

@ -32,7 +32,7 @@
</sizepolicy>
</property>
<property name="title">
<string>Search/Replace Definition Edit</string>
<string>Search/Replace definition edit</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<property name="sizeConstraint">

View File

@ -81,7 +81,7 @@ class TabbedDeviceConfig(QTabWidget):
self.base = QWidget(self)
# self.insertTab(0, self.base, _('Configure %s') % self.device.current_friendly_name)
self.insertTab(0, self.base, _("File Formats"))
self.insertTab(0, self.base, _("File formats"))
l = self.base.l = QGridLayout(self.base)
self.base.setLayout(l)
@ -140,7 +140,7 @@ class TabbedDeviceConfig(QTabWidget):
self.device_settings)
# Only display the extra customization tab if there are options on it.
if self.extra_tab.has_extra_customizations:
self.addTab(self.extra_tab, _('Extra Customization'))
self.addTab(self.extra_tab, _('Extra customization'))
self.setCurrentIndex(0)
@ -394,5 +394,3 @@ if __name__ == '__main__':
if d.exec_() == d.Accepted:
cw.commit()
dev.shutdown()

View File

@ -81,7 +81,7 @@ class CheckLibraryDialog(QDialog):
QDialog.__init__(self, parent)
self.db = db
self.setWindowTitle(_('Check Library -- Problems Found'))
self.setWindowTitle(_('Check library -- Problems Found'))
self.setWindowIcon(QIcon(I('debug.png')))
self._tl = QHBoxLayout()
@ -395,4 +395,3 @@ if __name__ == '__main__':
from calibre.library import db
d = CheckLibraryDialog(None, db())
d.exec_()

View File

@ -17,7 +17,7 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>Edit Comments</string>
<string>Edit comments</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>

View File

@ -72,7 +72,7 @@
<item>
<widget class="QPushButton" name="button_both">
<property name="text">
<string>Library and Device</string>
<string>Library and device</string>
</property>
<property name="icon">
<iconset resource="../../../../resources/images.qrc">

View File

@ -390,7 +390,7 @@ class BasicRecipe(QWidget): # {{{
self.feed_title.clear()
self.feed_url.clear()
if src is None:
self.title.setText(_('My News Source'))
self.title.setText(_('My news source'))
self.oldest_article.setValue(7)
self.max_articles.setValue(100)
else:

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>This book is DRMed</string>
<string>This book has DRM</string>
</property>
<property name="windowIcon">
<iconset resource="../../../../resources/images.qrc">

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Active Jobs</string>
<string>Active jobs</string>
</property>
<property name="windowIcon">
<iconset resource="../../../../resources/images.qrc">

View File

@ -304,7 +304,7 @@ class MetadataBulkDialog(QDialog, Ui_MetadataBulkDialog):
}
s_r_match_modes = [_('Character match'),
_('Regular Expression'),
_('Regular expression'),
]
s_r_replace_modes = [_('Replace field'),

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Edit Meta information</string>
<string>Edit meta information</string>
</property>
<property name="windowIcon">
<iconset resource="../../../../resources/images.qrc">

View File

@ -537,12 +537,12 @@ class PluginUpdaterDialog(SizePersistedDialog):
self.install_action.triggered.connect(self._install_clicked)
self.install_action.setEnabled(False)
self.plugin_view.addAction(self.install_action)
self.history_action = QAction(QIcon(I('chapters.png')), _('Version &History'), self)
self.history_action = QAction(QIcon(I('chapters.png')), _('Version &history'), self)
self.history_action.setToolTip(_('Show history of changes to this plugin'))
self.history_action.triggered.connect(self._history_clicked)
self.history_action.setEnabled(False)
self.plugin_view.addAction(self.history_action)
self.forum_action = QAction(QIcon(I('plugins/mobileread.png')), _('Plugin &Forum Thread'), self)
self.forum_action = QAction(QIcon(I('plugins/mobileread.png')), _('Plugin &forum thread'), self)
self.forum_action.triggered.connect(self._forum_label_activated)
self.forum_action.setEnabled(False)
self.plugin_view.addAction(self.forum_action)
@ -752,7 +752,7 @@ class PluginUpdaterDialog(SizePersistedDialog):
if DEBUG:
prints('ERROR occurred while installing plugin: %s'%display_plugin.name)
traceback.print_exc()
error_dialog(self.gui, _('Install Plugin Failed'),
error_dialog(self.gui, _('Install plugin failed'),
_('A problem occurred while installing this plugin.'
' This plugin will now be uninstalled.'
' Please post the error message in details below into'

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Category Editor</string>
<string>Category editor</string>
</property>
<property name="windowIcon">
<iconset>

View File

@ -615,17 +615,17 @@ class DocumentView(QWebView): # {{{
'Next Section': self.goto_next_section,
'Previous Section': self.goto_previous_section,
}
for name, key in [(_('Next Section'), 'Next Section'),
(_('Previous Section'), 'Previous Section'),
for name, key in [(_('Next section'), 'Next Section'),
(_('Previous section'), 'Previous Section'),
(None, None),
(_('Document Start'), 'Document Top'),
(_('Document End'), 'Document Bottom'),
(_('Document start'), 'Document Top'),
(_('Document end'), 'Document Bottom'),
(None, None),
(_('Section Start'), 'Section Top'),
(_('Section End'), 'Section Bottom'),
(_('Section start'), 'Section Top'),
(_('Section end'), 'Section Bottom'),
(None, None),
(_('Next Page'), 'Next Page'),
(_('Previous Page'), 'Previous Page')]:
(_('Next page'), 'Next Page'),
(_('Previous page'), 'Previous Page')]:
if key is None:
m.addSeparator()
else:

View File

@ -447,11 +447,11 @@ class LineEditECM(object): # {{{
menu = self.createStandardContextMenu()
menu.addSeparator()
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)
@ -1167,6 +1167,7 @@ class Splitter(QSplitter):
# }}}
if __name__ == '__main__':
from PyQt5.Qt import QTextEdit
app = QApplication([])

View File

@ -129,7 +129,7 @@ def populate_standard_spinbox_context_menu(spinbox, menu, add_clear=False):
m.addAction(_('&Paste') + access_key(QKeySequence.Paste), le.paste).setEnabled(not le.isReadOnly())
m.addAction(_('Delete') + access_key(QKeySequence.Delete), le.del_).setEnabled(not le.isReadOnly() and le.hasSelectedText())
m.addSeparator()
m.addAction(_('Select &All') + access_key(QKeySequence.SelectAll), spinbox.selectAll)
m.addAction(_('Select &all') + access_key(QKeySequence.SelectAll), spinbox.selectAll)
m.addSeparator()
m.addAction(_('&Step up'), spinbox.stepUp)
m.addAction(_('Step &down'), spinbox.stepDown)