forked from openlp/openlp
replace strings with text_strings
This commit is contained in:
parent
23099261bd
commit
f265c552ea
@ -304,7 +304,7 @@ def expand_tags(text):
|
|||||||
from spelltextedit import SpellTextEdit
|
from spelltextedit import SpellTextEdit
|
||||||
from eventreceiver import Receiver
|
from eventreceiver import Receiver
|
||||||
from settingsmanager import SettingsManager
|
from settingsmanager import SettingsManager
|
||||||
from plugin import PluginStatus, Plugin
|
from plugin import PluginStatus, StringContent, Plugin
|
||||||
from pluginmanager import PluginManager
|
from pluginmanager import PluginManager
|
||||||
from settingstab import SettingsTab
|
from settingstab import SettingsTab
|
||||||
from serviceitem import ServiceItem
|
from serviceitem import ServiceItem
|
||||||
|
@ -129,8 +129,8 @@ class Plugin(QtCore.QObject):
|
|||||||
"""
|
"""
|
||||||
QtCore.QObject.__init__(self)
|
QtCore.QObject.__init__(self)
|
||||||
self.name = name
|
self.name = name
|
||||||
self.strings = {}
|
self.text_strings = {}
|
||||||
self.setPluginStrings()
|
self.setPluginTextStrings()
|
||||||
if version:
|
if version:
|
||||||
self.version = version
|
self.version = version
|
||||||
self.settingsSection = self.name.lower()
|
self.settingsSection = self.name.lower()
|
||||||
@ -305,13 +305,13 @@ class Plugin(QtCore.QObject):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def getString(self, name):
|
def getString(self, name):
|
||||||
if name in self.strings:
|
if name in self.text_strings:
|
||||||
return self.strings[name]
|
return self.text_strings[name]
|
||||||
else:
|
else:
|
||||||
# do something here?
|
# do something here?
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
@ -175,19 +175,13 @@ class Ui_MainWindow(object):
|
|||||||
QtCore.Qt.DockWidgetArea(2), self.ThemeManagerDock)
|
QtCore.Qt.DockWidgetArea(2), self.ThemeManagerDock)
|
||||||
# Create the menu items
|
# Create the menu items
|
||||||
self.FileNewItem = QtGui.QAction(MainWindow)
|
self.FileNewItem = QtGui.QAction(MainWindow)
|
||||||
self.FileNewItem.setIcon(
|
self.FileNewItem.setIcon(build_icon(u':/general/general_new.png'))
|
||||||
self.ServiceManagerContents.toolbar.getIconFromTitle(
|
|
||||||
translate('OpenLP.MainWindow', 'New Service')))
|
|
||||||
self.FileNewItem.setObjectName(u'FileNewItem')
|
self.FileNewItem.setObjectName(u'FileNewItem')
|
||||||
self.FileOpenItem = QtGui.QAction(MainWindow)
|
self.FileOpenItem = QtGui.QAction(MainWindow)
|
||||||
self.FileOpenItem.setIcon(
|
self.FileOpenItem.setIcon(build_icon(u':/general/general_open.png'))
|
||||||
self.ServiceManagerContents.toolbar.getIconFromTitle(
|
|
||||||
translate('OpenLP.MainWindow', 'Open Service')))
|
|
||||||
self.FileOpenItem.setObjectName(u'FileOpenItem')
|
self.FileOpenItem.setObjectName(u'FileOpenItem')
|
||||||
self.FileSaveItem = QtGui.QAction(MainWindow)
|
self.FileSaveItem = QtGui.QAction(MainWindow)
|
||||||
self.FileSaveItem.setIcon(
|
self.FileSaveItem.setIcon(build_icon(u':/general/general_save.png'))
|
||||||
self.ServiceManagerContents.toolbar.getIconFromTitle(
|
|
||||||
translate('OpenLP.MainWindow', 'Save Service')))
|
|
||||||
self.FileSaveItem.setObjectName(u'FileSaveItem')
|
self.FileSaveItem.setObjectName(u'FileSaveItem')
|
||||||
self.FileSaveAsItem = QtGui.QAction(MainWindow)
|
self.FileSaveAsItem = QtGui.QAction(MainWindow)
|
||||||
self.FileSaveAsItem.setObjectName(u'FileSaveAsItem')
|
self.FileSaveAsItem.setObjectName(u'FileSaveAsItem')
|
||||||
|
@ -82,7 +82,8 @@ class LanguageManager(object):
|
|||||||
"""
|
"""
|
||||||
translator = QtCore.QTranslator()
|
translator = QtCore.QTranslator()
|
||||||
translator.load(qm_file)
|
translator.load(qm_file)
|
||||||
return translator.translate('OpenLP.MainWindow', 'English')
|
return translator.translate('OpenLP.MainWindow', 'English',
|
||||||
|
'Please add the name of your language here')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_language():
|
def get_language():
|
||||||
@ -107,12 +108,13 @@ class LanguageManager(object):
|
|||||||
``action``
|
``action``
|
||||||
The language menu option
|
The language menu option
|
||||||
"""
|
"""
|
||||||
action_name = u'%s' % action.objectName()
|
language = u'en'
|
||||||
qm_list = LanguageManager.get_qm_list()
|
if action:
|
||||||
if LanguageManager.auto_language:
|
action_name = u'%s' % action.objectName()
|
||||||
language = u'[%s]' % qm_list[action_name]
|
qm_list = LanguageManager.get_qm_list()
|
||||||
else:
|
|
||||||
language = u'%s' % qm_list[action_name]
|
language = u'%s' % qm_list[action_name]
|
||||||
|
if LanguageManager.auto_language:
|
||||||
|
language = u'[%s]' % language
|
||||||
QtCore.QSettings().setValue(
|
QtCore.QSettings().setValue(
|
||||||
u'general/language', QtCore.QVariant(language))
|
u'general/language', QtCore.QVariant(language))
|
||||||
log.info(u'Language file: \'%s\' written to conf file' % language)
|
log.info(u'Language file: \'%s\' written to conf file' % language)
|
||||||
@ -129,9 +131,11 @@ class LanguageManager(object):
|
|||||||
LanguageManager.__qm_list__ = {}
|
LanguageManager.__qm_list__ = {}
|
||||||
qm_files = LanguageManager.find_qm_files()
|
qm_files = LanguageManager.find_qm_files()
|
||||||
for counter, qmf in enumerate(qm_files):
|
for counter, qmf in enumerate(qm_files):
|
||||||
name = unicode(qmf).split(u'.')[0]
|
reg_ex = QtCore.QRegExp("^.*i18n/(.*).qm")
|
||||||
LanguageManager.__qm_list__[u'%#2i %s' % (counter + 1,
|
if reg_ex.exactMatch(qmf):
|
||||||
LanguageManager.language_name(qmf))] = name
|
name = u'%s' % reg_ex.cap(1)
|
||||||
|
LanguageManager.__qm_list__[u'%#2i %s' % (counter + 1,
|
||||||
|
LanguageManager.language_name(qmf))] = name
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_qm_list():
|
def get_qm_list():
|
||||||
|
@ -102,16 +102,16 @@ class AlertsPlugin(Plugin):
|
|||||||
'on the display screen')
|
'on the display screen')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('AlertsPlugin', 'Alert'),
|
u'singular': translate('AlertsPlugin', 'Alert'),
|
||||||
u'plural': translate('AlertsPlugin', 'Alerts')
|
u'plural': translate('AlertsPlugin', 'Alerts')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('AlertsPlugin', 'Alerts')
|
u'title': translate('AlertsPlugin', 'Alerts')
|
||||||
}
|
}
|
@ -118,52 +118,52 @@ class BiblePlugin(Plugin):
|
|||||||
"""
|
"""
|
||||||
self.settings_tab.bible_theme = newTheme
|
self.settings_tab.bible_theme = newTheme
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('BiblesPlugin', 'Bible'),
|
u'singular': translate('BiblesPlugin', 'Bible'),
|
||||||
u'plural': translate('BiblesPlugin', 'Bibles')
|
u'plural': translate('BiblesPlugin', 'Bibles')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('BiblesPlugin', 'Bibles')
|
u'title': translate('BiblesPlugin', 'Bibles')
|
||||||
}
|
}
|
||||||
# Middle Header Bar
|
# Middle Header Bar
|
||||||
## Import Button ##
|
## Import Button ##
|
||||||
self.strings[StringContent.Import] = {
|
self.text_strings[StringContent.Import] = {
|
||||||
u'title': translate('BiblesPlugin', 'Import'),
|
u'title': translate('BiblesPlugin', 'Import'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Import a Bible')
|
u'tooltip': translate('BiblesPlugin', 'Import a Bible')
|
||||||
}
|
}
|
||||||
## New Button ##
|
## New Button ##
|
||||||
self.strings[StringContent.New] = {
|
self.text_strings[StringContent.New] = {
|
||||||
u'title': translate('BiblesPlugin', 'Add'),
|
u'title': translate('BiblesPlugin', 'Add'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Add a new Bible')
|
u'tooltip': translate('BiblesPlugin', 'Add a new Bible')
|
||||||
}
|
}
|
||||||
## Edit Button ##
|
## Edit Button ##
|
||||||
self.strings[StringContent.Edit] = {
|
self.text_strings[StringContent.Edit] = {
|
||||||
u'title': translate('BiblesPlugin', 'Edit'),
|
u'title': translate('BiblesPlugin', 'Edit'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Edit the selected Bible')
|
u'tooltip': translate('BiblesPlugin', 'Edit the selected Bible')
|
||||||
}
|
}
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
self.strings[StringContent.Delete] = {
|
self.text_strings[StringContent.Delete] = {
|
||||||
u'title': translate('BiblesPlugin', 'Delete'),
|
u'title': translate('BiblesPlugin', 'Delete'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Delete the selected Bible')
|
u'tooltip': translate('BiblesPlugin', 'Delete the selected Bible')
|
||||||
}
|
}
|
||||||
## Preview ##
|
## Preview ##
|
||||||
self.strings[StringContent.Preview] = {
|
self.text_strings[StringContent.Preview] = {
|
||||||
u'title': translate('BiblesPlugin', 'Preview'),
|
u'title': translate('BiblesPlugin', 'Preview'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Preview the selected Bible')
|
u'tooltip': translate('BiblesPlugin', 'Preview the selected Bible')
|
||||||
}
|
}
|
||||||
## Live Button ##
|
## Live Button ##
|
||||||
self.strings[StringContent.Live] = {
|
self.text_strings[StringContent.Live] = {
|
||||||
u'title': translate('BiblesPlugin', 'Live'),
|
u'title': translate('BiblesPlugin', 'Live'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Send the selected Bible live')
|
u'tooltip': translate('BiblesPlugin', 'Send the selected Bible live')
|
||||||
}
|
}
|
||||||
## Add to service Button ##
|
## Add to service Button ##
|
||||||
self.strings[StringContent.Service] = {
|
self.text_strings[StringContent.Service] = {
|
||||||
u'title': translate('BiblesPlugin', 'Service'),
|
u'title': translate('BiblesPlugin', 'Service'),
|
||||||
u'tooltip': translate('BiblesPlugin', 'Add the selected Bible to the service')
|
u'tooltip': translate('BiblesPlugin', 'Add the selected Bible to the service')
|
||||||
}
|
}
|
@ -98,57 +98,57 @@ class CustomPlugin(Plugin):
|
|||||||
custom.theme_name = newTheme
|
custom.theme_name = newTheme
|
||||||
self.custommanager.save_object(custom)
|
self.custommanager.save_object(custom)
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('CustomsPlugin', 'Custom'),
|
u'singular': translate('CustomsPlugin', 'Custom'),
|
||||||
u'plural': translate('CustomsPlugin', 'Customs')
|
u'plural': translate('CustomsPlugin', 'Customs')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('CustomsPlugin', 'Customs')
|
u'title': translate('CustomsPlugin', 'Customs')
|
||||||
}
|
}
|
||||||
# Middle Header Bar
|
# Middle Header Bar
|
||||||
## Import Button ##
|
## Import Button ##
|
||||||
self.strings[StringContent.Import] = {
|
self.text_strings[StringContent.Import] = {
|
||||||
u'title': translate('CustomsPlugin', 'Import'),
|
u'title': translate('CustomsPlugin', 'Import'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Import a Custom')
|
u'tooltip': translate('CustomsPlugin', 'Import a Custom')
|
||||||
}
|
}
|
||||||
## Load Button ##
|
## Load Button ##
|
||||||
self.strings[StringContent.Load] = {
|
self.text_strings[StringContent.Load] = {
|
||||||
u'title': translate('CustomsPlugin', 'Load'),
|
u'title': translate('CustomsPlugin', 'Load'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Load a new Custom')
|
u'tooltip': translate('CustomsPlugin', 'Load a new Custom')
|
||||||
}
|
}
|
||||||
## New Button ##
|
## New Button ##
|
||||||
self.strings[StringContent.New] = {
|
self.text_strings[StringContent.New] = {
|
||||||
u'title': translate('CustomsPlugin', 'Add'),
|
u'title': translate('CustomsPlugin', 'Add'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Add a new Custom')
|
u'tooltip': translate('CustomsPlugin', 'Add a new Custom')
|
||||||
}
|
}
|
||||||
## Edit Button ##
|
## Edit Button ##
|
||||||
self.strings[StringContent.Edit] = {
|
self.text_strings[StringContent.Edit] = {
|
||||||
u'title': translate('CustomsPlugin', 'Edit'),
|
u'title': translate('CustomsPlugin', 'Edit'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Edit the selected Custom')
|
u'tooltip': translate('CustomsPlugin', 'Edit the selected Custom')
|
||||||
}
|
}
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
self.strings[StringContent.Delete] = {
|
self.text_strings[StringContent.Delete] = {
|
||||||
u'title': translate('CustomsPlugin', 'Delete'),
|
u'title': translate('CustomsPlugin', 'Delete'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Delete the selected Custom')
|
u'tooltip': translate('CustomsPlugin', 'Delete the selected Custom')
|
||||||
}
|
}
|
||||||
## Preview ##
|
## Preview ##
|
||||||
self.strings[StringContent.Preview] = {
|
self.text_strings[StringContent.Preview] = {
|
||||||
u'title': translate('CustomsPlugin', 'Preview'),
|
u'title': translate('CustomsPlugin', 'Preview'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Preview the selected Custom')
|
u'tooltip': translate('CustomsPlugin', 'Preview the selected Custom')
|
||||||
}
|
}
|
||||||
## Live Button ##
|
## Live Button ##
|
||||||
self.strings[StringContent.Live] = {
|
self.text_strings[StringContent.Live] = {
|
||||||
u'title': translate('CustomsPlugin', 'Live'),
|
u'title': translate('CustomsPlugin', 'Live'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Send the selected Custom live')
|
u'tooltip': translate('CustomsPlugin', 'Send the selected Custom live')
|
||||||
}
|
}
|
||||||
## Add to service Button ##
|
## Add to service Button ##
|
||||||
self.strings[StringContent.Service] = {
|
self.text_strings[StringContent.Service] = {
|
||||||
u'title': translate('CustomsPlugin', 'Service'),
|
u'title': translate('CustomsPlugin', 'Service'),
|
||||||
u'tooltip': translate('CustomsPlugin', 'Add the selected Custom to the service')
|
u'tooltip': translate('CustomsPlugin', 'Add the selected Custom to the service')
|
||||||
}
|
}
|
@ -58,52 +58,52 @@ class ImagePlugin(Plugin):
|
|||||||
'provided by the theme.')
|
'provided by the theme.')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('ImagePlugin', 'Image'),
|
u'singular': translate('ImagePlugin', 'Image'),
|
||||||
u'plural': translate('ImagePlugin', 'Images')
|
u'plural': translate('ImagePlugin', 'Images')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('ImagePlugin', 'Images')
|
u'title': translate('ImagePlugin', 'Images')
|
||||||
}
|
}
|
||||||
# Middle Header Bar
|
# Middle Header Bar
|
||||||
## Load Button ##
|
## Load Button ##
|
||||||
self.strings[StringContent.Load] = {
|
self.text_strings[StringContent.Load] = {
|
||||||
u'title': translate('ImagePlugin', 'Load'),
|
u'title': translate('ImagePlugin', 'Load'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Load a new Image')
|
u'tooltip': translate('ImagePlugin', 'Load a new Image')
|
||||||
}
|
}
|
||||||
## New Button ##
|
## New Button ##
|
||||||
self.strings[StringContent.New] = {
|
self.text_strings[StringContent.New] = {
|
||||||
u'title': translate('ImagePlugin', 'Add'),
|
u'title': translate('ImagePlugin', 'Add'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Add a new Image')
|
u'tooltip': translate('ImagePlugin', 'Add a new Image')
|
||||||
}
|
}
|
||||||
## Edit Button ##
|
## Edit Button ##
|
||||||
self.strings[StringContent.Edit] = {
|
self.text_strings[StringContent.Edit] = {
|
||||||
u'title': translate('ImagePlugin', 'Edit'),
|
u'title': translate('ImagePlugin', 'Edit'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Edit the selected Image')
|
u'tooltip': translate('ImagePlugin', 'Edit the selected Image')
|
||||||
}
|
}
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
self.strings[StringContent.Delete] = {
|
self.text_strings[StringContent.Delete] = {
|
||||||
u'title': translate('ImagePlugin', 'Delete'),
|
u'title': translate('ImagePlugin', 'Delete'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Delete the selected Image')
|
u'tooltip': translate('ImagePlugin', 'Delete the selected Image')
|
||||||
}
|
}
|
||||||
## Preview ##
|
## Preview ##
|
||||||
self.strings[StringContent.Preview] = {
|
self.text_strings[StringContent.Preview] = {
|
||||||
u'title': translate('ImagePlugin', 'Preview'),
|
u'title': translate('ImagePlugin', 'Preview'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Preview the selected Image')
|
u'tooltip': translate('ImagePlugin', 'Preview the selected Image')
|
||||||
}
|
}
|
||||||
## Live Button ##
|
## Live Button ##
|
||||||
self.strings[StringContent.Live] = {
|
self.text_strings[StringContent.Live] = {
|
||||||
u'title': translate('ImagePlugin', 'Live'),
|
u'title': translate('ImagePlugin', 'Live'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Send the selected Image live')
|
u'tooltip': translate('ImagePlugin', 'Send the selected Image live')
|
||||||
}
|
}
|
||||||
## Add to service Button ##
|
## Add to service Button ##
|
||||||
self.strings[StringContent.Service] = {
|
self.text_strings[StringContent.Service] = {
|
||||||
u'title': translate('ImagePlugin', 'Service'),
|
u'title': translate('ImagePlugin', 'Service'),
|
||||||
u'tooltip': translate('ImagePlugin', 'Add the selected Image to the service')
|
u'tooltip': translate('ImagePlugin', 'Add the selected Image to the service')
|
||||||
}
|
}
|
@ -77,52 +77,52 @@ class MediaPlugin(Plugin):
|
|||||||
'<br />The media plugin provides playback of audio and video.')
|
'<br />The media plugin provides playback of audio and video.')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('MediaPlugin', 'Media'),
|
u'singular': translate('MediaPlugin', 'Media'),
|
||||||
u'plural': translate('MediaPlugin', 'Media')
|
u'plural': translate('MediaPlugin', 'Media')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('MediaPlugin', 'Media')
|
u'title': translate('MediaPlugin', 'Media')
|
||||||
}
|
}
|
||||||
# Middle Header Bar
|
# Middle Header Bar
|
||||||
## Load Button ##
|
## Load Button ##
|
||||||
self.strings[StringContent.Load] = {
|
self.text_strings[StringContent.Load] = {
|
||||||
u'title': translate('MediaPlugin', 'Load'),
|
u'title': translate('MediaPlugin', 'Load'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Load a new Media')
|
u'tooltip': translate('MediaPlugin', 'Load a new Media')
|
||||||
}
|
}
|
||||||
## New Button ##
|
## New Button ##
|
||||||
self.strings[StringContent.New] = {
|
self.text_strings[StringContent.New] = {
|
||||||
u'title': translate('MediaPlugin', 'Add'),
|
u'title': translate('MediaPlugin', 'Add'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Add a new Media')
|
u'tooltip': translate('MediaPlugin', 'Add a new Media')
|
||||||
}
|
}
|
||||||
## Edit Button ##
|
## Edit Button ##
|
||||||
self.strings[StringContent.Edit] = {
|
self.text_strings[StringContent.Edit] = {
|
||||||
u'title': translate('MediaPlugin', 'Edit'),
|
u'title': translate('MediaPlugin', 'Edit'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Edit the selected Media')
|
u'tooltip': translate('MediaPlugin', 'Edit the selected Media')
|
||||||
}
|
}
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
self.strings[StringContent.Delete] = {
|
self.text_strings[StringContent.Delete] = {
|
||||||
u'title': translate('MediaPlugin', 'Delete'),
|
u'title': translate('MediaPlugin', 'Delete'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Delete the selected Media')
|
u'tooltip': translate('MediaPlugin', 'Delete the selected Media')
|
||||||
}
|
}
|
||||||
## Preview ##
|
## Preview ##
|
||||||
self.strings[StringContent.Preview] = {
|
self.text_strings[StringContent.Preview] = {
|
||||||
u'title': translate('MediaPlugin', 'Preview'),
|
u'title': translate('MediaPlugin', 'Preview'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Preview the selected Media')
|
u'tooltip': translate('MediaPlugin', 'Preview the selected Media')
|
||||||
}
|
}
|
||||||
## Live Button ##
|
## Live Button ##
|
||||||
self.strings[StringContent.Live] = {
|
self.text_strings[StringContent.Live] = {
|
||||||
u'title': translate('MediaPlugin', 'Live'),
|
u'title': translate('MediaPlugin', 'Live'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Send the selected Media live')
|
u'tooltip': translate('MediaPlugin', 'Send the selected Media live')
|
||||||
}
|
}
|
||||||
## Add to service Button ##
|
## Add to service Button ##
|
||||||
self.strings[StringContent.Service] = {
|
self.text_strings[StringContent.Service] = {
|
||||||
u'title': translate('MediaPlugin', 'Service'),
|
u'title': translate('MediaPlugin', 'Service'),
|
||||||
u'tooltip': translate('MediaPlugin', 'Add the selected Media to the service')
|
u'tooltip': translate('MediaPlugin', 'Add the selected Media to the service')
|
||||||
}
|
}
|
@ -145,42 +145,42 @@ class PresentationPlugin(Plugin):
|
|||||||
'available to the user in a drop down box.')
|
'available to the user in a drop down box.')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('PresentationPlugin', 'Presentation'),
|
u'singular': translate('PresentationPlugin', 'Presentation'),
|
||||||
u'plural': translate('PresentationPlugin', 'Presentations')
|
u'plural': translate('PresentationPlugin', 'Presentations')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('PresentationPlugin', 'Presentations')
|
u'title': translate('PresentationPlugin', 'Presentations')
|
||||||
}
|
}
|
||||||
# Middle Header Bar
|
# Middle Header Bar
|
||||||
## Load Button ##
|
## Load Button ##
|
||||||
self.strings[StringContent.Load] = {
|
self.text_strings[StringContent.Load] = {
|
||||||
u'title': translate('PresentationPlugin', 'Load'),
|
u'title': translate('PresentationPlugin', 'Load'),
|
||||||
u'tooltip': translate('PresentationPlugin', 'Load a new Presentation')
|
u'tooltip': translate('PresentationPlugin', 'Load a new Presentation')
|
||||||
}
|
}
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
self.strings[StringContent.Delete] = {
|
self.text_strings[StringContent.Delete] = {
|
||||||
u'title': translate('PresentationPlugin', 'Delete'),
|
u'title': translate('PresentationPlugin', 'Delete'),
|
||||||
u'tooltip': translate('PresentationPlugin', 'Delete the selected Presentation')
|
u'tooltip': translate('PresentationPlugin', 'Delete the selected Presentation')
|
||||||
}
|
}
|
||||||
## Preview ##
|
## Preview ##
|
||||||
self.strings[StringContent.Preview] = {
|
self.text_strings[StringContent.Preview] = {
|
||||||
u'title': translate('PresentationPlugin', 'Preview'),
|
u'title': translate('PresentationPlugin', 'Preview'),
|
||||||
u'tooltip': translate('PresentationPlugin', 'Preview the selected Presentation')
|
u'tooltip': translate('PresentationPlugin', 'Preview the selected Presentation')
|
||||||
}
|
}
|
||||||
## Live Button ##
|
## Live Button ##
|
||||||
self.strings[StringContent.Live] = {
|
self.text_strings[StringContent.Live] = {
|
||||||
u'title': translate('PresentationPlugin', 'Live'),
|
u'title': translate('PresentationPlugin', 'Live'),
|
||||||
u'tooltip': translate('PresentationPlugin', 'Send the selected Presentation live')
|
u'tooltip': translate('PresentationPlugin', 'Send the selected Presentation live')
|
||||||
}
|
}
|
||||||
## Add to service Button ##
|
## Add to service Button ##
|
||||||
self.strings[StringContent.Service] = {
|
self.text_strings[StringContent.Service] = {
|
||||||
u'title': translate('PresentationPlugin', 'Service'),
|
u'title': translate('PresentationPlugin', 'Service'),
|
||||||
u'tooltip': translate('PresentationPlugin', 'Add the selected Presentation to the service')
|
u'tooltip': translate('PresentationPlugin', 'Add the selected Presentation to the service')
|
||||||
}
|
}
|
@ -78,16 +78,16 @@ class RemotesPlugin(Plugin):
|
|||||||
'browser or through the remote API.')
|
'browser or through the remote API.')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('RemotePlugin', 'Remote'),
|
u'singular': translate('RemotePlugin', 'Remote'),
|
||||||
u'plural': translate('RemotePlugin', 'Remotes')
|
u'plural': translate('RemotePlugin', 'Remotes')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('RemotePlugin', 'Remotes')
|
u'title': translate('RemotePlugin', 'Remotes')
|
||||||
}
|
}
|
0
openlp/plugins/songs/lib/test/test3.opensong
Executable file → Normal file
0
openlp/plugins/songs/lib/test/test3.opensong
Executable file → Normal file
@ -149,47 +149,47 @@ class SongsPlugin(Plugin):
|
|||||||
importer.register(self.mediaItem.import_wizard)
|
importer.register(self.mediaItem.import_wizard)
|
||||||
return importer
|
return importer
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('SongsPlugin', 'Song'),
|
u'singular': translate('SongsPlugin', 'Song'),
|
||||||
u'plural': translate('SongsPlugin', 'Songs')
|
u'plural': translate('SongsPlugin', 'Songs')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('SongsPlugin', 'Songs')
|
u'title': translate('SongsPlugin', 'Songs')
|
||||||
}
|
}
|
||||||
# Middle Header Bar
|
# Middle Header Bar
|
||||||
## New Button ##
|
## New Button ##
|
||||||
self.strings[StringContent.New] = {
|
self.text_strings[StringContent.New] = {
|
||||||
u'title': translate('SongsPlugin', 'Add'),
|
u'title': translate('SongsPlugin', 'Add'),
|
||||||
u'tooltip': translate('SongsPlugin', 'Add a new Song')
|
u'tooltip': translate('SongsPlugin', 'Add a new Song')
|
||||||
}
|
}
|
||||||
## Edit Button ##
|
## Edit Button ##
|
||||||
self.strings[StringContent.Edit] = {
|
self.text_strings[StringContent.Edit] = {
|
||||||
u'title': translate('SongsPlugin', 'Edit'),
|
u'title': translate('SongsPlugin', 'Edit'),
|
||||||
u'tooltip': translate('SongsPlugin', 'Edit the selected Song')
|
u'tooltip': translate('SongsPlugin', 'Edit the selected Song')
|
||||||
}
|
}
|
||||||
## Delete Button ##
|
## Delete Button ##
|
||||||
self.strings[StringContent.Delete] = {
|
self.text_strings[StringContent.Delete] = {
|
||||||
u'title': translate('SongsPlugin', 'Delete'),
|
u'title': translate('SongsPlugin', 'Delete'),
|
||||||
u'tooltip': translate('SongsPlugin', 'Delete the selected Song')
|
u'tooltip': translate('SongsPlugin', 'Delete the selected Song')
|
||||||
}
|
}
|
||||||
## Preview ##
|
## Preview ##
|
||||||
self.strings[StringContent.Preview] = {
|
self.text_strings[StringContent.Preview] = {
|
||||||
u'title': translate('SongsPlugin', 'Preview'),
|
u'title': translate('SongsPlugin', 'Preview'),
|
||||||
u'tooltip': translate('SongsPlugin', 'Preview the selected Song')
|
u'tooltip': translate('SongsPlugin', 'Preview the selected Song')
|
||||||
}
|
}
|
||||||
## Live Button ##
|
## Live Button ##
|
||||||
self.strings[StringContent.Live] = {
|
self.text_strings[StringContent.Live] = {
|
||||||
u'title': translate('SongsPlugin', 'Live'),
|
u'title': translate('SongsPlugin', 'Live'),
|
||||||
u'tooltip': translate('SongsPlugin', 'Send the selected Song live')
|
u'tooltip': translate('SongsPlugin', 'Send the selected Song live')
|
||||||
}
|
}
|
||||||
## Add to service Button ##
|
## Add to service Button ##
|
||||||
self.strings[StringContent.Service] = {
|
self.text_strings[StringContent.Service] = {
|
||||||
u'title': translate('SongsPlugin', 'Service'),
|
u'title': translate('SongsPlugin', 'Service'),
|
||||||
u'tooltip': translate('SongsPlugin', 'Add the selected Song to the service')
|
u'tooltip': translate('SongsPlugin', 'Add the selected Song to the service')
|
||||||
}
|
}
|
@ -163,16 +163,16 @@ class SongUsagePlugin(Plugin):
|
|||||||
'services.')
|
'services.')
|
||||||
return about_text
|
return about_text
|
||||||
|
|
||||||
def setPluginStrings(self):
|
def setPluginTextStrings(self):
|
||||||
"""
|
"""
|
||||||
Called to define all translatable texts of the plugin
|
Called to define all translatable texts of the plugin
|
||||||
"""
|
"""
|
||||||
## Name PluginList ##
|
## Name PluginList ##
|
||||||
self.strings[StringContent.Name] = {
|
self.text_strings[StringContent.Name] = {
|
||||||
u'singular': translate('SongUsagePlugin', 'SongUsage'),
|
u'singular': translate('SongUsagePlugin', 'SongUsage'),
|
||||||
u'plural': translate('SongUsagePlugin', 'SongUsage')
|
u'plural': translate('SongUsagePlugin', 'SongUsage')
|
||||||
}
|
}
|
||||||
## Name for MediaDockManager, SettingsManager ##
|
## Name for MediaDockManager, SettingsManager ##
|
||||||
self.strings[StringContent.VisibleName] = {
|
self.text_strings[StringContent.VisibleName] = {
|
||||||
u'title': translate('SongUsagePlugin', 'SongUsage')
|
u'title': translate('SongUsagePlugin', 'SongUsage')
|
||||||
}
|
}
|
2747
resources/i18n/af.ts
2747
resources/i18n/af.ts
File diff suppressed because it is too large
Load Diff
2001
resources/i18n/de.ts
2001
resources/i18n/de.ts
File diff suppressed because it is too large
Load Diff
1102
resources/i18n/en.ts
1102
resources/i18n/en.ts
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1202
resources/i18n/es.ts
1202
resources/i18n/es.ts
File diff suppressed because it is too large
Load Diff
2798
resources/i18n/et.ts
2798
resources/i18n/et.ts
File diff suppressed because it is too large
Load Diff
2727
resources/i18n/hu.ts
2727
resources/i18n/hu.ts
File diff suppressed because it is too large
Load Diff
1150
resources/i18n/ko.ts
1150
resources/i18n/ko.ts
File diff suppressed because it is too large
Load Diff
1394
resources/i18n/nb.ts
1394
resources/i18n/nb.ts
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1152
resources/i18n/sv.ts
1152
resources/i18n/sv.ts
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,3 @@
|
|||||||
#!/usr/bin/env xdg-open
|
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Categories=AudioVideo;
|
Categories=AudioVideo;
|
||||||
Comment[de]=
|
Comment[de]=
|
||||||
|
Loading…
Reference in New Issue
Block a user