Some more string fixes.

This commit is contained in:
Raoul Snyman 2010-07-06 17:54:15 +02:00
parent 9a46ebca56
commit f1eeaff633
5 changed files with 27 additions and 17 deletions

View File

@ -296,7 +296,7 @@ class BibleMediaItem(MediaManagerItem):
self.QuickSecondVersionLabel.setText(
translate('BiblesPlugin.MediaItem', 'Dual:'))
self.QuickSearchLabel.setText(
translate('BiblesPlugin.MediaItem', 'Search Type:'))
translate('BiblesPlugin.MediaItem', 'Search type:'))
self.QuickSearchLabel.setText(
translate('BiblesPlugin.MediaItem', 'Find:'))
self.QuickSearchButton.setText(
@ -613,7 +613,7 @@ class BibleMediaItem(MediaManagerItem):
if self.verses == 0:
self.AdvancedSearchButton.setEnabled(False)
self.AdvancedMessage.setText(
translate('BiblesPlugin.MediaItem', 'Bible not fully loaded'))
translate('BiblesPlugin.MediaItem', 'Bible not fully loaded.'))
else:
self.AdvancedSearchButton.setEnabled(True)
self.AdvancedMessage.setText(u'')

View File

@ -161,31 +161,38 @@ class Ui_customEditDialog(object):
customEditDialog.setWindowTitle(
translate('CustomPlugin.EditCustomForm', 'Edit Custom Slides'))
self.UpButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Move slide Up 1'))
translate('CustomPlugin.EditCustomForm', 'Move slide up once '
'position.'))
self.DownButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Move slide down 1'))
translate('CustomPlugin.EditCustomForm', 'Move slide down one '
'position.'))
self.TitleLabel.setText(
translate('CustomPlugin.EditCustomForm', '&Title:'))
self.AddButton.setText(
translate('CustomPlugin.EditCustomForm', 'Add New'))
self.AddButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Add new slide at bottom'))
translate('CustomPlugin.EditCustomForm', 'Add a new slide at '
'bottom.'))
self.EditButton.setText(
translate('CustomPlugin.EditCustomForm', 'Edit'))
self.EditButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Edit selected slide'))
translate('CustomPlugin.EditCustomForm', 'Edit the selected '
'slide.'))
self.EditAllButton.setText(
translate('CustomPlugin.EditCustomForm', 'Edit All'))
self.EditAllButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Edit all slides'))
translate('CustomPlugin.EditCustomForm', 'Edit all the slides at '
'once.'))
self.SaveButton.setText(
translate('CustomPlugin.EditCustomForm', 'Save'))
self.SaveButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Replace edited slide'))
translate('CustomPlugin.EditCustomForm', 'Save the slide currently '
'being edited.'))
self.DeleteButton.setText(
translate('CustomPlugin.EditCustomForm', 'Delete'))
self.DeleteButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Delete selected slide'))
translate('CustomPlugin.EditCustomForm', 'Delete the selected '
'slide.'))
self.ClearButton.setText(
translate('CustomPlugin.EditCustomForm', 'Clear'))
self.ClearButton.setToolTip(
@ -193,7 +200,8 @@ class Ui_customEditDialog(object):
self.SplitButton.setText(
translate('CustomPlugin.EditCustomForm', 'Split Slide'))
self.SplitButton.setToolTip(
translate('CustomPlugin.EditCustomForm', 'Add slide split'))
translate('CustomPlugin.EditCustomForm', 'Split a slide into two '
'by inserting a slide splitter.'))
self.ThemeLabel.setText(
translate('CustomPlugin.EditCustomForm', 'The&me:'))
self.CreditLabel.setText(

View File

@ -269,14 +269,16 @@ class EditCustomForm(QtGui.QDialog, Ui_customEditDialog):
if len(self.TitleEdit.displayText()) == 0:
self.TitleEdit.setFocus()
return False, translate('CustomPlugin.EditCustomForm',
'You need to enter a title')
'You need to type in a title.')
# must have 1 slide
if self.VerseListView.count() == 0:
self.VerseTextEdit.setFocus()
return False, translate('CustomPlugin.EditCustomForm',
'You need to enter a slide')
'You need to add at least one slide')
if self.VerseTextEdit.toPlainText():
self.VerseTextEdit.setFocus()
return False, translate('CustomPlugin.editCustomForm',
'You have unsaved data, please save or clear')
return False, translate('CustomPlugin.EditCustomForm',
'You have one or more unsaved slides, please either save your '
'slide(s) or clear your changes.')
return True, u''

View File

@ -58,7 +58,7 @@ class CustomTab(SettingsTab):
self.CustomModeGroupBox.setTitle(translate('CustomPlugin.CustomTab',
'Custom Display'))
self.DisplayFooterCheckBox.setText(
translate('CustomPlugin.CustomTab', 'Display Footer'))
translate('CustomPlugin.CustomTab', 'Display footer'))
def onDisplayFooterCheckBoxChanged(self, check_state):
self.displayFooter = False

View File

@ -123,7 +123,7 @@ class CustomMediaItem(MediaManagerItem):
"""
if check_item_selected(self.ListView,
translate('CustomPlugin.MediaItem',
'You must select an item to edit.')):
'You haven\'t selected an item to edit.')):
item = self.ListView.currentItem()
item_id = (item.data(QtCore.Qt.UserRole)).toInt()[0]
self.parent.edit_custom_form.loadCustom(item_id, False)
@ -136,7 +136,7 @@ class CustomMediaItem(MediaManagerItem):
"""
if check_item_selected(self.ListView,
translate('CustomPlugin.MediaItem',
'You must select an item to delete.')):
'You haven\'t selected an item to delete.')):
row_list = [item.row() for item in self.ListView.selectedIndexes()]
row_list.sort(reverse=True)
id_list = [(item.data(QtCore.Qt.UserRole)).toInt()[0]