This commit is contained in:
Jon Tibble 2011-02-14 18:20:59 +00:00
parent 5800d01fa1
commit ba8918a1ea
8 changed files with 48 additions and 47 deletions

View File

@ -483,7 +483,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
Background Image button pushed. Background Image button pushed.
""" """
images_filter = get_images_filter() images_filter = get_images_filter()
images_filter = '%s;;%s (*.*) (*)' % (images_filter, UiStrings.AllFiles) images_filter = u'%s;;%s (*.*) (*)' % (
images_filter, UiStrings.AllFiles)
filename = QtGui.QFileDialog.getOpenFileName(self, filename = QtGui.QFileDialog.getOpenFileName(self,
translate('OpenLP.ThemeForm', 'Select Image'), u'', translate('OpenLP.ThemeForm', 'Select Image'), u'',
images_filter) images_filter)

View File

@ -406,8 +406,8 @@ class ThemeManager(QtGui.QWidget):
files = QtGui.QFileDialog.getOpenFileNames(self, files = QtGui.QFileDialog.getOpenFileNames(self,
translate('OpenLP.ThemeManager', 'Select Theme Import File'), translate('OpenLP.ThemeManager', 'Select Theme Import File'),
SettingsManager.get_last_dir(self.settingsSection), SettingsManager.get_last_dir(self.settingsSection),
translate('OpenLP.ThemeManager', 'Theme v1 (*.theme);;' unicode(translate('OpenLP.ThemeManager', 'Theme v1 (*.theme);;'
'Theme v2 (*.otz);;%s (*.*)') % UiStrings.AllFiles) 'Theme v2 (*.otz);;%s (*.*)')) % UiStrings.AllFiles)
log.info(u'New Themes %s', unicode(files)) log.info(u'New Themes %s', unicode(files))
if files: if files:
for file in files: for file in files:

View File

@ -130,13 +130,13 @@ class BiblePlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
load: u'' load: u'',
import: translate('BiblesPlugin', 'Import a Bible') import: translate('BiblesPlugin', 'Import a Bible'),
new: translate('BiblesPlugin', 'Add a new Bible') new: translate('BiblesPlugin', 'Add a new Bible'),
edit: translate('BiblesPlugin', 'Edit the selected Bible') edit: translate('BiblesPlugin', 'Edit the selected Bible'),
delete: translate('BiblesPlugin', 'Delete the selected Bible') delete: translate('BiblesPlugin', 'Delete the selected Bible'),
preview: translate('BiblesPlugin', 'Preview the selected Bible') preview: translate('BiblesPlugin', 'Preview the selected Bible'),
live: translate('BiblesPlugin', 'Send the selected Bible live') live: translate('BiblesPlugin', 'Send the selected Bible live'),
service: translate('BiblesPlugin', service: translate('BiblesPlugin',
'Add the selected Bible to the service') 'Add the selected Bible to the service')
} }

View File

@ -107,13 +107,13 @@ class CustomPlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
load: translate('CustomsPlugin', 'Load a new Custom') load: translate('CustomsPlugin', 'Load a new Custom'),
import: translate('CustomsPlugin', 'Import a Custom') import: translate('CustomsPlugin', 'Import a Custom'),
new: translate('CustomsPlugin', 'Add a new Custom') new: translate('CustomsPlugin', 'Add a new Custom'),
edit: translate('CustomsPlugin', 'Edit the selected Custom') edit: translate('CustomsPlugin', 'Edit the selected Custom'),
delete: translate('CustomsPlugin', 'Delete the selected Custom') delete: translate('CustomsPlugin', 'Delete the selected Custom'),
preview: translate('CustomsPlugin', 'Preview the selected Custom') preview: translate('CustomsPlugin', 'Preview the selected Custom'),
live: translate('CustomsPlugin', 'Send the selected Custom live') live: translate('CustomsPlugin', 'Send the selected Custom live'),
service: translate('CustomsPlugin', service: translate('CustomsPlugin',
'Add the selected Custom to the service') 'Add the selected Custom to the service')
} }

