forked from openlp/openlp
Strings not variable names\!
This commit is contained in:
parent
ba8918a1ea
commit
5e8b8eedf3
@ -341,28 +341,28 @@ class Plugin(QtCore.QObject):
|
||||
"""
|
||||
## Load Action ##
|
||||
self.__setNameTextString(StringContent.Load,
|
||||
UiStrings.Load, tooltips[load])
|
||||
UiStrings.Load, tooltips[u'load'])
|
||||
## Import Action ##
|
||||
self.__setNameTextString(StringContent.Import,
|
||||
UiStrings.Import, tooltips[import])
|
||||
UiStrings.Import, tooltips[u'import'])
|
||||
## New Action ##
|
||||
self.__setNameTextString(StringContent.New,
|
||||
UiStrings.Add, tooltips[new])
|
||||
UiStrings.Add, tooltips[u'new'])
|
||||
## Edit Action ##
|
||||
self.__setNameTextString(StringContent.Edit,
|
||||
UiStrings.Edit, tooltips[edit])
|
||||
UiStrings.Edit, tooltips[u'edit'])
|
||||
## Delete Action ##
|
||||
self.__setNameTextString(StringContent.Delete,
|
||||
UiStrings.Delete, tooltips[delete])
|
||||
UiStrings.Delete, tooltips[u'delete'])
|
||||
## Preview Action ##
|
||||
self.__setNameTextString(StringContent.Preview,
|
||||
UiStrings.Preview, tooltips[preview])
|
||||
UiStrings.Preview, tooltips[u'preview'])
|
||||
## Send Live Action ##
|
||||
self.__setNameTextString(StringContent.Live,
|
||||
UiStrings.Live, tooltips[live])
|
||||
UiStrings.Live, tooltips[u'live'])
|
||||
## Add to Service Action ##
|
||||
self.__setNameTextString(StringContent.Service,
|
||||
UiStrings.Service, tooltips[service])
|
||||
UiStrings.Service, tooltips[u'service'])
|
||||
|
||||
def __setNameTextString(self, name, title, tooltip):
|
||||
"""
|
||||
|
@ -130,14 +130,14 @@ 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'),
|
||||
service: translate('BiblesPlugin',
|
||||
u'load': u'',
|
||||
u'import': translate('BiblesPlugin', 'Import a Bible'),
|
||||
u'new': translate('BiblesPlugin', 'Add a new Bible'),
|
||||
u'edit': translate('BiblesPlugin', 'Edit the selected Bible'),
|
||||
u'delete': translate('BiblesPlugin', 'Delete the selected Bible'),
|
||||
u'preview': translate('BiblesPlugin', 'Preview the selected Bible'),
|
||||
u'live': translate('BiblesPlugin', 'Send the selected Bible live'),
|
||||
u'service': translate('BiblesPlugin',
|
||||
'Add the selected Bible to the service')
|
||||
}
|
||||
self.setPluginUiTextStrings(tooltips)
|
||||
|
@ -107,14 +107,16 @@ 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'),
|
||||
service: translate('CustomsPlugin',
|
||||
u'load': translate('CustomsPlugin', 'Load a new Custom'),
|
||||
u'import': translate('CustomsPlugin', 'Import a Custom'),
|
||||
u'new': translate('CustomsPlugin', 'Add a new Custom'),
|
||||
u'edit': translate('CustomsPlugin', 'Edit the selected Custom'),
|
||||
u'delete': translate('CustomsPlugin', 'Delete the selected Custom'),
|
||||
u'preview': translate('CustomsPlugin',
|
||||
'Preview the selected Custom'),
|
||||
u'live': translate('CustomsPlugin',
|
||||
'Send the selected Custom live'),
|
||||
u'service': translate('CustomsPlugin',
|
||||
'Add the selected Custom to the service')
|
||||
}
|
||||
self.setPluginUiTextStrings(tooltips)
|
||||
|
@ -70,14 +70,14 @@ 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'),
|
||||
service: translate('ImagePlugin',
|
||||
u'load': translate('ImagePlugin', 'Load a new Image'),
|
||||
u'import': u'',
|
||||
u'new': translate('ImagePlugin', 'Add a new Image'),
|
||||
u'edit': translate('ImagePlugin', 'Edit the selected Image'),
|
||||
u'delete': translate('ImagePlugin', 'Delete the selected Image'),
|
||||
u'preview': translate('ImagePlugin', 'Preview the selected Image'),
|
||||
u'live': translate('ImagePlugin', 'Send the selected Image live'),
|
||||
u'service': translate('ImagePlugin',
|
||||
'Add the selected Image to the service')
|
||||
}
|
||||
self.setPluginUiTextStrings(tooltips)
|
||||
|
@ -96,14 +96,14 @@ 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'),
|
||||
service: translate('MediaPlugin',
|
||||
u'load': translate('MediaPlugin', 'Load a new Media'),
|
||||
u'import': u'',
|
||||
u'new': translate('MediaPlugin', 'Add a new Media'),
|
||||
u'edit': translate('MediaPlugin', 'Edit the selected Media'),
|
||||
u'delete': translate('MediaPlugin', 'Delete the selected Media'),
|
||||
u'preview': translate('MediaPlugin', 'Preview the selected Media'),
|
||||
u'live': translate('MediaPlugin', 'Send the selected Media live'),
|
||||
u'service': translate('MediaPlugin',
|
||||
'Add the selected Media to the service')
|
||||
}
|
||||
self.setPluginUiTextStrings(tooltips)
|
||||
|
@ -168,17 +168,17 @@ class PresentationPlugin(Plugin):
|
||||
}
|
||||
# Middle Header Bar
|
||||
tooltips = {
|
||||
load: translate('PresentationPlugin', 'Load a new Presentation'),
|
||||
import: u'',
|
||||
new: u'',
|
||||
edit: u'',
|
||||
delete: translate('PresentationPlugin',
|
||||
u'load': translate('PresentationPlugin', 'Load a new Presentation'),
|
||||
u'import': u'',
|
||||
u'new': u'',
|
||||
u'edit': u'',
|
||||
u'delete': translate('PresentationPlugin',
|
||||
'Delete the selected Presentation'),
|
||||
preview: translate('PresentationPlugin',
|
||||
u'preview': translate('PresentationPlugin',
|
||||
'Preview the selected Presentation'),
|
||||
live: translate('PresentationPlugin',
|
||||
u'live': translate('PresentationPlugin',
|
||||
'Send the selected Presentation live'),
|
||||
service: translate('PresentationPlugin',
|
||||
u'service': translate('PresentationPlugin',
|
||||
'Add the selected Presentation to the service')
|
||||
}
|
||||
self.setPluginUiTextStrings(tooltips)
|
||||
|
@ -229,14 +229,14 @@ 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'),
|
||||
service: translate('SongsPlugin',
|
||||
u'load': u'',
|
||||
u'import': u'',
|
||||
u'new': translate('SongsPlugin', 'Add a new Song'),
|
||||
u'edit': translate('SongsPlugin', 'Edit the selected Song'),
|
||||
u'delete': translate('SongsPlugin', 'Delete the selected Song'),
|
||||
u'preview': translate('SongsPlugin', 'Preview the selected Song'),
|
||||
u'live': translate('SongsPlugin', 'Send the selected Song live'),
|
||||
u'service': translate('SongsPlugin',
|
||||
'Add the selected Song to the service')
|
||||
}
|
||||
self.setPluginUiTextStrings(tooltips)
|
||||
|
Loading…
Reference in New Issue
Block a user