Strings not variable names\!

This commit is contained in:
Jon Tibble 2011-02-14 19:08:18 +00:00
parent ba8918a1ea
commit 5e8b8eedf3
7 changed files with 58 additions and 56 deletions

View File

@ -341,28 +341,28 @@ class Plugin(QtCore.QObject):
""" """
## Load Action ## ## Load Action ##
self.__setNameTextString(StringContent.Load, self.__setNameTextString(StringContent.Load,
UiStrings.Load, tooltips[load]) UiStrings.Load, tooltips[u'load'])
## Import Action ## ## Import Action ##
self.__setNameTextString(StringContent.Import, self.__setNameTextString(StringContent.Import,
UiStrings.Import, tooltips[import]) UiStrings.Import, tooltips[u'import'])
## New Action ## ## New Action ##
self.__setNameTextString(StringContent.New, self.__setNameTextString(StringContent.New,
UiStrings.Add, tooltips[new]) UiStrings.Add, tooltips[u'new'])
## Edit Action ## ## Edit Action ##
self.__setNameTextString(StringContent.Edit, self.__setNameTextString(StringContent.Edit,
UiStrings.Edit, tooltips[edit]) UiStrings.Edit, tooltips[u'edit'])
## Delete Action ## ## Delete Action ##
self.__setNameTextString(StringContent.Delete, self.__setNameTextString(StringContent.Delete,
UiStrings.Delete, tooltips[delete]) UiStrings.Delete, tooltips[u'delete'])
## Preview Action ## ## Preview Action ##
self.__setNameTextString(StringContent.Preview, self.__setNameTextString(StringContent.Preview,
UiStrings.Preview, tooltips[preview]) UiStrings.Preview, tooltips[u'preview'])
## Send Live Action ## ## Send Live Action ##
self.__setNameTextString(StringContent.Live, self.__setNameTextString(StringContent.Live,
UiStrings.Live, tooltips[live]) UiStrings.Live, tooltips[u'live'])
## Add to Service Action ## ## Add to Service Action ##
self.__setNameTextString(StringContent.Service, self.__setNameTextString(StringContent.Service,
UiStrings.Service, tooltips[service]) UiStrings.Service, tooltips[u'service'])
def __setNameTextString(self, name, title, tooltip): def __setNameTextString(self, name, title, tooltip):
""" """

View File

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

View File

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

View File

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

View File

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

View File

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