View File

@ -70,13 +70,13 @@ class ImagePlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
load: translate('ImagePlugin', 'Load a new Image') load: translate('ImagePlugin', 'Load a new Image'),
import: u'' import: u'',
new: translate('ImagePlugin', 'Add a new Image') new: translate('ImagePlugin', 'Add a new Image'),
edit: translate('ImagePlugin', 'Edit the selected Image') edit: translate('ImagePlugin', 'Edit the selected Image'),
delete: translate('ImagePlugin', 'Delete the selected Image') delete: translate('ImagePlugin', 'Delete the selected Image'),
preview: translate('ImagePlugin', 'Preview the selected Image') preview: translate('ImagePlugin', 'Preview the selected Image'),
live: translate('ImagePlugin', 'Send the selected Image live') live: translate('ImagePlugin', 'Send the selected Image live'),
service: translate('ImagePlugin', service: translate('ImagePlugin',
'Add the selected Image to the service') 'Add the selected Image to the service')
} }

View File

@ -96,13 +96,13 @@ class MediaPlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
load: translate('MediaPlugin', 'Load a new Media') load: translate('MediaPlugin', 'Load a new Media'),
import: u'' import: u'',
new: translate('MediaPlugin', 'Add a new Media') new: translate('MediaPlugin', 'Add a new Media'),
edit: translate('MediaPlugin', 'Edit the selected Media') edit: translate('MediaPlugin', 'Edit the selected Media'),
delete: translate('MediaPlugin', 'Delete the selected Media') delete: translate('MediaPlugin', 'Delete the selected Media'),
preview: translate('MediaPlugin', 'Preview the selected Media') preview: translate('MediaPlugin', 'Preview the selected Media'),
live: translate('MediaPlugin', 'Send the selected Media live') live: translate('MediaPlugin', 'Send the selected Media live'),
service: translate('MediaPlugin', service: translate('MediaPlugin',
'Add the selected Media to the service') 'Add the selected Media to the service')
} }

View File

@ -168,17 +168,17 @@ class PresentationPlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
load: translate('PresentationPlugin', 'Load a new Presentation') load: translate('PresentationPlugin', 'Load a new Presentation'),
import: u'' import: u'',
new: u'' new: u'',
edit: u'' edit: u'',
delete: translate('PresentationPlugin', delete: translate('PresentationPlugin',
'Delete the selected Presentation') 'Delete the selected Presentation'),
preview: translate('PresentationPlugin', preview: translate('PresentationPlugin',
'Preview the selected Presentation') 'Preview the selected Presentation'),
live: translate('PresentationPlugin', live: translate('PresentationPlugin',
'Send the selected Presentation live') 'Send the selected Presentation live'),
service: translate('PresentationPlugin', service: translate('PresentationPlugin',
'Add the selected Presentation to the service') 'Add the selected Presentation to the service')
} }
self.setPluginUiTextStrings(tooltips) self.setPluginUiTextStrings(tooltips)

View File

@ -229,13 +229,13 @@ class SongsPlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
load: u'' load: u'',
import: u'' import: u'',
new: translate('SongsPlugin', 'Add a new Song') new: translate('SongsPlugin', 'Add a new Song'),
edit: translate('SongsPlugin', 'Edit the selected Song') edit: translate('SongsPlugin', 'Edit the selected Song'),
delete: translate('SongsPlugin', 'Delete the selected Song') delete: translate('SongsPlugin', 'Delete the selected Song'),
preview: translate('SongsPlugin', 'Preview the selected Song') preview: translate('SongsPlugin', 'Preview the selected Song'),
live: translate('SongsPlugin', 'Send the selected Song live') live: translate('SongsPlugin', 'Send the selected Song live'),
service: translate('SongsPlugin', service: translate('SongsPlugin',
'Add the selected Song to the service') 'Add the selected Song to the service')
} }