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.
"""
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,
translate('OpenLP.ThemeForm', 'Select Image'), u'',
images_filter)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -168,17 +168,17 @@ class PresentationPlugin(Plugin):
}
# Middle Header Bar
tooltips = {
load: translate('PresentationPlugin', 'Load a new Presentation')
import: u''
new: u''
edit: u''
load: translate('PresentationPlugin', 'Load a new Presentation'),
import: u'',
new: u'',
edit: u'',
delete: translate('PresentationPlugin',
'Delete the selected Presentation')
'Delete the selected Presentation'),
preview: translate('PresentationPlugin',
'Preview the selected Presentation')
'Preview the selected Presentation'),
live: translate('PresentationPlugin',
'Send the selected Presentation live')
'Send the selected Presentation live'),
service: translate('PresentationPlugin',
'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
tooltips = {
load: u''
import: u''
new: translate('SongsPlugin', 'Add a new Song')
edit: translate('SongsPlugin', 'Edit the selected Song')
delete: translate('SongsPlugin', 'Delete the selected Song')
preview: translate('SongsPlugin', 'Preview the selected Song')
live: translate('SongsPlugin', 'Send the selected Song live')
load: u'',
import: u'',
new: translate('SongsPlugin', 'Add a new Song'),
edit: translate('SongsPlugin', 'Edit the selected Song'),
delete: translate('SongsPlugin', 'Delete the selected Song'),
preview: translate('SongsPlugin', 'Preview the selected Song'),
live: translate('SongsPlugin', 'Send the selected Song live'),
service: translate('SongsPlugin',
'Add the selected Song to the service')
}