Fixed various strings.

bzr-revno: 1633
This commit is contained in:
Raoul Snyman 2011-06-12 15:41:58 +02:00 committed by Andreas Preikschat
commit 9e99146725
6 changed files with 51 additions and 47 deletions

View File

@ -114,7 +114,7 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog):
self._clearDetails() self._clearDetails()
return return
plugin_name_singular = \ plugin_name_singular = \
self.pluginListWidget.currentItem().text().split(u' ')[0] self.pluginListWidget.currentItem().text().split(u'(')[0][:-1]
self.activePlugin = None self.activePlugin = None
for plugin in self.parent().pluginManager.plugins: for plugin in self.parent().pluginManager.plugins:
if plugin.nameStrings[u'singular'] == plugin_name_singular: if plugin.nameStrings[u'singular'] == plugin_name_singular:

View File

@ -46,7 +46,7 @@ class CustomPlugin(Plugin):
log.info(u'Custom Plugin loaded') log.info(u'Custom Plugin loaded')
def __init__(self, plugin_helpers): def __init__(self, plugin_helpers):
Plugin.__init__(self, u'Custom', plugin_helpers, Plugin.__init__(self, u'Custom Slide', plugin_helpers,
CustomMediaItem, CustomTab) CustomMediaItem, CustomTab)
self.weight = -5 self.weight = -5
self.manager = Manager(u'custom', init_schema) self.manager = Manager(u'custom', init_schema)
@ -54,11 +54,11 @@ class CustomPlugin(Plugin):
self.icon = build_icon(self.icon_path) self.icon = build_icon(self.icon_path)
def about(self): def about(self):
about_text = translate('CustomPlugin', '<strong>Custom Plugin</strong>' about_text = translate('CustomPlugin', '<strong>Custom Slide Plugin'
'<br />The custom plugin provides the ability to set up custom ' '</strong><br />The custom slide plugin provides the ability to '
'text slides that can be displayed on the screen the same way ' 'set up custom text slides that can be displayed on the screen '
'songs are. This plugin provides greater freedom over the songs ' 'the same way songs are. This plugin provides greater freedom '
'plugin.') 'over the songs plugin.')
return about_text return about_text
def usesTheme(self, theme): def usesTheme(self, theme):
@ -95,27 +95,31 @@ class CustomPlugin(Plugin):
""" """
## Name PluginList ## ## Name PluginList ##
self.textStrings[StringContent.Name] = { self.textStrings[StringContent.Name] = {
u'singular': translate('CustomsPlugin', 'Custom', 'name singular'), u'singular': translate('CustomPlugin', 'Custom Slide',
u'plural': translate('CustomsPlugin', 'Customs', 'name plural') 'name singular'),
u'plural': translate('CustomPlugin', 'Custom Slides',
'name plural')
} }
## Name for MediaDockManager, SettingsManager ## ## Name for MediaDockManager, SettingsManager ##
self.textStrings[StringContent.VisibleName] = { self.textStrings[StringContent.VisibleName] = {
u'title': translate('CustomsPlugin', 'Custom', 'container title') u'title': translate('CustomPlugin', 'Custom Slides',
'container title')
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
u'load': translate('CustomsPlugin', 'Load a new Custom.'), u'load': translate('CustomPlugin', 'Load a new custom slide.'),
u'import': translate('CustomsPlugin', 'Import a Custom.'), u'import': translate('CustomPlugin', 'Import a custom slide.'),
u'new': translate('CustomsPlugin', 'Add a new Custom.'), u'new': translate('CustomPlugin', 'Add a new custom slide.'),
u'edit': translate('CustomsPlugin', 'Edit the selected Custom.'), u'edit': translate('CustomPlugin',
u'delete': translate('CustomsPlugin', 'Edit the selected custom slide.'),
'Delete the selected Custom.'), u'delete': translate('CustomPlugin',
u'preview': translate('CustomsPlugin', 'Delete the selected custom slide.'),
'Preview the selected Custom.'), u'preview': translate('CustomPlugin',
u'live': translate('CustomsPlugin', 'Preview the selected custom slide.'),
'Send the selected Custom live.'), u'live': translate('CustomPlugin',
u'service': translate('CustomsPlugin', 'Send the selected custom slide live.'),
'Add the selected Custom to the service.') u'service': translate('CustomPlugin',
'Add the selected custom slide 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 = {
u'load': translate('ImagePlugin', 'Load a new Image.'), u'load': translate('ImagePlugin', 'Load a new image.'),
u'import': u'', u'import': u'',
u'new': translate('ImagePlugin', 'Add a new Image.'), u'new': translate('ImagePlugin', 'Add a new image.'),
u'edit': translate('ImagePlugin', 'Edit the selected Image.'), u'edit': translate('ImagePlugin', 'Edit the selected image.'),
u'delete': translate('ImagePlugin', 'Delete the selected Image.'), u'delete': translate('ImagePlugin', 'Delete the selected image.'),
u'preview': translate('ImagePlugin', 'Preview the selected Image.'), u'preview': translate('ImagePlugin', 'Preview the selected image.'),
u'live': translate('ImagePlugin', 'Send the selected Image live.'), u'live': translate('ImagePlugin', 'Send the selected image live.'),
u'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

@ -112,14 +112,14 @@ class MediaPlugin(Plugin):
} }
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
u'load': translate('MediaPlugin', 'Load a new Media.'), u'load': translate('MediaPlugin', 'Load new media.'),
u'import': u'', u'import': u'',
u'new': translate('MediaPlugin', 'Add a new Media.'), u'new': translate('MediaPlugin', 'Add new media.'),
u'edit': translate('MediaPlugin', 'Edit the selected Media.'), u'edit': translate('MediaPlugin', 'Edit the selected media.'),
u'delete': translate('MediaPlugin', 'Delete the selected Media.'), u'delete': translate('MediaPlugin', 'Delete the selected media.'),
u'preview': translate('MediaPlugin', 'Preview the selected Media.'), u'preview': translate('MediaPlugin', 'Preview the selected media.'),
u'live': translate('MediaPlugin', 'Send the selected Media live.'), u'live': translate('MediaPlugin', 'Send the selected media live.'),
u'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

@ -169,17 +169,17 @@ class PresentationPlugin(Plugin):
# Middle Header Bar # Middle Header Bar
tooltips = { tooltips = {
u'load': translate('PresentationPlugin', u'load': translate('PresentationPlugin',
'Load a new Presentation.'), 'Load a new presentation.'),
u'import': u'', u'import': u'',
u'new': u'', u'new': u'',
u'edit': u'', u'edit': u'',
u'delete': translate('PresentationPlugin', u'delete': translate('PresentationPlugin',
'Delete the selected Presentation.'), 'Delete the selected presentation.'),
u'preview': translate('PresentationPlugin', u'preview': translate('PresentationPlugin',
'Preview the selected Presentation.'), 'Preview the selected presentation.'),
u'live': translate('PresentationPlugin', u'live': translate('PresentationPlugin',
'Send the selected Presentation live.'), 'Send the selected presentation live.'),
u'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

@ -215,13 +215,13 @@ class SongsPlugin(Plugin):
tooltips = { tooltips = {
u'load': u'', u'load': u'',
u'import': u'', u'import': u'',
u'new': translate('SongsPlugin', 'Add a new Song.'), u'new': translate('SongsPlugin', 'Add a new song.'),
u'edit': translate('SongsPlugin', 'Edit the selected Song.'), u'edit': translate('SongsPlugin', 'Edit the selected song.'),
u'delete': translate('SongsPlugin', 'Delete the selected Song.'), u'delete': translate('SongsPlugin', 'Delete the selected song.'),
u'preview': translate('SongsPlugin', 'Preview the selected Song.'), u'preview': translate('SongsPlugin', 'Preview the selected song.'),
u'live': translate('SongsPlugin', 'Send the selected Song live.'), u'live': translate('SongsPlugin', 'Send the selected song live.'),
u'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)