forked from openlp/openlp
Fixed some wrong translate context and some indentation errors
This commit is contained in:
commit
2df6bf5ef5
@ -120,7 +120,7 @@ class OpenLPToolbar(QtGui.QToolBar):
|
|||||||
try:
|
try:
|
||||||
if self.icons[title]:
|
if self.icons[title]:
|
||||||
return self.icons[title]
|
return self.icons[title]
|
||||||
except NameError:
|
except KeyError:
|
||||||
log.exception(u'getIconFromTitle - no icon for %s' % title)
|
log.exception(u'getIconFromTitle - no icon for %s' % title)
|
||||||
return QtGui.QIcon()
|
return QtGui.QIcon()
|
||||||
|
|
||||||
|
@ -115,19 +115,19 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.Toolbar = OpenLPToolbar(self)
|
self.Toolbar = OpenLPToolbar(self)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'New Service'),
|
translate(u'ServiceManager', u'New Service'),
|
||||||
u':/general/general_new.png',
|
u':/general/general_new.png',
|
||||||
translate(u'ServiceManager', u'Create a new service'),
|
translate(u'ServiceManager', u'Create a new service'),
|
||||||
self.onNewService)
|
self.onNewService)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'Open Service'),
|
translate(u'ServiceManager', u'Open Service'),
|
||||||
u':/general/general_open.png',
|
u':/general/general_open.png',
|
||||||
translate(u'ServiceManager', u'Load an existing service'),
|
translate(u'ServiceManager', u'Load an existing service'),
|
||||||
self.onLoadService)
|
self.onLoadService)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'Save Service'),
|
translate(u'ServiceManager', u'Save Service'),
|
||||||
u':/general/general_save.png',
|
u':/general/general_save.png',
|
||||||
translate(u'ServiceManager', u'Save this service'),
|
translate(u'ServiceManager', u'Save this service'),
|
||||||
self.onSaveService)
|
self.onSaveService)
|
||||||
self.Toolbar.addSeparator()
|
self.Toolbar.addSeparator()
|
||||||
self.ThemeLabel = QtGui.QLabel(translate(u'ServiceManager', u'Theme:'),
|
self.ThemeLabel = QtGui.QLabel(translate(u'ServiceManager', u'Theme:'),
|
||||||
self)
|
self)
|
||||||
@ -168,28 +168,28 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.OrderToolbar = OpenLPToolbar(self)
|
self.OrderToolbar = OpenLPToolbar(self)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'Move to &top'),
|
translate(u'ServiceManager', u'Move to &top'),
|
||||||
u':/services/service_top.png',
|
u':/services/service_top.png',
|
||||||
translate(u'ServiceManager', u'Move to top'), self.onServiceTop)
|
translate(u'ServiceManager', u'Move to top'), self.onServiceTop)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'Move &up'),
|
translate(u'ServiceManager', u'Move &up'),
|
||||||
u':/services/service_up.png',
|
u':/services/service_up.png',
|
||||||
translate(u'ServiceManager', u'Move up order'), self.onServiceUp)
|
translate(u'ServiceManager', u'Move up order'), self.onServiceUp)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'Move &down'),
|
translate(u'ServiceManager', u'Move &down'),
|
||||||
u':/services/service_down.png',
|
u':/services/service_down.png',
|
||||||
translate(u'ServiceManager', u'Move down order'),
|
translate(u'ServiceManager', u'Move down order'),
|
||||||
self.onServiceDown)
|
self.onServiceDown)
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'Move to &bottom'),
|
translate(u'ServiceManager', u'Move to &bottom'),
|
||||||
u':/services/service_bottom.png',
|
u':/services/service_bottom.png',
|
||||||
translate(u'ServiceManager', u'Move to end'),
|
translate(u'ServiceManager', u'Move to end'),
|
||||||
self.onServiceEnd)
|
self.onServiceEnd)
|
||||||
self.OrderToolbar.addSeparator()
|
self.OrderToolbar.addSeparator()
|
||||||
self.OrderToolbar.addToolbarButton(
|
self.OrderToolbar.addToolbarButton(
|
||||||
translate(u'ServiceManager', u'&Delete From Service'),
|
translate(u'ServiceManager', u'&Delete From Service'),
|
||||||
u':/general/general_delete.png',
|
u':/general/general_delete.png',
|
||||||
translate(u'ServiceManager', u'Delete From Service'),
|
translate(u'ServiceManager', u'Delete From Service'),
|
||||||
self.onDeleteFromService)
|
self.onDeleteFromService)
|
||||||
self.Layout.addWidget(self.OrderToolbar)
|
self.Layout.addWidget(self.OrderToolbar)
|
||||||
# Connect up our signals and slots
|
# Connect up our signals and slots
|
||||||
QtCore.QObject.connect(self.ThemeComboBox,
|
QtCore.QObject.connect(self.ThemeComboBox,
|
||||||
|
@ -179,34 +179,34 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'First Slide', u':/slides/slide_first.png',
|
u'First Slide', u':/slides/slide_first.png',
|
||||||
translate(u'SlideController', u'Move to first'),
|
translate(u'SlideController', u'Move to first'),
|
||||||
self.onSlideSelectedFirst)
|
self.onSlideSelectedFirst)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Previous Slide', u':/slides/slide_previous.png',
|
u'Previous Slide', u':/slides/slide_previous.png',
|
||||||
translate(u'SlideController', u'Move to previous'),
|
translate(u'SlideController', u'Move to previous'),
|
||||||
self.onSlideSelectedPrevious)
|
self.onSlideSelectedPrevious)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Next Slide', u':/slides/slide_next.png',
|
u'Next Slide', u':/slides/slide_next.png',
|
||||||
translate(u'SlideController', u'Move to next'),
|
translate(u'SlideController', u'Move to next'),
|
||||||
self.onSlideSelectedNext)
|
self.onSlideSelectedNext)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Last Slide', u':/slides/slide_last.png',
|
u'Last Slide', u':/slides/slide_last.png',
|
||||||
translate(u'SlideController', u'Move to last'),
|
translate(u'SlideController', u'Move to last'),
|
||||||
self.onSlideSelectedLast)
|
self.onSlideSelectedLast)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
||||||
self.blankButton = self.Toolbar.addToolbarButton(
|
self.blankButton = self.Toolbar.addToolbarButton(
|
||||||
u'Blank Screen', u':/slides/slide_blank.png',
|
u'Blank Screen', u':/slides/slide_blank.png',
|
||||||
translate(u'SlideController', u'Blank Screen'),
|
translate(u'SlideController', u'Blank Screen'),
|
||||||
self.onBlankDisplay, True)
|
self.onBlankDisplay, True)
|
||||||
self.themeButton = self.Toolbar.addToolbarButton(
|
self.themeButton = self.Toolbar.addToolbarButton(
|
||||||
u'Display Theme', u':/slides/slide_theme.png',
|
u'Display Theme', u':/slides/slide_theme.png',
|
||||||
translate(u'SlideController', u'Theme Screen'),
|
translate(u'SlideController', u'Theme Screen'),
|
||||||
self.onThemeDisplay, True)
|
self.onThemeDisplay, True)
|
||||||
self.hideButton = self.Toolbar.addToolbarButton(
|
self.hideButton = self.Toolbar.addToolbarButton(
|
||||||
u'Hide screen', u':/slides/slide_desktop.png',
|
u'Hide screen', u':/slides/slide_desktop.png',
|
||||||
translate(u'SlideController', u'Hide Screen'),
|
translate(u'SlideController', u'Hide Screen'),
|
||||||
self.onHideDisplay, True)
|
self.onHideDisplay, True)
|
||||||
if not self.isLive:
|
if not self.isLive:
|
||||||
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
self.Toolbar.addToolbarSeparator(u'Close Separator')
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
@ -216,17 +216,17 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Edit Song', u':/general/general_edit.png',
|
u'Edit Song', u':/general/general_edit.png',
|
||||||
translate(u'SlideController', u'Edit and re-preview Song'),
|
translate(u'SlideController', u'Edit and re-preview Song'),
|
||||||
self.onEditSong)
|
self.onEditSong)
|
||||||
if isLive:
|
if isLive:
|
||||||
self.Toolbar.addToolbarSeparator(u'Loop Separator')
|
self.Toolbar.addToolbarSeparator(u'Loop Separator')
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Start Loop', u':/media/media_time.png',
|
u'Start Loop', u':/media/media_time.png',
|
||||||
translate(u'SlideController', u'Start continuous loop'),
|
translate(u'SlideController', u'Start continuous loop'),
|
||||||
self.onStartLoop)
|
self.onStartLoop)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
u'Stop Loop', u':/media/media_stop.png',
|
u'Stop Loop', u':/media/media_stop.png',
|
||||||
translate(u'SlideController', u'Stop continuous loop'),
|
translate(u'SlideController', u'Stop continuous loop'),
|
||||||
self.onStopLoop)
|
self.onStopLoop)
|
||||||
self.DelaySpinBox = QtGui.QSpinBox()
|
self.DelaySpinBox = QtGui.QSpinBox()
|
||||||
self.DelaySpinBox.setMinimum(1)
|
self.DelaySpinBox.setMinimum(1)
|
||||||
self.DelaySpinBox.setMaximum(180)
|
self.DelaySpinBox.setMaximum(180)
|
||||||
@ -242,28 +242,28 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.Mediabar.addToolbarButton(
|
self.Mediabar.addToolbarButton(
|
||||||
u'Media Start', u':/slides/media_playback_start.png',
|
u'Media Start', u':/slides/media_playback_start.png',
|
||||||
translate(u'SlideController', u'Start playing media'),
|
translate(u'SlideController', u'Start playing media'),
|
||||||
self.onMediaPlay)
|
self.onMediaPlay)
|
||||||
self.Mediabar.addToolbarButton(
|
self.Mediabar.addToolbarButton(
|
||||||
u'Media Pause', u':/slides/media_playback_pause.png',
|
u'Media Pause', u':/slides/media_playback_pause.png',
|
||||||
translate(u'SlideController', u'Start playing media'),
|
translate(u'SlideController', u'Start playing media'),
|
||||||
self.onMediaPause)
|
self.onMediaPause)
|
||||||
self.Mediabar.addToolbarButton(
|
self.Mediabar.addToolbarButton(
|
||||||
u'Media Stop', u':/slides/media_playback_stop.png',
|
u'Media Stop', u':/slides/media_playback_stop.png',
|
||||||
translate(u'SlideController', u'Start playing media'),
|
translate(u'SlideController', u'Start playing media'),
|
||||||
self.onMediaStop)
|
self.onMediaStop)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
self.blankButton = self.Mediabar.addToolbarButton(
|
self.blankButton = self.Mediabar.addToolbarButton(
|
||||||
u'Blank Screen', u':/slides/slide_blank.png',
|
u'Blank Screen', u':/slides/slide_blank.png',
|
||||||
translate(u'SlideController', u'Blank Screen'),
|
translate(u'SlideController', u'Blank Screen'),
|
||||||
self.onBlankDisplay, True)
|
self.onBlankDisplay, True)
|
||||||
self.themeButton = self.Mediabar.addToolbarButton(
|
self.themeButton = self.Mediabar.addToolbarButton(
|
||||||
u'Display Theme', u':/slides/slide_theme.png',
|
u'Display Theme', u':/slides/slide_theme.png',
|
||||||
translate(u'SlideController', u'Theme Screen'),
|
translate(u'SlideController', u'Theme Screen'),
|
||||||
self.onThemeDisplay, True)
|
self.onThemeDisplay, True)
|
||||||
self.hideButton = self.Mediabar.addToolbarButton(
|
self.hideButton = self.Mediabar.addToolbarButton(
|
||||||
u'Hide screen', u':/slides/slide_desktop.png',
|
u'Hide screen', u':/slides/slide_desktop.png',
|
||||||
translate(u'SlideController', u'Hide Screen'),
|
translate(u'SlideController', u'Hide Screen'),
|
||||||
self.onHideDisplay, True)
|
self.onHideDisplay, True)
|
||||||
if not self.isLive:
|
if not self.isLive:
|
||||||
self.seekSlider = Phonon.SeekSlider()
|
self.seekSlider = Phonon.SeekSlider()
|
||||||
self.seekSlider.setGeometry(QtCore.QRect(90, 260, 221, 24))
|
self.seekSlider.setGeometry(QtCore.QRect(90, 260, 221, 24))
|
||||||
@ -564,7 +564,7 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.slideList[tag1] = framenumber
|
self.slideList[tag1] = framenumber
|
||||||
self.SongMenu.menu().addAction(
|
self.SongMenu.menu().addAction(
|
||||||
translate(u'SlideController', u'%s'%tag1),
|
translate(u'SlideController', u'%s'%tag1),
|
||||||
self.onSongBarHandler)
|
self.onSongBarHandler)
|
||||||
item.setText(frame[u'text'])
|
item.setText(frame[u'text'])
|
||||||
else:
|
else:
|
||||||
label = QtGui.QLabel()
|
label = QtGui.QLabel()
|
||||||
|
@ -58,20 +58,20 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
translate(u'ThemeManager', u'Create a new theme'), self.onAddTheme)
|
translate(u'ThemeManager', u'Create a new theme'), self.onAddTheme)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ThemeManager', u'Edit Theme'),
|
translate(u'ThemeManager', u'Edit Theme'),
|
||||||
u':/themes/theme_edit.png',
|
u':/themes/theme_edit.png',
|
||||||
translate(u'ThemeManager', u'Edit a theme'), self.onEditTheme)
|
translate(u'ThemeManager', u'Edit a theme'), self.onEditTheme)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ThemeManager', u'Delete Theme'),
|
translate(u'ThemeManager', u'Delete Theme'),
|
||||||
u':/general/general_delete.png',
|
u':/general/general_delete.png',
|
||||||
translate(u'ThemeManager', u'Delete a theme'), self.onDeleteTheme)
|
translate(u'ThemeManager', u'Delete a theme'), self.onDeleteTheme)
|
||||||
self.Toolbar.addSeparator()
|
self.Toolbar.addSeparator()
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ThemeManager', u'Import Theme'),
|
translate(u'ThemeManager', u'Import Theme'),
|
||||||
u':/general/general_import.png',
|
u':/general/general_import.png',
|
||||||
translate(u'ThemeManager', u'Import a theme'), self.onImportTheme)
|
translate(u'ThemeManager', u'Import a theme'), self.onImportTheme)
|
||||||
self.Toolbar.addToolbarButton(
|
self.Toolbar.addToolbarButton(
|
||||||
translate(u'ThemeManager', u'Export Theme'),
|
translate(u'ThemeManager', u'Export Theme'),
|
||||||
u':/general/general_export.png',
|
u':/general/general_export.png',
|
||||||
translate(u'ThemeManager', u'Export a theme'), self.onExportTheme)
|
translate(u'ThemeManager', u'Export a theme'), self.onExportTheme)
|
||||||
self.ThemeWidget = QtGui.QWidgetAction(self.Toolbar)
|
self.ThemeWidget = QtGui.QWidgetAction(self.Toolbar)
|
||||||
self.Layout.addWidget(self.Toolbar)
|
self.Layout.addWidget(self.Toolbar)
|
||||||
@ -192,9 +192,9 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
for plugin in self.parent.plugin_manager.plugins:
|
for plugin in self.parent.plugin_manager.plugins:
|
||||||
if not plugin.can_delete_theme(theme):
|
if not plugin.can_delete_theme(theme):
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'ThemeManager', u'Error'),
|
translate(u'ThemeManager', u'Error'),
|
||||||
translate(u'ThemeManager',
|
translate(u'ThemeManager',
|
||||||
u'Theme %s is use in %s plugin' % (theme,
|
u'Theme %s is use in %s plugin' % (theme,
|
||||||
plugin.name)))
|
plugin.name)))
|
||||||
return
|
return
|
||||||
if unicode(self.parent.ServiceManagerContents.ThemeComboBox.currentText()) == theme:
|
if unicode(self.parent.ServiceManagerContents.ThemeComboBox.currentText()) == theme:
|
||||||
|
@ -64,9 +64,9 @@ class alertsPlugin(Plugin):
|
|||||||
self.toolsAlertItem.setIcon(AlertIcon)
|
self.toolsAlertItem.setIcon(AlertIcon)
|
||||||
self.toolsAlertItem.setObjectName(u'toolsAlertItem')
|
self.toolsAlertItem.setObjectName(u'toolsAlertItem')
|
||||||
self.toolsAlertItem.setText(
|
self.toolsAlertItem.setText(
|
||||||
translate('AlertsPlugin.AlertsPlugin', u'&Alert'))
|
translate(u'AlertsPlugin.AlertsPlugin', u'&Alert'))
|
||||||
self.toolsAlertItem.setStatusTip(
|
self.toolsAlertItem.setStatusTip(
|
||||||
translate('AlertsPlugin.AlertsPlugin', u'Show an alert message'))
|
translate(u'AlertsPlugin.AlertsPlugin', u'Show an alert message'))
|
||||||
self.toolsAlertItem.setShortcut(u'F7')
|
self.toolsAlertItem.setShortcut(u'F7')
|
||||||
self.service_manager.parent.ToolsMenu.addAction(self.toolsAlertItem)
|
self.service_manager.parent.ToolsMenu.addAction(self.toolsAlertItem)
|
||||||
QtCore.QObject.connect(self.toolsAlertItem,
|
QtCore.QObject.connect(self.toolsAlertItem,
|
||||||
@ -94,7 +94,7 @@ class alertsPlugin(Plugin):
|
|||||||
self.alertForm.exec_()
|
self.alertForm.exec_()
|
||||||
|
|
||||||
def about(self):
|
def about(self):
|
||||||
about_text = translate('AlertsPlugin.AlertsPlugin',
|
about_text = translate(u'AlertsPlugin.AlertsPlugin',
|
||||||
u'<b>Alerts Plugin</b><br>This plugin '
|
u'<b>Alerts Plugin</b><br>This plugin '
|
||||||
'controls the displaying of alerts on the presentations screen')
|
u'controls the displaying of alerts on the presentations screen')
|
||||||
return about_text
|
return about_text
|
||||||
|
@ -313,17 +313,17 @@ class Ui_BibleImportWizard(object):
|
|||||||
self.TitleLabel.setText(
|
self.TitleLabel.setText(
|
||||||
u'<span style="font-size:14pt; font-weight:600;">%s</span>' % \
|
u'<span style="font-size:14pt; font-weight:600;">%s</span>' % \
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Welcome to the Bible Import Wizard'))
|
u'Welcome to the Bible Import Wizard'))
|
||||||
self.InformationLabel.setText(
|
self.InformationLabel.setText(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'This wizard will help you to import Bibles from a '
|
u'This wizard will help you to import Bibles from a '
|
||||||
u'variety of formats. Click the next button below to start the '
|
u'variety of formats. Click the next button below to start the '
|
||||||
u'process by selecting a format to import from.'))
|
u'process by selecting a format to import from.'))
|
||||||
self.SelectPage.setTitle(translate(u'BiblesPlugin.ImportWizardForm',
|
self.SelectPage.setTitle(translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Select Import Source'))
|
u'Select Import Source'))
|
||||||
self.SelectPage.setSubTitle(
|
self.SelectPage.setSubTitle(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Select the import format, and where to import from.'))
|
u'Select the import format, and where to import from.'))
|
||||||
self.FormatLabel.setText(
|
self.FormatLabel.setText(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Format:'))
|
translate(u'BiblesPlugin.ImportWizardForm', u'Format:'))
|
||||||
self.FormatComboBox.setItemText(0,
|
self.FormatComboBox.setItemText(0,
|
||||||
@ -362,12 +362,12 @@ class Ui_BibleImportWizard(object):
|
|||||||
self.WebDownloadTabWidget.setTabText(
|
self.WebDownloadTabWidget.setTabText(
|
||||||
self.WebDownloadTabWidget.indexOf(self.ProxyServerTab),
|
self.WebDownloadTabWidget.indexOf(self.ProxyServerTab),
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Proxy Server (Optional)'))
|
u'Proxy Server (Optional)'))
|
||||||
self.LicenseDetailsPage.setTitle(
|
self.LicenseDetailsPage.setTitle(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'License Details'))
|
translate(u'BiblesPlugin.ImportWizardForm', u'License Details'))
|
||||||
self.LicenseDetailsPage.setSubTitle(
|
self.LicenseDetailsPage.setSubTitle(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Set up the Bible\'s license details.'))
|
u'Set up the Bible\'s license details.'))
|
||||||
self.VersionNameLabel.setText(
|
self.VersionNameLabel.setText(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Version Name:'))
|
translate(u'BiblesPlugin.ImportWizardForm', u'Version Name:'))
|
||||||
self.CopyrightLabel.setText(
|
self.CopyrightLabel.setText(
|
||||||
@ -378,7 +378,7 @@ class Ui_BibleImportWizard(object):
|
|||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Importing'))
|
translate(u'BiblesPlugin.ImportWizardForm', u'Importing'))
|
||||||
self.ImportPage.setSubTitle(
|
self.ImportPage.setSubTitle(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Please wait while your Bible is imported.'))
|
u'Please wait while your Bible is imported.'))
|
||||||
self.ImportProgressLabel.setText(
|
self.ImportProgressLabel.setText(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Ready.'))
|
translate(u'BiblesPlugin.ImportWizardForm', u'Ready.'))
|
||||||
self.ImportProgressBar.setFormat(u'%p%')
|
self.ImportProgressBar.setFormat(u'%p%')
|
||||||
|
@ -123,26 +123,32 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
if self.field(u'source_format').toInt()[0] == BibleFormat.OSIS:
|
if self.field(u'source_format').toInt()[0] == BibleFormat.OSIS:
|
||||||
if self.field(u'osis_location').toString() == u'':
|
if self.field(u'osis_location').toString() == u'':
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Invalid Bible Location'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'You need to specify a file to import your '
|
u'Invalid Bible Location'),
|
||||||
'Bible from.'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
|
u'You need to specify a file to import your '
|
||||||
|
u'Bible from.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.OSISLocationEdit.setFocus()
|
self.OSISLocationEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
elif self.field(u'source_format').toInt()[0] == BibleFormat.CSV:
|
elif self.field(u'source_format').toInt()[0] == BibleFormat.CSV:
|
||||||
if self.field(u'csv_booksfile').toString() == u'':
|
if self.field(u'csv_booksfile').toString() == u'':
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Invalid Books File'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'You need to specify a file with books of '
|
u'Invalid Books File'),
|
||||||
'the Bible to use in the import.'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
|
u'You need to specify a file with books of '
|
||||||
|
u'the Bible to use in the import.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.BooksLocationEdit.setFocus()
|
self.BooksLocationEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
elif self.field(u'csv_versefile').toString() == u'':
|
elif self.field(u'csv_versefile').toString() == u'':
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Invalid Verse File'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'You need to specify a file of Bible '
|
u'Invalid Verse File'),
|
||||||
'verses to import.'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
|
u'You need to specify a file of Bible '
|
||||||
|
u'verses to import.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.CsvVerseLocationEdit.setFocus()
|
self.CsvVerseLocationEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
@ -150,9 +156,11 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
BibleFormat.OpenSong:
|
BibleFormat.OpenSong:
|
||||||
if self.field(u'opensong_file').toString() == u'':
|
if self.field(u'opensong_file').toString() == u'':
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Invalid OpenSong Bible'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'You need to specify an OpenSong Bible '
|
u'Invalid OpenSong Bible'),
|
||||||
'file to import.'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
|
u'You need to specify an OpenSong Bible '
|
||||||
|
u'file to import.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.OpenSongFileEdit.setFocus()
|
self.OpenSongFileEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
@ -164,26 +172,32 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
self.field(u'license_copyright'))
|
self.field(u'license_copyright'))
|
||||||
if license_version == u'':
|
if license_version == u'':
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Empty Version Name'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'You need to specify a version name for your '
|
u'Empty Version Name'),
|
||||||
'Bible.'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
|
u'You need to specify a version name for your '
|
||||||
|
u'Bible.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.VersionNameEdit.setFocus()
|
self.VersionNameEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
elif license_copyright == u'':
|
elif license_copyright == u'':
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Empty Copyright'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'You need to set a copyright for your Bible! '
|
u'Empty Copyright'),
|
||||||
'Bibles in the Public Domain need to be marked as '
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
'such.'),
|
u'You need to set a copyright for your Bible! '
|
||||||
|
u'Bibles in the Public Domain need to be marked as '
|
||||||
|
u'such.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.CopyrightEdit.setFocus()
|
self.CopyrightEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
elif self.manager.exists(license_version):
|
elif self.manager.exists(license_version):
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'Bible Exists'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
translate(u'BiblesPlugin.ImportWizardForm', u'This Bible already exists! Please import '
|
u'Bible Exists'),
|
||||||
'a different Bible or first delete the existing one.'),
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
|
u'This Bible already exists! Please import '
|
||||||
|
u'a different Bible or first delete the existing one.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.VersionNameEdit.setFocus()
|
self.VersionNameEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
@ -227,7 +241,7 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
"""
|
"""
|
||||||
self.getFileName(
|
self.getFileName(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Open Verses CSV File'),
|
u'Open Verses CSV File'),
|
||||||
self.CsvVerseLocationEdit)
|
self.CsvVerseLocationEdit)
|
||||||
|
|
||||||
def onOpenSongBrowseButtonClicked(self):
|
def onOpenSongBrowseButtonClicked(self):
|
||||||
@ -431,11 +445,11 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
self.manager.reload_bibles()
|
self.manager.reload_bibles()
|
||||||
self.ImportProgressLabel.setText(
|
self.ImportProgressLabel.setText(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Finished import.'))
|
u'Finished import.'))
|
||||||
else:
|
else:
|
||||||
self.ImportProgressLabel.setText(
|
self.ImportProgressLabel.setText(
|
||||||
translate(u'BiblesPlugin.ImportWizardForm',
|
translate(u'BiblesPlugin.ImportWizardForm',
|
||||||
u'Your Bible import failed.'))
|
u'Your Bible import failed.'))
|
||||||
importer.delete()
|
importer.delete()
|
||||||
|
|
||||||
def postImport(self):
|
def postImport(self):
|
||||||
|
@ -71,7 +71,7 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
return unicode(obj)
|
return unicode(obj)
|
||||||
|
|
||||||
def initPluginNameVisible(self):
|
def initPluginNameVisible(self):
|
||||||
self.PluginNameVisible = translate(u'BiblesPlugin,MediaItem', u'Bible')
|
self.PluginNameVisible = translate(u'BiblesPlugin.MediaItem', u'Bible')
|
||||||
|
|
||||||
def requiredIcons(self):
|
def requiredIcons(self):
|
||||||
MediaManagerItem.requiredIcons(self)
|
MediaManagerItem.requiredIcons(self)
|
||||||
@ -147,7 +147,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
self.QuickMessage = QtGui.QLabel(self.QuickTab)
|
self.QuickMessage = QtGui.QLabel(self.QuickTab)
|
||||||
self.QuickMessage.setObjectName(u'QuickMessage')
|
self.QuickMessage.setObjectName(u'QuickMessage')
|
||||||
self.QuickLayout.addWidget(self.QuickMessage, 6, 0, 1, 3)
|
self.QuickLayout.addWidget(self.QuickMessage, 6, 0, 1, 3)
|
||||||
self.SearchTabWidget.addTab(self.QuickTab, translate(u'BiblesPlugin,MediaItem', u'Quick'))
|
self.SearchTabWidget.addTab(self.QuickTab,
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Quick'))
|
||||||
QuickSpacerItem = QtGui.QSpacerItem(20, 35, QtGui.QSizePolicy.Minimum,
|
QuickSpacerItem = QtGui.QSpacerItem(20, 35, QtGui.QSizePolicy.Minimum,
|
||||||
QtGui.QSizePolicy.Expanding)
|
QtGui.QSizePolicy.Expanding)
|
||||||
self.QuickLayout.addItem(QuickSpacerItem, 6, 2, 1, 1)
|
self.QuickLayout.addItem(QuickSpacerItem, 6, 2, 1, 1)
|
||||||
@ -231,7 +232,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
self.AdvancedMessage = QtGui.QLabel(self.AdvancedTab)
|
self.AdvancedMessage = QtGui.QLabel(self.AdvancedTab)
|
||||||
self.AdvancedMessage.setObjectName(u'AdvancedMessage')
|
self.AdvancedMessage.setObjectName(u'AdvancedMessage')
|
||||||
self.AdvancedLayout.addWidget(self.AdvancedMessage, 8, 0, 1, 3)
|
self.AdvancedLayout.addWidget(self.AdvancedMessage, 8, 0, 1, 3)
|
||||||
self.SearchTabWidget.addTab(self.AdvancedTab, translate(u'BiblesPlugin,MediaItem', u'Advanced'))
|
self.SearchTabWidget.addTab(self.AdvancedTab,
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Advanced'))
|
||||||
# Add the search tab widget to the page layout
|
# Add the search tab widget to the page layout
|
||||||
self.PageLayout.addWidget(self.SearchTabWidget)
|
self.PageLayout.addWidget(self.SearchTabWidget)
|
||||||
# Combo Boxes
|
# Combo Boxes
|
||||||
@ -289,27 +291,48 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
|
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
log.debug(u'retranslateUi')
|
log.debug(u'retranslateUi')
|
||||||
self.QuickVersionLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Version:'))
|
self.QuickVersionLabel.setText(
|
||||||
self.QuickSecondVersionLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Dual:'))
|
translate(u'BiblesPlugin.MediaItem', u'Version:'))
|
||||||
self.QuickSearchLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Search Type:'))
|
self.QuickSecondVersionLabel.setText(
|
||||||
self.QuickSearchLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Find:'))
|
translate(u'BiblesPlugin.MediaItem', u'Dual:'))
|
||||||
self.QuickSearchButton.setText(translate(u'BiblesPlugin,MediaItem', u'Search'))
|
self.QuickSearchLabel.setText(
|
||||||
self.QuickClearLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Results:'))
|
translate(u'BiblesPlugin.MediaItem', u'Search Type:'))
|
||||||
self.AdvancedVersionLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Version:'))
|
self.QuickSearchLabel.setText(
|
||||||
self.AdvancedSecondBibleLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Dual:'))
|
translate(u'BiblesPlugin.MediaItem', u'Find:'))
|
||||||
self.AdvancedBookLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Book:'))
|
self.QuickSearchButton.setText(
|
||||||
self.AdvancedChapterLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Chapter:'))
|
translate(u'BiblesPlugin.MediaItem', u'Search'))
|
||||||
self.AdvancedVerseLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Verse:'))
|
self.QuickClearLabel.setText(
|
||||||
self.AdvancedFromLabel.setText(translate(u'BiblesPlugin,MediaItem', u'From:'))
|
translate(u'BiblesPlugin.MediaItem', u'Results:'))
|
||||||
self.AdvancedToLabel.setText(translate(u'BiblesPlugin,MediaItem', u'To:'))
|
self.AdvancedVersionLabel.setText(
|
||||||
self.AdvancedClearLabel.setText(translate(u'BiblesPlugin,MediaItem', u'Results:'))
|
translate(u'BiblesPlugin.MediaItem', u'Version:'))
|
||||||
self.AdvancedSearchButton.setText(translate(u'BiblesPlugin,MediaItem', u'Search'))
|
self.AdvancedSecondBibleLabel.setText(
|
||||||
self.QuickSearchComboBox.addItem(translate(u'BiblesPlugin,MediaItem', u'Verse Search'))
|
translate(u'BiblesPlugin.MediaItem', u'Dual:'))
|
||||||
self.QuickSearchComboBox.addItem(translate(u'BiblesPlugin,MediaItem', u'Text Search'))
|
self.AdvancedBookLabel.setText(
|
||||||
self.ClearQuickSearchComboBox.addItem(translate(u'BiblesPlugin,MediaItem', u'Clear'))
|
translate(u'BiblesPlugin.MediaItem', u'Book:'))
|
||||||
self.ClearQuickSearchComboBox.addItem(translate(u'BiblesPlugin,MediaItem', u'Keep'))
|
self.AdvancedChapterLabel.setText(
|
||||||
self.ClearAdvancedSearchComboBox.addItem(translate(u'BiblesPlugin,MediaItem', u'Clear'))
|
translate(u'BiblesPlugin.MediaItem', u'Chapter:'))
|
||||||
self.ClearAdvancedSearchComboBox.addItem(translate(u'BiblesPlugin,MediaItem', u'Keep'))
|
self.AdvancedVerseLabel.setText(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Verse:'))
|
||||||
|
self.AdvancedFromLabel.setText(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'From:'))
|
||||||
|
self.AdvancedToLabel.setText(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'To:'))
|
||||||
|
self.AdvancedClearLabel.setText(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Results:'))
|
||||||
|
self.AdvancedSearchButton.setText(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Search'))
|
||||||
|
self.QuickSearchComboBox.addItem(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Verse Search'))
|
||||||
|
self.QuickSearchComboBox.addItem(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Text Search'))
|
||||||
|
self.ClearQuickSearchComboBox.addItem(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Clear'))
|
||||||
|
self.ClearQuickSearchComboBox.addItem(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Keep'))
|
||||||
|
self.ClearAdvancedSearchComboBox.addItem(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Clear'))
|
||||||
|
self.ClearAdvancedSearchComboBox.addItem(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Keep'))
|
||||||
|
|
||||||
def initialise(self):
|
def initialise(self):
|
||||||
log.debug(u'bible manager initialise')
|
log.debug(u'bible manager initialise')
|
||||||
@ -363,8 +386,9 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
|
|
||||||
def onNoBookFound(self):
|
def onNoBookFound(self):
|
||||||
QtGui.QMessageBox.critical(self,
|
QtGui.QMessageBox.critical(self,
|
||||||
translate(u'BiblesPlugin,MediaItem', u'No Book Found'),
|
translate(u'BiblesPlugin.MediaItem', u'No Book Found'),
|
||||||
translate(u'BiblesPlugin,MediaItem', u'No matching book could be found in this Bible.'),
|
translate(u'BiblesPlugin.MediaItem',
|
||||||
|
u'No matching book could be found in this Bible.'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok),
|
||||||
QtGui.QMessageBox.Ok
|
QtGui.QMessageBox.Ok
|
||||||
)
|
)
|
||||||
@ -532,9 +556,11 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
bible_text = u''
|
bible_text = u''
|
||||||
if not service_item.title:
|
if not service_item.title:
|
||||||
service_item.title = u'%s %s' % (book, verse_text)
|
service_item.title = u'%s %s' % (book, verse_text)
|
||||||
elif service_item.title.find(translate('MediaItem',u'etc')) == -1:
|
elif service_item.title.find(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'etc')) == -1:
|
||||||
service_item.title = u'%s, %s' \
|
service_item.title = u'%s, %s' \
|
||||||
% (service_item.title, translate('MediaItem',u'etc'))
|
% (service_item.title,
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'etc'))
|
||||||
if len(self.parent.settings_tab.bible_theme) == 0:
|
if len(self.parent.settings_tab.bible_theme) == 0:
|
||||||
service_item.theme = None
|
service_item.theme = None
|
||||||
else:
|
else:
|
||||||
@ -583,7 +609,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
self.verses = self.parent.manager.get_verse_count(bible, book, 1)
|
self.verses = self.parent.manager.get_verse_count(bible, book, 1)
|
||||||
if self.verses == 0:
|
if self.verses == 0:
|
||||||
self.AdvancedSearchButton.setEnabled(False)
|
self.AdvancedSearchButton.setEnabled(False)
|
||||||
self.AdvancedMessage.setText(translate(u'BiblesPlugin,MediaItem', u'Bible not fully loaded'))
|
self.AdvancedMessage.setText(
|
||||||
|
translate(u'BiblesPlugin.MediaItem', u'Bible not fully loaded'))
|
||||||
else:
|
else:
|
||||||
self.AdvancedSearchButton.setEnabled(True)
|
self.AdvancedSearchButton.setEnabled(True)
|
||||||
self.AdvancedMessage.setText(u'')
|
self.AdvancedMessage.setText(u'')
|
||||||
|
@ -59,10 +59,14 @@ class ImageMediaItem(MediaManagerItem):
|
|||||||
self.PluginNameVisible = translate(u'ImagePlugin.MediaItem', u'Image')
|
self.PluginNameVisible = translate(u'ImagePlugin.MediaItem', u'Image')
|
||||||
|
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
self.OnNewPrompt = translate(u'ImagePlugin.MediaItem',
|
self.OnNewPrompt = translate(u'ImagePlugin.MediaItem',
|
||||||
u'Select Image(s)')
|
u'Select Image(s)')
|
||||||
self.OnNewFileMasks = translate(u'ImagePlugin.MediaItem',
|
file_formats = u''
|
||||||
u'Images (*.jpg *.jpeg *.gif *.png *.bmp);; All files (*)')
|
for file_format in QtGui.QImageReader.supportedImageFormats():
|
||||||
|
file_formats += u'*.%s ' % file_format
|
||||||
|
self.OnNewFileMasks = unicode(
|
||||||
|
translate(u'ImagePlugin.MediaItem',
|
||||||
|
u'Images (%s);; All files (*)')) % file_formats
|
||||||
|
|
||||||
def requiredIcons(self):
|
def requiredIcons(self):
|
||||||
MediaManagerItem.requiredIcons(self)
|
MediaManagerItem.requiredIcons(self)
|
||||||
|
@ -471,7 +471,7 @@ class Ui_EditSongDialog(object):
|
|||||||
self.CopyrightGroupBox.setTitle(
|
self.CopyrightGroupBox.setTitle(
|
||||||
translate(u'SongsPlugin.EditSongForm', u'Copyright Information'))
|
translate(u'SongsPlugin.EditSongForm', u'Copyright Information'))
|
||||||
self.CopyrightInsertButton.setText(
|
self.CopyrightInsertButton.setText(
|
||||||
translate('EditSongForm', u'\xa9'))
|
translate(u'SongsPlugin.EditSongForm', u'\xa9'))
|
||||||
self.CCLILabel.setText(
|
self.CCLILabel.setText(
|
||||||
translate(u'SongsPlugin.EditSongForm', u'CCLI Number:'))
|
translate(u'SongsPlugin.EditSongForm', u'CCLI Number:'))
|
||||||
self.CommentsGroupBox.setTitle(
|
self.CommentsGroupBox.setTitle(
|
||||||
|
@ -485,8 +485,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
self.VerseOrderEdit.setFocus()
|
self.VerseOrderEdit.setFocus()
|
||||||
return False, \
|
return False, \
|
||||||
translate(u'SongsPlugin.EditSongForm',
|
translate(u'SongsPlugin.EditSongForm',
|
||||||
u'Invalid verse entry, values must be I,B,T,P,E,O,V,C '
|
u'Invalid verse entry, values must be I,B,T,P,E,O,V,C '
|
||||||
u'followed by a number')
|
u'followed by a number')
|
||||||
return True, u''
|
return True, u''
|
||||||
|
|
||||||
def onTitleEditItemLostFocus(self):
|
def onTitleEditItemLostFocus(self):
|
||||||
|
@ -103,8 +103,10 @@ class EditVerseForm(QtGui.QDialog, Ui_EditVerseDialog):
|
|||||||
if match:
|
if match:
|
||||||
verse_type = match.group(1)
|
verse_type = match.group(1)
|
||||||
verse_number = int(match.group(2))
|
verse_number = int(match.group(2))
|
||||||
self.VerseTypeComboBox.setCurrentIndex(VerseType.from_string(verse_type))
|
verse_type_index = VerseType.from_string(verse_type)
|
||||||
self.VerseNumberBox.setValue(verse_number)
|
if verse_type_index:
|
||||||
|
self.VerseTypeComboBox.setCurrentIndex(verse_type_index)
|
||||||
|
self.VerseNumberBox.setValue(verse_number)
|
||||||
|
|
||||||
def setVerse(self, text, single=False,
|
def setVerse(self, text, single=False,
|
||||||
tag=u'%s:1' % VerseType.to_string(VerseType.Verse)):
|
tag=u'%s:1' % VerseType.to_string(VerseType.Verse)):
|
||||||
|
@ -51,7 +51,7 @@ class TopicsForm(QtGui.QDialog, Ui_TopicsDialog):
|
|||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(
|
||||||
self, translate(u'SongsPlugin.TopicsForm', u'Error'),
|
self, translate(u'SongsPlugin.TopicsForm', u'Error'),
|
||||||
translate(u'SongsPlugin.TopicsForm',
|
translate(u'SongsPlugin.TopicsForm',
|
||||||
u'You need to type in a topic name!'),
|
u'You need to type in a topic name!'),
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
||||||
self.NameEdit.setFocus()
|
self.NameEdit.setFocus()
|
||||||
return False
|
return False
|
||||||
|
@ -208,8 +208,8 @@ class SongMediaItem(MediaManagerItem):
|
|||||||
for author in searchresults:
|
for author in searchresults:
|
||||||
for song in author.songs:
|
for song in author.songs:
|
||||||
song_detail = unicode(
|
song_detail = unicode(
|
||||||
translate(u'SongsPlugin.MediaItem', u'%s (%s)') %
|
translate(u'SongsPlugin.MediaItem', u'%s (%s)')) % \
|
||||||
(author.display_name, song.title))
|
(author.display_name, song.title)
|
||||||
song_name = QtGui.QListWidgetItem(song_detail)
|
song_name = QtGui.QListWidgetItem(song_detail)
|
||||||
song_name.setData(QtCore.Qt.UserRole, QtCore.QVariant(song.id))
|
song_name.setData(QtCore.Qt.UserRole, QtCore.QVariant(song.id))
|
||||||
self.ListView.addItem(song_name)
|
self.ListView.addItem(song_name)
|
||||||
|
@ -89,7 +89,7 @@ class Ui_SongUsageDetailDialog(object):
|
|||||||
def retranslateUi(self, SongUsageDetailDialog):
|
def retranslateUi(self, SongUsageDetailDialog):
|
||||||
SongUsageDetailDialog.setWindowTitle(
|
SongUsageDetailDialog.setWindowTitle(
|
||||||
translate(u'SongsPlugin.AuditDetailDialog',
|
translate(u'SongsPlugin.AuditDetailDialog',
|
||||||
u'Song Usage Extraction'))
|
u'Song Usage Extraction'))
|
||||||
self.DateRangeGroupBox.setTitle(
|
self.DateRangeGroupBox.setTitle(
|
||||||
translate(u'SongsPlugin.AuditDetailDialog', u'Select Date Range'))
|
translate(u'SongsPlugin.AuditDetailDialog', u'Select Date Range'))
|
||||||
self.ToLabel.setText(
|
self.ToLabel.setText(
|
||||||
|
Loading…
Reference in New Issue
Block a user