diff --git a/openlp.pyw b/openlp.pyw index 5fe962f82..fb8eff2ed 100755 --- a/openlp.pyw +++ b/openlp.pyw @@ -37,7 +37,7 @@ log = logging.getLogger() from openlp.core.lib import Receiver from openlp.core.resources import qInitResources from openlp.core.ui import MainWindow, SplashScreen, ScreenList -from openlp.core.utils import AppLocation +from openlp.core.utils import AppLocation, LanguageManager application_stylesheet = u""" QMainWindow::separator @@ -190,6 +190,11 @@ def main(): qInitResources() # Now create and actually run the application. app = OpenLP(qt_args) + #i18n Set Language + language = LanguageManager.get_language() + appTranslator = LanguageManager.get_translator(language) + app.installTranslator(appTranslator) + sys.exit(app.run()) if __name__ == u'__main__': diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index c8570a643..ee18e98af 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -35,7 +35,7 @@ from PyQt4 import QtCore, QtGui log = logging.getLogger(__name__) -def translate(context, text): +def translate(context, text, comment=None): """ A special shortcut method to wrap around the Qt4 translation functions. This abstracts the translation procedure so that we can change it if at a @@ -48,8 +48,8 @@ def translate(context, text): ``text`` The text to put into the translation tables for translation. """ - return QtGui.QApplication.translate( - context, text, None, QtGui.QApplication.UnicodeUTF8) + return QtCore.QCoreApplication.translate(context, text, + comment) def get_text_file_string(text_file): """ diff --git a/openlp/core/lib/toolbar.py b/openlp/core/lib/toolbar.py index e50459943..a1af42736 100644 --- a/openlp/core/lib/toolbar.py +++ b/openlp/core/lib/toolbar.py @@ -117,10 +117,11 @@ class OpenLPToolbar(QtGui.QToolBar): The title of the icon to search for. """ title = QtCore.QString(title) - if self.icons[title]: - return self.icons[title] - else: - log.error(u'getIconFromTitle - no icon for %s' % title) + try: + if self.icons[title]: + return self.icons[title] + except: + log.exception(u'getIconFromTitle - no icon for %s' % title) return QtGui.QIcon() def makeWidgetsInvisible(self, widgets): diff --git a/openlp/core/ui/aboutdialog.py b/openlp/core/ui/aboutdialog.py index 7d8d27103..fac8874f5 100644 --- a/openlp/core/ui/aboutdialog.py +++ b/openlp/core/ui/aboutdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_AboutDialog(object): def setupUi(self, AboutDialog): @@ -113,8 +114,8 @@ class Ui_AboutDialog(object): QtCore.QMetaObject.connectSlotsByName(AboutDialog) def retranslateUi(self, AboutDialog): - AboutDialog.setWindowTitle(self.trUtf8('About OpenLP')) - self.AboutTextEdit.setPlainText(self.trUtf8( + AboutDialog.setWindowTitle(translate('AboutForm', 'About OpenLP')) + self.AboutTextEdit.setPlainText(translate('AboutForm', 'OpenLP - Open Source Lyrics ' 'Projection\n' '\n' @@ -131,8 +132,8 @@ class Ui_AboutDialog(object): 'consider contributing by using the button below.' )) self.AboutNotebook.setTabText( - self.AboutNotebook.indexOf(self.AboutTab), self.trUtf8('About')) - self.CreditsTextEdit.setPlainText(self.trUtf8( + self.AboutNotebook.indexOf(self.AboutTab), translate('AboutForm', 'About')) + self.CreditsTextEdit.setPlainText(translate('AboutForm', 'Project Lead\n' ' Raoul "superfly" Snyman\n' '\n' @@ -164,11 +165,10 @@ class Ui_AboutDialog(object): )) self.AboutNotebook.setTabText( self.AboutNotebook.indexOf(self.CreditsTab), - self.trUtf8('Credits')) - self.LicenseTextEdit.setPlainText(self.trUtf8( - 'Copyright ' + u'\u00a9'.encode('utf8') + ' 2004-2010 Raoul ' - 'Snyman\n' - 'Portions copyright ' + u'\u00a9'.encode('utf8') + ' 2004-2010 ' + translate('AboutForm', 'Credits')) + self.LicenseTextEdit.setPlainText(translate('AboutForm', + 'Copyright \xa9 2004-2010 Raoul Snyman\n' + 'Portions copyright \xa9 2004-2010 ' 'Tim Bentley, Jonathan Corwin, Michael Gorven, Scott Guerrieri, ' 'Christian Richter, Maikel Stuivenberg, Martin Thompson, Jon ' 'Tibble, Carsten Tinggaard\n' @@ -557,6 +557,6 @@ class Ui_AboutDialog(object): 'instead of this License.')) self.AboutNotebook.setTabText( self.AboutNotebook.indexOf(self.LicenseTab), - self.trUtf8('License')) - self.ContributeButton.setText(self.trUtf8('Contribute')) - self.CloseButton.setText(self.trUtf8('Close')) + translate('AboutForm', 'License')) + self.ContributeButton.setText(translate('AboutForm', 'Contribute')) + self.CloseButton.setText(translate('AboutForm', 'Close')) diff --git a/openlp/core/ui/amendthemedialog.py b/openlp/core/ui/amendthemedialog.py index c713eb608..34c3573da 100644 --- a/openlp/core/ui/amendthemedialog.py +++ b/openlp/core/ui/amendthemedialog.py @@ -25,6 +25,7 @@ from PyQt4 import QtCore, QtGui from openlp.core.lib import build_icon +from openlp.core.lib import translate class Ui_AmendThemeDialog(object): def setupUi(self, AmendThemeDialog): @@ -601,95 +602,95 @@ class Ui_AmendThemeDialog(object): AmendThemeDialog.setTabOrder(self.HorizontalComboBox, self.VerticalComboBox) def retranslateUi(self, AmendThemeDialog): - AmendThemeDialog.setWindowTitle(self.trUtf8('Theme Maintenance')) - self.ThemeNameLabel.setText(self.trUtf8('Theme Name:')) - self.BackgroundLabel.setText(self.trUtf8('Background:')) - self.BackgroundComboBox.setItemText(0, self.trUtf8('Opaque')) - self.BackgroundComboBox.setItemText(1, self.trUtf8('Transparent')) - self.BackgroundTypeLabel.setText(self.trUtf8('Background Type:')) - self.BackgroundTypeComboBox.setItemText(0, self.trUtf8('Solid Color')) - self.BackgroundTypeComboBox.setItemText(1, self.trUtf8('Gradient')) - self.BackgroundTypeComboBox.setItemText(2, self.trUtf8('Image')) - self.Color1Label.setText(self.trUtf8('')) - self.Color2Label.setText(self.trUtf8('')) - self.ImageLabel.setText(self.trUtf8('Image:')) - self.GradientLabel.setText(self.trUtf8('Gradient :')) - self.GradientComboBox.setItemText(0, self.trUtf8('Horizontal')) - self.GradientComboBox.setItemText(1, self.trUtf8('Vertical')) - self.GradientComboBox.setItemText(2, self.trUtf8('Circular')) + AmendThemeDialog.setWindowTitle(translate('AmendThemeForm', 'Theme Maintenance')) + self.ThemeNameLabel.setText(translate('AmendThemeForm', 'Theme Name:')) + self.BackgroundLabel.setText(translate('AmendThemeForm', 'Background:')) + self.BackgroundComboBox.setItemText(0, translate('AmendThemeForm', 'Opaque')) + self.BackgroundComboBox.setItemText(1, translate('AmendThemeForm', 'Transparent')) + self.BackgroundTypeLabel.setText(translate('AmendThemeForm', 'Background Type:')) + self.BackgroundTypeComboBox.setItemText(0, translate('AmendThemeForm', 'Solid Color')) + self.BackgroundTypeComboBox.setItemText(1, translate('AmendThemeForm', 'Gradient')) + self.BackgroundTypeComboBox.setItemText(2, translate('AmendThemeForm', 'Image')) + self.Color1Label.setText(translate('AmendThemeForm', '')) + self.Color2Label.setText(translate('AmendThemeForm', '')) + self.ImageLabel.setText(translate('AmendThemeForm', 'Image:')) + self.GradientLabel.setText(translate('AmendThemeForm', 'Gradient :')) + self.GradientComboBox.setItemText(0, translate('AmendThemeForm', 'Horizontal')) + self.GradientComboBox.setItemText(1, translate('AmendThemeForm', 'Vertical')) + self.GradientComboBox.setItemText(2, translate('AmendThemeForm', 'Circular')) self.ThemeTabWidget.setTabText( self.ThemeTabWidget.indexOf(self.BackgroundTab), - self.trUtf8('Background')) - self.FontMainGroupBox.setTitle(self.trUtf8('Main Font')) - self.FontMainlabel.setText(self.trUtf8('Font:')) - self.FontMainColorLabel.setText(self.trUtf8('Font Color:')) - self.FontMainSize.setText(self.trUtf8('Size:')) - self.FontMainSizeSpinBox.setSuffix(self.trUtf8('pt')) - self.FontMainWrapIndentationLabel.setText(self.trUtf8('Wrap Indentation')) - self.FontMainWrapLineAdjustmentLabel.setText(self.trUtf8('Adjust Line Spacing')) - self.FontMainWeightComboBox.setItemText(0, self.trUtf8('Normal')) - self.FontMainWeightComboBox.setItemText(1, self.trUtf8('Bold')) - self.FontMainWeightComboBox.setItemText(2, self.trUtf8('Italics')) - self.FontMainWeightComboBox.setItemText(3, self.trUtf8('Bold/Italics')) - self.FontMainWeightLabel.setText(self.trUtf8('Font Weight:')) - self.MainLocationGroupBox.setTitle(self.trUtf8('Display Location')) - self.DefaultLocationLabel.setText(self.trUtf8('Use Default Location:')) - self.FontMainXLabel.setText(self.trUtf8('X Position:')) - self.FontMainYLabel.setText(self.trUtf8('Y Position:')) - self.FontMainWidthLabel.setText(self.trUtf8('Width:')) - self.FontMainHeightLabel.setText(self.trUtf8('Height:')) - self.FontMainXSpinBox.setSuffix(self.trUtf8('px')) - self.FontMainYSpinBox.setSuffix(self.trUtf8('px')) - self.FontMainWidthSpinBox.setSuffix(self.trUtf8('px')) - self.FontMainHeightSpinBox.setSuffix(self.trUtf8('px')) + translate('AmendThemeForm', 'Background')) + self.FontMainGroupBox.setTitle(translate('AmendThemeForm', 'Main Font')) + self.FontMainlabel.setText(translate('AmendThemeForm', 'Font:')) + self.FontMainColorLabel.setText(translate('AmendThemeForm', 'Font Color:')) + self.FontMainSize.setText(translate('AmendThemeForm', 'Size:')) + self.FontMainSizeSpinBox.setSuffix(translate('AmendThemeForm', 'pt')) + self.FontMainWrapIndentationLabel.setText(translate('AmendThemeForm', 'Wrap Indentation')) + self.FontMainWrapLineAdjustmentLabel.setText(translate('AmendThemeForm', 'Adjust Line Spacing')) + self.FontMainWeightComboBox.setItemText(0, translate('AmendThemeForm', 'Normal')) + self.FontMainWeightComboBox.setItemText(1, translate('AmendThemeForm', 'Bold')) + self.FontMainWeightComboBox.setItemText(2, translate('AmendThemeForm', 'Italics')) + self.FontMainWeightComboBox.setItemText(3, translate('AmendThemeForm', 'Bold/Italics')) + self.FontMainWeightLabel.setText(translate('AmendThemeForm', 'Font Weight:')) + self.MainLocationGroupBox.setTitle(translate('AmendThemeForm', 'Display Location')) + self.DefaultLocationLabel.setText(translate('AmendThemeForm', 'Use Default Location:')) + self.FontMainXLabel.setText(translate('AmendThemeForm', 'X Position:')) + self.FontMainYLabel.setText(translate('AmendThemeForm', 'Y Position:')) + self.FontMainWidthLabel.setText(translate('AmendThemeForm', 'Width:')) + self.FontMainHeightLabel.setText(translate('AmendThemeForm', 'Height:')) + self.FontMainXSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.FontMainYSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.FontMainWidthSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.FontMainHeightSpinBox.setSuffix(translate('AmendThemeForm', 'px')) self.ThemeTabWidget.setTabText( self.ThemeTabWidget.indexOf(self.FontMainTab), - self.trUtf8('Font Main')) - self.FooterFontGroupBox.setTitle(self.trUtf8('Footer Font')) - self.FontFooterLabel.setText(self.trUtf8('Font:')) - self.FontFooterColorLabel.setText(self.trUtf8('Font Color:')) - self.FontFooterSizeLabel.setText(self.trUtf8('Size:')) - self.FontFooterSizeSpinBox.setSuffix(self.trUtf8('pt')) - self.FontFooterWeightComboBox.setItemText(0, self.trUtf8('Normal')) - self.FontFooterWeightComboBox.setItemText(1, self.trUtf8('Bold')) - self.FontFooterWeightComboBox.setItemText(2, self.trUtf8('Italics')) - self.FontFooterWeightComboBox.setItemText(3, self.trUtf8('Bold/Italics')) - self.FontFooterWeightLabel.setText(self.trUtf8('Font Weight:')) - self.LocationFooterGroupBox.setTitle(self.trUtf8('Display Location')) - self.FontFooterDefaultLabel.setText(self.trUtf8('Use Default Location:')) - self.FontFooterXLabel.setText(self.trUtf8('X Position:')) - self.FontFooterYLabel.setText(self.trUtf8('Y Position:')) - self.FontFooterWidthLabel.setText(self.trUtf8('Width:')) - self.FontFooterHeightLabel.setText(self.trUtf8('Height:')) - self.FontFooterXSpinBox.setSuffix(self.trUtf8('px')) - self.FontFooterYSpinBox.setSuffix(self.trUtf8('px')) - self.FontFooterWidthSpinBox.setSuffix(self.trUtf8('px')) - self.FontFooterHeightSpinBox.setSuffix(self.trUtf8('px')) + translate('AmendThemeForm', 'Font Main')) + self.FooterFontGroupBox.setTitle(translate('AmendThemeForm', 'Footer Font')) + self.FontFooterLabel.setText(translate('AmendThemeForm', 'Font:')) + self.FontFooterColorLabel.setText(translate('AmendThemeForm', 'Font Color:')) + self.FontFooterSizeLabel.setText(translate('AmendThemeForm', 'Size:')) + self.FontFooterSizeSpinBox.setSuffix(translate('AmendThemeForm', 'pt')) + self.FontFooterWeightComboBox.setItemText(0, translate('AmendThemeForm', 'Normal')) + self.FontFooterWeightComboBox.setItemText(1, translate('AmendThemeForm', 'Bold')) + self.FontFooterWeightComboBox.setItemText(2, translate('AmendThemeForm', 'Italics')) + self.FontFooterWeightComboBox.setItemText(3, translate('AmendThemeForm', 'Bold/Italics')) + self.FontFooterWeightLabel.setText(translate('AmendThemeForm', 'Font Weight:')) + self.LocationFooterGroupBox.setTitle(translate('AmendThemeForm', 'Display Location')) + self.FontFooterDefaultLabel.setText(translate('AmendThemeForm', 'Use Default Location:')) + self.FontFooterXLabel.setText(translate('AmendThemeForm', 'X Position:')) + self.FontFooterYLabel.setText(translate('AmendThemeForm', 'Y Position:')) + self.FontFooterWidthLabel.setText(translate('AmendThemeForm', 'Width:')) + self.FontFooterHeightLabel.setText(translate('AmendThemeForm', 'Height:')) + self.FontFooterXSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.FontFooterYSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.FontFooterWidthSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.FontFooterHeightSpinBox.setSuffix(translate('AmendThemeForm', 'px')) self.ThemeTabWidget.setTabText( self.ThemeTabWidget.indexOf(self.FontFooterTab), - self.trUtf8('Font Footer')) - self.OutlineGroupBox.setTitle(self.trUtf8('Outline')) - self.OutlineSpinBoxLabel.setText(self.trUtf8('Outline Size:')) - self.OutlineSpinBox.setSuffix(self.trUtf8('px')) - self.OutlineColorLabel.setText(self.trUtf8('Outline Color:')) - self.OutlineEnabledLabel.setText(self.trUtf8('Show Outline:')) - self.ShadowGroupBox.setTitle(self.trUtf8('Shadow')) - self.ShadowSpinBoxLabel.setText(self.trUtf8('Shadow Size:')) - self.ShadowSpinBox.setSuffix(self.trUtf8('px')) - self.ShadowColorLabel.setText(self.trUtf8('Shadow Color:')) - self.ShadowEnabledLabel.setText(self.trUtf8('Show Shadow:')) - self.AlignmentGroupBox.setTitle(self.trUtf8('Alignment')) - self.HorizontalLabel.setText(self.trUtf8('Horizontal Align:')) - self.HorizontalComboBox.setItemText(0, self.trUtf8('Left')) - self.HorizontalComboBox.setItemText(1, self.trUtf8('Right')) - self.HorizontalComboBox.setItemText(2, self.trUtf8('Center')) - self.VerticalLabel.setText(self.trUtf8('Vertical Align:')) - self.VerticalComboBox.setItemText(0, self.trUtf8('Top')) - self.VerticalComboBox.setItemText(1, self.trUtf8('Middle')) - self.VerticalComboBox.setItemText(2, self.trUtf8('Bottom')) - self.TransitionGroupBox.setTitle(self.trUtf8('Slide Transition')) - self.SlideTransitionCheckedBoxLabel.setText(self.trUtf8('Transition Active:')) + translate('AmendThemeForm', 'Font Footer')) + self.OutlineGroupBox.setTitle(translate('AmendThemeForm', 'Outline')) + self.OutlineSpinBoxLabel.setText(translate('AmendThemeForm', 'Outline Size:')) + self.OutlineSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.OutlineColorLabel.setText(translate('AmendThemeForm', 'Outline Color:')) + self.OutlineEnabledLabel.setText(translate('AmendThemeForm', 'Show Outline:')) + self.ShadowGroupBox.setTitle(translate('AmendThemeForm', 'Shadow')) + self.ShadowSpinBoxLabel.setText(translate('AmendThemeForm', 'Shadow Size:')) + self.ShadowSpinBox.setSuffix(translate('AmendThemeForm', 'px')) + self.ShadowColorLabel.setText(translate('AmendThemeForm', 'Shadow Color:')) + self.ShadowEnabledLabel.setText(translate('AmendThemeForm', 'Show Shadow:')) + self.AlignmentGroupBox.setTitle(translate('AmendThemeForm', 'Alignment')) + self.HorizontalLabel.setText(translate('AmendThemeForm', 'Horizontal Align:')) + self.HorizontalComboBox.setItemText(0, translate('AmendThemeForm', 'Left')) + self.HorizontalComboBox.setItemText(1, translate('AmendThemeForm', 'Right')) + self.HorizontalComboBox.setItemText(2, translate('AmendThemeForm', 'Center')) + self.VerticalLabel.setText(translate('AmendThemeForm', 'Vertical Align:')) + self.VerticalComboBox.setItemText(0, translate('AmendThemeForm', 'Top')) + self.VerticalComboBox.setItemText(1, translate('AmendThemeForm', 'Middle')) + self.VerticalComboBox.setItemText(2, translate('AmendThemeForm', 'Bottom')) + self.TransitionGroupBox.setTitle(translate('AmendThemeForm', 'Slide Transition')) + self.SlideTransitionCheckedBoxLabel.setText(translate('AmendThemeForm', 'Transition Active:')) self.ThemeTabWidget.setTabText( self.ThemeTabWidget.indexOf(self.OtherOptionsTab), - self.trUtf8('Other Options')) - self.PreviewGroupBox.setTitle(self.trUtf8('Preview')) + translate('AmendThemeForm', 'Other Options')) + self.PreviewGroupBox.setTitle(translate('AmendThemeForm', 'Preview')) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index df275dd20..4432eb9c0 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -31,8 +31,8 @@ from PyQt4 import QtCore, QtGui from openlp.core.ui import AboutForm, SettingsForm, ServiceManager, \ ThemeManager, SlideController, PluginForm, MediaDockManager, DisplayManager from openlp.core.lib import RenderManager, build_icon, OpenLPDockWidget, \ - SettingsManager, PluginManager, Receiver -from openlp.core.utils import check_latest_version, AppLocation, add_actions + SettingsManager, PluginManager, Receiver, translate +from openlp.core.utils import check_latest_version, AppLocation, add_actions, LanguageManager log = logging.getLogger(__name__) @@ -252,10 +252,22 @@ class Ui_MainWindow(object): self.HelpOnlineHelpItem.setEnabled(False) self.HelpWebSiteItem = QtGui.QAction(MainWindow) self.HelpWebSiteItem.setObjectName(u'HelpWebSiteItem') - self.LanguageTranslateItem = QtGui.QAction(MainWindow) - self.LanguageTranslateItem.setObjectName(u'LanguageTranslateItem') - self.LanguageEnglishItem = QtGui.QAction(MainWindow) - self.LanguageEnglishItem.setObjectName(u'LanguageEnglishItem') + #i18n Language Items + self.AutoLanguageItem = QtGui.QAction(MainWindow) + self.AutoLanguageItem.setObjectName(u'AutoLanguageItem') + self.AutoLanguageItem.setCheckable(True) + self.LanguageGroup = QtGui.QActionGroup(MainWindow) + qmList = LanguageManager.get_qm_list() + savedLanguage = LanguageManager.get_language() + self.AutoLanguageItem.setChecked(LanguageManager.AutoLanguage) + for key in sorted(qmList.keys()): + languageItem = QtGui.QAction(MainWindow) + languageItem.setObjectName(key) + languageItem.setCheckable(True) + if qmList[key] == savedLanguage: + languageItem.setChecked(True) + add_actions(self.LanguageGroup, [languageItem]) + self.LanguageGroup.setDisabled(LanguageManager.AutoLanguage) self.ToolsAddToolItem = QtGui.QAction(MainWindow) AddToolIcon = build_icon(u':/tools/tools_add.png') self.ToolsAddToolItem.setIcon(AddToolIcon) @@ -281,8 +293,9 @@ class Ui_MainWindow(object): add_actions(self.OptionsViewMenu, (self.ViewModeMenu.menuAction(), None, self.ViewMediaManagerItem, self.ViewServiceManagerItem, self.ViewThemeManagerItem, None, self.action_Preview_Panel)) - add_actions(self.OptionsLanguageMenu, (self.LanguageEnglishItem, None, - self.LanguageTranslateItem)) + #i18n add Language Actions + add_actions(self.OptionsLanguageMenu, (self.AutoLanguageItem, None)) + add_actions(self.OptionsLanguageMenu, self.LanguageGroup.actions()) add_actions(self.OptionsMenu, (self.OptionsLanguageMenu.menuAction(), self.OptionsViewMenu.menuAction(), None, self.OptionsSettingsItem)) add_actions(self.ToolsMenu, @@ -316,98 +329,101 @@ class Ui_MainWindow(object): """ Set up the translation system """ - MainWindow.mainTitle = self.trUtf8('OpenLP 2.0') - MainWindow.defaultThemeText = self.trUtf8( + MainWindow.mainTitle = translate('MainWindow', 'OpenLP 2.0') + MainWindow.language = translate('MainWindow', 'English') + MainWindow.defaultThemeText = translate('MainWindow', 'Default Theme: ') MainWindow.setWindowTitle(MainWindow.mainTitle) - self.FileMenu.setTitle(self.trUtf8('&File')) - self.FileImportMenu.setTitle(self.trUtf8('&Import')) - self.FileExportMenu.setTitle(self.trUtf8('&Export')) - self.OptionsMenu.setTitle(self.trUtf8('&Options')) - self.OptionsViewMenu.setTitle(self.trUtf8('&View')) - self.ViewModeMenu.setTitle(self.trUtf8('M&ode')) - self.OptionsLanguageMenu.setTitle(self.trUtf8( + self.FileMenu.setTitle(translate('MainWindow', '&File')) + self.FileImportMenu.setTitle(translate('MainWindow', '&Import')) + self.FileExportMenu.setTitle(translate('MainWindow', '&Export')) + self.OptionsMenu.setTitle(translate('MainWindow', '&Options')) + self.OptionsViewMenu.setTitle(translate('MainWindow', '&View')) + self.ViewModeMenu.setTitle(translate('MainWindow', 'M&ode')) + self.OptionsLanguageMenu.setTitle(translate('MainWindow', u'&Language')) - self.ToolsMenu.setTitle(self.trUtf8('&Tools')) - self.HelpMenu.setTitle(self.trUtf8('&Help')) + self.ToolsMenu.setTitle(translate('MainWindow', '&Tools')) + self.HelpMenu.setTitle(translate('MainWindow', '&Help')) self.MediaManagerDock.setWindowTitle( - self.trUtf8('Media Manager')) + translate('MainWindow', 'Media Manager')) self.ServiceManagerDock.setWindowTitle( - self.trUtf8('Service Manager')) + translate('MainWindow', 'Service Manager')) self.ThemeManagerDock.setWindowTitle( - self.trUtf8('Theme Manager')) - self.FileNewItem.setText(self.trUtf8('&New')) - self.FileNewItem.setToolTip(self.trUtf8('New Service')) - self.FileNewItem.setStatusTip(self.trUtf8('Create a new Service')) - self.FileNewItem.setShortcut(self.trUtf8('Ctrl+N')) - self.FileOpenItem.setText(self.trUtf8('&Open')) - self.FileOpenItem.setToolTip(self.trUtf8('Open Service')) - self.FileOpenItem.setStatusTip(self.trUtf8('Open an existing service')) - self.FileOpenItem.setShortcut(self.trUtf8('Ctrl+O')) - self.FileSaveItem.setText(self.trUtf8('&Save')) - self.FileSaveItem.setToolTip(self.trUtf8('Save Service')) + translate('MainWindow', 'Theme Manager')) + self.FileNewItem.setText(translate('MainWindow', '&New')) + self.FileNewItem.setToolTip(translate('MainWindow', 'New Service')) + self.FileNewItem.setStatusTip(translate('MainWindow', 'Create a new Service')) + self.FileNewItem.setShortcut(translate('MainWindow', 'Ctrl+N')) + self.FileOpenItem.setText(translate('MainWindow', '&Open')) + self.FileOpenItem.setToolTip(translate('MainWindow', 'Open Service')) + self.FileOpenItem.setStatusTip(translate('MainWindow', 'Open an existing service')) + self.FileOpenItem.setShortcut(translate('MainWindow', 'Ctrl+O')) + self.FileSaveItem.setText(translate('MainWindow', '&Save')) + self.FileSaveItem.setToolTip(translate('MainWindow', 'Save Service')) self.FileSaveItem.setStatusTip( - self.trUtf8('Save the current service to disk')) - self.FileSaveItem.setShortcut(self.trUtf8('Ctrl+S')) - self.FileSaveAsItem.setText(self.trUtf8('Save &As...')) - self.FileSaveAsItem.setToolTip(self.trUtf8('Save Service As')) + translate('MainWindow', 'Save the current service to disk')) + self.FileSaveItem.setShortcut(translate('MainWindow', 'Ctrl+S')) + self.FileSaveAsItem.setText(translate('MainWindow', 'Save &As...')) + self.FileSaveAsItem.setToolTip(translate('MainWindow', 'Save Service As')) self.FileSaveAsItem.setStatusTip( - self.trUtf8('Save the current service under a new name')) - self.FileSaveAsItem.setShortcut(self.trUtf8('F12')) - self.FileExitItem.setText(self.trUtf8('E&xit')) - self.FileExitItem.setStatusTip(self.trUtf8('Quit OpenLP')) - self.FileExitItem.setShortcut(self.trUtf8('Alt+F4')) - self.ImportThemeItem.setText(self.trUtf8('&Theme')) - self.ImportLanguageItem.setText(self.trUtf8('&Language')) - self.ExportThemeItem.setText(self.trUtf8('&Theme')) - self.ExportLanguageItem.setText(self.trUtf8('&Language')) - self.actionLook_Feel.setText(self.trUtf8('Look && &Feel')) - self.OptionsSettingsItem.setText(self.trUtf8('&Settings')) - self.ViewMediaManagerItem.setText(self.trUtf8('&Media Manager')) + translate('MainWindow', 'Save the current service under a new name')) + self.FileSaveAsItem.setShortcut(translate('MainWindow', 'F12')) + self.FileExitItem.setText(translate('MainWindow', 'E&xit')) + self.FileExitItem.setStatusTip(translate('MainWindow', 'Quit OpenLP')) + self.FileExitItem.setShortcut(translate('MainWindow', 'Alt+F4')) + self.ImportThemeItem.setText(translate('MainWindow', '&Theme')) + self.ImportLanguageItem.setText(translate('MainWindow', '&Language')) + self.ExportThemeItem.setText(translate('MainWindow', '&Theme')) + self.ExportLanguageItem.setText(translate('MainWindow', '&Language')) + self.actionLook_Feel.setText(translate('MainWindow', 'Look && &Feel')) + self.OptionsSettingsItem.setText(translate('MainWindow', '&Settings')) + self.ViewMediaManagerItem.setText(translate('MainWindow', '&Media Manager')) self.ViewMediaManagerItem.setToolTip( - self.trUtf8('Toggle Media Manager')) + translate('MainWindow', 'Toggle Media Manager')) self.ViewMediaManagerItem.setStatusTip( - self.trUtf8('Toggle the visibility of the Media Manager')) - self.ViewMediaManagerItem.setShortcut(self.trUtf8('F8')) - self.ViewThemeManagerItem.setText(self.trUtf8('&Theme Manager')) + translate('MainWindow', 'Toggle the visibility of the Media Manager')) + self.ViewMediaManagerItem.setShortcut(translate('MainWindow', 'F8')) + self.ViewThemeManagerItem.setText(translate('MainWindow', '&Theme Manager')) self.ViewThemeManagerItem.setToolTip( - self.trUtf8('Toggle Theme Manager')) + translate('MainWindow', 'Toggle Theme Manager')) self.ViewThemeManagerItem.setStatusTip( - self.trUtf8('Toggle the visibility of the Theme Manager')) - self.ViewThemeManagerItem.setShortcut(self.trUtf8('F10')) - self.ViewServiceManagerItem.setText(self.trUtf8('&Service Manager')) + translate('MainWindow', 'Toggle the visibility of the Theme Manager')) + self.ViewThemeManagerItem.setShortcut(translate('MainWindow', 'F10')) + self.ViewServiceManagerItem.setText(translate('MainWindow', '&Service Manager')) self.ViewServiceManagerItem.setToolTip( - self.trUtf8('Toggle Service Manager')) + translate('MainWindow', 'Toggle Service Manager')) self.ViewServiceManagerItem.setStatusTip( - self.trUtf8('Toggle the visibility of the Service Manager')) - self.ViewServiceManagerItem.setShortcut(self.trUtf8('F9')) - self.action_Preview_Panel.setText(self.trUtf8('&Preview Panel')) + translate('MainWindow', 'Toggle the visibility of the Service Manager')) + self.ViewServiceManagerItem.setShortcut(translate('MainWindow', 'F9')) + self.action_Preview_Panel.setText(translate('MainWindow', '&Preview Panel')) self.action_Preview_Panel.setToolTip( - self.trUtf8('Toggle Preview Panel')) + translate('MainWindow', 'Toggle Preview Panel')) self.action_Preview_Panel.setStatusTip( - self.trUtf8('Toggle the visibility of the Preview Panel')) - self.action_Preview_Panel.setShortcut(self.trUtf8('F11')) - self.PluginItem.setText(self.trUtf8('&Plugin List')) - self.PluginItem.setStatusTip(self.trUtf8('List the Plugins')) - self.PluginItem.setShortcut(self.trUtf8('Alt+F7')) - self.HelpDocumentationItem.setText(self.trUtf8('&User Guide')) - self.HelpAboutItem.setText(self.trUtf8('&About')) + translate('MainWindow', 'Toggle the visibility of the Preview Panel')) + self.action_Preview_Panel.setShortcut(translate('MainWindow', 'F11')) + self.PluginItem.setText(translate('MainWindow', '&Plugin List')) + self.PluginItem.setStatusTip(translate('MainWindow', 'List the Plugins')) + self.PluginItem.setShortcut(translate('MainWindow', 'Alt+F7')) + self.HelpDocumentationItem.setText(translate('MainWindow', '&User Guide')) + self.HelpAboutItem.setText(translate('MainWindow', '&About')) self.HelpAboutItem.setStatusTip( - self.trUtf8('More information about OpenLP')) - self.HelpAboutItem.setShortcut(self.trUtf8('Ctrl+F1')) - self.HelpOnlineHelpItem.setText(self.trUtf8('&Online Help')) - self.HelpWebSiteItem.setText(self.trUtf8('&Web Site')) - self.LanguageTranslateItem.setText(self.trUtf8('&Translate')) - self.LanguageTranslateItem.setStatusTip( - self.trUtf8('Translate the interface to your language')) - self.LanguageEnglishItem.setText(self.trUtf8('English')) - self.LanguageEnglishItem.setStatusTip( - self.trUtf8('Set the interface language to English')) - self.ToolsAddToolItem.setText(self.trUtf8('Add &Tool...')) + translate('MainWindow', 'More information about OpenLP')) + self.HelpAboutItem.setShortcut(translate('MainWindow', 'Ctrl+F1')) + self.HelpOnlineHelpItem.setText(translate('MainWindow', '&Online Help')) + self.HelpWebSiteItem.setText(translate('MainWindow', '&Web Site')) + #i18n + self.AutoLanguageItem.setText(translate('MainWindow', '&Auto Detect')) + self.AutoLanguageItem.setStatusTip( + translate('MainWindow', 'Choose System language, if available')) + for item in self.LanguageGroup.actions(): + item.setText(item.objectName()) + item.setStatusTip( + translate('MainWindow', 'Set the interface language to %1').arg(item.objectName())) + self.ToolsAddToolItem.setText(translate('MainWindow', 'Add &Tool...')) self.ToolsAddToolItem.setStatusTip( - self.trUtf8('Add an application to the list of tools')) - self.action_Preview_Panel.setText(self.trUtf8('&Preview Pane')) - self.ModeLiveItem.setText(self.trUtf8('&Live')) + translate('MainWindow', 'Add an application to the list of tools')) + self.action_Preview_Panel.setText(translate('MainWindow', '&Preview Pane')) + self.ModeLiveItem.setText(translate('MainWindow', '&Live')) class MainWindow(QtGui.QMainWindow, Ui_MainWindow): @@ -508,6 +524,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): QtCore.QObject.connect(self.FileSaveAsItem, QtCore.SIGNAL(u'triggered()'), self.ServiceManagerContents.onSaveService) + #i18n set signals for languages + QtCore.QObject.connect(self.AutoLanguageItem, + QtCore.SIGNAL(u'toggled(bool)'), + self.setAutoLanguage) + self.LanguageGroup.triggered.connect(LanguageManager.set_language) #warning cyclic dependency #RenderManager needs to call ThemeManager and #ThemeManager needs to call RenderManager @@ -550,6 +571,12 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): log.info(u'Load data from Settings') self.settingsForm.postSetUp() + #i18n + def setAutoLanguage(self, value): + self.LanguageGroup.setDisabled(value) + LanguageManager.AutoLanguage = value + LanguageManager.set_language(self.LanguageGroup.checkedAction()) + def versionCheck(self, version): """ Checks the version of the Application called from openlp.pyw diff --git a/openlp/core/ui/plugindialog.py b/openlp/core/ui/plugindialog.py index f4a1773c9..e9c205e20 100644 --- a/openlp/core/ui/plugindialog.py +++ b/openlp/core/ui/plugindialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_PluginViewDialog(object): def setupUi(self, PluginViewDialog): @@ -98,11 +99,11 @@ class Ui_PluginViewDialog(object): QtCore.QMetaObject.connectSlotsByName(PluginViewDialog) def retranslateUi(self, PluginViewDialog): - PluginViewDialog.setWindowTitle(self.trUtf8('Plugin List')) - self.PluginInfoGroupBox.setTitle(self.trUtf8('Plugin Details')) - self.VersionLabel.setText(self.trUtf8('Version:')) - self.VersionNumberLabel.setText(self.trUtf8('TextLabel')) - self.AboutLabel.setText(self.trUtf8('About:')) - self.StatusLabel.setText(self.trUtf8('Status:')) - self.StatusComboBox.setItemText(0, self.trUtf8('Active')) - self.StatusComboBox.setItemText(1, self.trUtf8('Inactive')) + PluginViewDialog.setWindowTitle(translate('PluginForm', 'Plugin List')) + self.PluginInfoGroupBox.setTitle(translate('PluginForm', 'Plugin Details')) + self.VersionLabel.setText(translate('PluginForm', 'Version:')) + self.VersionNumberLabel.setText(translate('PluginForm', 'TextLabel')) + self.AboutLabel.setText(translate('PluginForm', 'About:')) + self.StatusLabel.setText(translate('PluginForm', 'Status:')) + self.StatusComboBox.setItemText(0, translate('PluginForm', 'Active')) + self.StatusComboBox.setItemText(1, translate('PluginForm', 'Inactive')) diff --git a/openlp/core/ui/serviceitemeditdialog.py b/openlp/core/ui/serviceitemeditdialog.py index fbaa52ca1..467c2aed8 100644 --- a/openlp/core/ui/serviceitemeditdialog.py +++ b/openlp/core/ui/serviceitemeditdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_ServiceItemEditDialog(object): def setupUi(self, ServiceItemEditDialog): @@ -66,8 +67,8 @@ class Ui_ServiceItemEditDialog(object): QtCore.QMetaObject.connectSlotsByName(ServiceItemEditDialog) def retranslateUi(self, ServiceItemEditDialog): - ServiceItemEditDialog.setWindowTitle(self.trUtf8('Service Item Maintenance')) - self.upButton.setText(self.trUtf8('Up')) - self.deleteButton.setText(self.trUtf8('Delete')) - self.downButton.setText(self.trUtf8('Down')) + ServiceItemEditDialog.setWindowTitle(translate('ServiceItemEditForm', 'Service Item Maintenance')) + self.upButton.setText(translate('ServiceItemEditForm', 'Up')) + self.deleteButton.setText(translate('ServiceItemEditForm', 'Delete')) + self.downButton.setText(translate('ServiceItemEditForm', 'Down')) diff --git a/openlp/core/ui/servicenotedialog.py b/openlp/core/ui/servicenotedialog.py index e1d830c5e..b21adce8d 100644 --- a/openlp/core/ui/servicenotedialog.py +++ b/openlp/core/ui/servicenotedialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_ServiceNoteEdit(object): def setupUi(self, ServiceNoteEdit): @@ -46,4 +47,4 @@ class Ui_ServiceNoteEdit(object): QtCore.QMetaObject.connectSlotsByName(ServiceNoteEdit) def retranslateUi(self, ServiceNoteEdit): - ServiceNoteEdit.setWindowTitle(self.trUtf8('Service Item Notes')) + ServiceNoteEdit.setWindowTitle(translate('ServiceNoteForm', 'Service Item Notes')) diff --git a/openlp/core/ui/settingsdialog.py b/openlp/core/ui/settingsdialog.py index 7148b0478..66501e380 100644 --- a/openlp/core/ui/settingsdialog.py +++ b/openlp/core/ui/settingsdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_SettingsDialog(object): def setupUi(self, SettingsDialog): @@ -59,4 +60,4 @@ class Ui_SettingsDialog(object): QtCore.QMetaObject.connectSlotsByName(SettingsDialog) def retranslateUi(self, SettingsDialog): - SettingsDialog.setWindowTitle(self.trUtf8('Settings')) + SettingsDialog.setWindowTitle(translate('SettingsForm', 'Settings')) diff --git a/openlp/core/utils/__init__.py b/openlp/core/utils/__init__.py index 0aaa31de3..5df5d397a 100644 --- a/openlp/core/utils/__init__.py +++ b/openlp/core/utils/__init__.py @@ -184,4 +184,6 @@ def add_actions(target, actions): else: target.addAction(action) -__all__ = [u'AppLocation', u'check_latest_version', u'add_actions'] +from languagemanager import LanguageManager + +__all__ = [u'AppLocation', u'check_latest_version', u'add_actions', u'LanguageManager'] diff --git a/openlp/core/utils/languagemanager.py b/openlp/core/utils/languagemanager.py new file mode 100644 index 000000000..8be408d17 --- /dev/null +++ b/openlp/core/utils/languagemanager.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 + +############################################################################### +# OpenLP - Open Source Lyrics Projection # +# --------------------------------------------------------------------------- # +# Copyright (c) 2008-2010 Raoul Snyman # +# Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael # +# Gorven, Scott Guerrieri, Christian Richter, Maikel Stuivenberg, Martin # +# Thompson, Jon Tibble, Carsten Tinggaard # +# --------------------------------------------------------------------------- # +# This program is free software; you can redistribute it and/or modify it # +# under the terms of the GNU General Public License as published by the Free # +# Software Foundation; version 2 of the License. # +# # +# This program is distributed in the hope that it will be useful, but WITHOUT # +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for # +# more details. # +# # +# You should have received a copy of the GNU General Public License along # +# with this program; if not, write to the Free Software Foundation, Inc., 59 # +# Temple Place, Suite 330, Boston, MA 02111-1307 USA # +############################################################################### + +import logging +import os + +from PyQt4 import QtCore, QtGui +from openlp.core.utils import AppLocation +from openlp.core.lib import translate + +log = logging.getLogger() + +class LanguageManager(object): + """ + Helper for Language selection + """ + __qmList__ = None + AutoLanguage = False + + @staticmethod + def get_translator(language): + if LanguageManager.AutoLanguage : + language = QtCore.QLocale.system().name() + lang_Path = AppLocation.get_directory(AppLocation.AppDir) + lang_Path = os.path.join(lang_Path, u'resources', u'i18n') + appTranslator = QtCore.QTranslator() + if appTranslator.load("openlp_" + language, lang_Path): + return appTranslator + + @staticmethod + def find_qm_files(): + trans_dir = AppLocation.get_directory(AppLocation.AppDir) + trans_dir = QtCore.QDir(os.path.join(trans_dir, u'resources', u'i18n')) + fileNames = trans_dir.entryList(QtCore.QStringList("*.qm"), + QtCore.QDir.Files, QtCore.QDir.Name) + for i in fileNames: + fileNames.replaceInStrings(i, trans_dir.filePath(i)) + return fileNames + + @staticmethod + def language_name(qmFile): + translator = QtCore.QTranslator() + translator.load(qmFile) + return translator.translate(u'MainWindow', u'English') + + @staticmethod + def get_language(): + settings = QtCore.QSettings(u'OpenLP', u'OpenLP') + language = unicode(settings.value( + u'general/language', QtCore.QVariant(u'[en]')).toString()) + log.info(u'Language file: \'%s\' Loaded from conf file' % language) + regEx = QtCore.QRegExp("^\[(.*)\]") + if regEx.exactMatch(language): + LanguageManager.AutoLanguage = True + language = regEx.cap(1) + return language + + @staticmethod + def set_language(action): + actionName = u'%s' % action.objectName() + qmList = LanguageManager.get_qm_list() + if LanguageManager.AutoLanguage : + language = u'[%s]' % qmList[actionName] + else: + language = u'%s' % qmList[actionName] + QtCore.QSettings().setValue( + u'general/language', QtCore.QVariant(language)) + log.info(u'Language file: \'%s\' written to conf file' % language) + QtGui.QMessageBox.information(None, + translate('LanguageManager', 'Language'), + translate('LanguageManager', + 'After restart new Language settings will be used.')) + + @staticmethod + def init_qm_list(): + LanguageManager.__qmList__ = {} + qmFiles = LanguageManager.find_qm_files() + for i, qmf in enumerate(qmFiles): + regEx = QtCore.QRegExp("^.*openlp_(.*).qm") + if regEx.exactMatch(qmf): + langName = regEx.cap(1) + LanguageManager.__qmList__[u'%#2i %s' % (i+1, + LanguageManager.language_name(qmf))] = langName + + @staticmethod + def get_qm_list(): + if LanguageManager.__qmList__ == None: + LanguageManager.init_qm_list() + return LanguageManager.__qmList__ diff --git a/openlp/plugins/alerts/forms/alertdialog.py b/openlp/plugins/alerts/forms/alertdialog.py index 00203f1f2..2dc117655 100644 --- a/openlp/plugins/alerts/forms/alertdialog.py +++ b/openlp/plugins/alerts/forms/alertdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_AlertDialog(object): def setupUi(self, AlertDialog): @@ -32,10 +33,10 @@ class Ui_AlertDialog(object): icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(u':/icon/openlp.org-icon-32.bmp'), QtGui.QIcon.Normal, QtGui.QIcon.Off) AlertDialog.setWindowIcon(icon) - self.AlertFormLayout = QtGui.QVBoxLayout(AlertDialog) - self.AlertFormLayout.setSpacing(8) - self.AlertFormLayout.setMargin(8) - self.AlertFormLayout.setObjectName(u'AlertFormLayout') + self.AlertDialogLayout = QtGui.QVBoxLayout(AlertDialog) + self.AlertDialogLayout.setSpacing(8) + self.AlertDialogLayout.setMargin(8) + self.AlertDialogLayout.setObjectName(u'AlertDialogLayout') self.AlertTextLayout = QtGui.QFormLayout() self.AlertTextLayout.setContentsMargins(0, 0, -1, -1) self.AlertTextLayout.setSpacing(8) @@ -57,7 +58,7 @@ class Ui_AlertDialog(object): self.AlertTextEdit = QtGui.QLineEdit(AlertDialog) self.AlertTextEdit.setObjectName(u'AlertTextEdit') self.AlertTextLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.AlertTextEdit) - self.AlertFormLayout.addLayout(self.AlertTextLayout) + self.AlertDialogLayout.addLayout(self.AlertTextLayout) self.ManagementLayout = QtGui.QHBoxLayout() self.ManagementLayout.setSpacing(8) self.ManagementLayout.setContentsMargins(-1, -1, -1, 0) @@ -91,7 +92,7 @@ class Ui_AlertDialog(object): spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.ManageButtonLayout.addItem(spacerItem) self.ManagementLayout.addLayout(self.ManageButtonLayout) - self.AlertFormLayout.addLayout(self.ManagementLayout) + self.AlertDialogLayout.addLayout(self.ManagementLayout) self.AlertButtonLayout = QtGui.QHBoxLayout() self.AlertButtonLayout.setSpacing(8) self.AlertButtonLayout.setObjectName(u'AlertButtonLayout') @@ -116,7 +117,7 @@ class Ui_AlertDialog(object): self.CloseButton.setIcon(icon5) self.CloseButton.setObjectName(u'CloseButton') self.AlertButtonLayout.addWidget(self.CloseButton) - self.AlertFormLayout.addLayout(self.AlertButtonLayout) + self.AlertDialogLayout.addLayout(self.AlertButtonLayout) self.AlertEntryLabel.setBuddy(self.AlertTextEdit) self.AlertParameter.setBuddy(self.ParameterEdit) @@ -133,13 +134,13 @@ class Ui_AlertDialog(object): AlertDialog.setTabOrder(self.DisplayCloseButton, self.CloseButton) def retranslateUi(self, AlertDialog): - AlertDialog.setWindowTitle(self.trUtf8('Alert Message')) - self.AlertEntryLabel.setText(self.trUtf8('Alert &text:')) - self.AlertParameter.setText(self.trUtf8('&Parameter(s):')) - self.NewButton.setText(self.trUtf8('&New')) - self.SaveButton.setText(self.trUtf8('&Save')) - self.DeleteButton.setText(self.trUtf8('&Delete')) - self.DisplayButton.setText(self.trUtf8('Displ&ay')) - self.DisplayCloseButton.setText(self.trUtf8('Display && Cl&ose')) - self.CloseButton.setText(self.trUtf8('&Close')) + AlertDialog.setWindowTitle(translate('AlertForm', 'Alert Message')) + self.AlertEntryLabel.setText(translate('AlertForm', 'Alert &text:')) + self.AlertParameter.setText(translate('AlertForm', '&Parameter(s):')) + self.NewButton.setText(translate('AlertForm', '&New')) + self.SaveButton.setText(translate('AlertForm', '&Save')) + self.DeleteButton.setText(translate('AlertForm', '&Delete')) + self.DisplayButton.setText(translate('AlertForm', 'Displ&ay')) + self.DisplayCloseButton.setText(translate('AlertForm', 'Display && Cl&ose')) + self.CloseButton.setText(translate('AlertForm', '&Close')) diff --git a/openlp/plugins/bibles/forms/bibleimportwizard.py b/openlp/plugins/bibles/forms/bibleimportwizard.py index 7b42ed26d..c709dae81 100644 --- a/openlp/plugins/bibles/forms/bibleimportwizard.py +++ b/openlp/plugins/bibles/forms/bibleimportwizard.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_BibleImportWizard(object): def setupUi(self, BibleImportWizard): @@ -307,47 +308,47 @@ class Ui_BibleImportWizard(object): QtCore.QMetaObject.connectSlotsByName(BibleImportWizard) def retranslateUi(self, BibleImportWizard): - BibleImportWizard.setWindowTitle(self.trUtf8('Bible Import Wizard')) + BibleImportWizard.setWindowTitle(translate('ImportWizardForm', 'Bible Import Wizard')) self.TitleLabel.setText( u'' + \ - self.trUtf8('Welcome to the Bible Import Wizard') + u'') + translate('ImportWizardForm', 'Welcome to the Bible Import Wizard') + u'') self.InformationLabel.setText( - self.trUtf8('This wizard will help you to import Bibles from a ' + translate('ImportWizardForm', 'This wizard will help you to import Bibles from a ' 'variety of formats. Click the next button below to start the ' 'process by selecting a format to import from.')) - self.SelectPage.setTitle(self.trUtf8('Select Import Source')) + self.SelectPage.setTitle(translate('ImportWizardForm', 'Select Import Source')) self.SelectPage.setSubTitle( - self.trUtf8('Select the import format, and where to import from.')) - self.FormatLabel.setText(self.trUtf8('Format:')) - self.FormatComboBox.setItemText(0, self.trUtf8('OSIS')) - self.FormatComboBox.setItemText(1, self.trUtf8('CSV')) - self.FormatComboBox.setItemText(2, self.trUtf8('OpenSong')) - self.FormatComboBox.setItemText(3, self.trUtf8('Web Download')) - self.OsisLocationLabel.setText(self.trUtf8('File Location:')) - self.BooksLocationLabel.setText(self.trUtf8('Books Location:')) - self.VerseLocationLabel.setText(self.trUtf8('Verse Location:')) - self.OpenSongFileLabel.setText(self.trUtf8('Bible Filename:')) - self.LocationLabel.setText(self.trUtf8('Location:')) - self.LocationComboBox.setItemText(0, self.trUtf8('Crosswalk')) - self.LocationComboBox.setItemText(1, self.trUtf8('BibleGateway')) - self.BibleLabel.setText(self.trUtf8('Bible:')) + translate('ImportWizardForm', 'Select the import format, and where to import from.')) + self.FormatLabel.setText(translate('ImportWizardForm', 'Format:')) + self.FormatComboBox.setItemText(0, translate('ImportWizardForm', 'OSIS')) + self.FormatComboBox.setItemText(1, translate('ImportWizardForm', 'CSV')) + self.FormatComboBox.setItemText(2, translate('ImportWizardForm', 'OpenSong')) + self.FormatComboBox.setItemText(3, translate('ImportWizardForm', 'Web Download')) + self.OsisLocationLabel.setText(translate('ImportWizardForm', 'File Location:')) + self.BooksLocationLabel.setText(translate('ImportWizardForm', 'Books Location:')) + self.VerseLocationLabel.setText(translate('ImportWizardForm', 'Verse Location:')) + self.OpenSongFileLabel.setText(translate('ImportWizardForm', 'Bible Filename:')) + self.LocationLabel.setText(translate('ImportWizardForm', 'Location:')) + self.LocationComboBox.setItemText(0, translate('ImportWizardForm', 'Crosswalk')) + self.LocationComboBox.setItemText(1, translate('ImportWizardForm', 'BibleGateway')) + self.BibleLabel.setText(translate('ImportWizardForm', 'Bible:')) self.WebDownloadTabWidget.setTabText( self.WebDownloadTabWidget.indexOf(self.DownloadOptionsTab), - self.trUtf8('Download Options')) - self.AddressLabel.setText(self.trUtf8('Server:')) - self.UsernameLabel.setText(self.trUtf8('Username:')) - self.PasswordLabel.setText(self.trUtf8('Password:')) + translate('ImportWizardForm', 'Download Options')) + self.AddressLabel.setText(translate('ImportWizardForm', 'Server:')) + self.UsernameLabel.setText(translate('ImportWizardForm', 'Username:')) + self.PasswordLabel.setText(translate('ImportWizardForm', 'Password:')) self.WebDownloadTabWidget.setTabText( self.WebDownloadTabWidget.indexOf(self.ProxyServerTab), - self.trUtf8('Proxy Server (Optional)')) - self.LicenseDetailsPage.setTitle(self.trUtf8('License Details')) + translate('ImportWizardForm', 'Proxy Server (Optional)')) + self.LicenseDetailsPage.setTitle(translate('ImportWizardForm', 'License Details')) self.LicenseDetailsPage.setSubTitle( - self.trUtf8('Set up the Bible\'s license details.')) - self.VersionNameLabel.setText(self.trUtf8('Version Name:')) - self.CopyrightLabel.setText(self.trUtf8('Copyright:')) - self.PermissionLabel.setText(self.trUtf8('Permission:')) - self.ImportPage.setTitle(self.trUtf8('Importing')) + translate('ImportWizardForm', 'Set up the Bible\'s license details.')) + self.VersionNameLabel.setText(translate('ImportWizardForm', 'Version Name:')) + self.CopyrightLabel.setText(translate('ImportWizardForm', 'Copyright:')) + self.PermissionLabel.setText(translate('ImportWizardForm', 'Permission:')) + self.ImportPage.setTitle(translate('ImportWizardForm', 'Importing')) self.ImportPage.setSubTitle( - self.trUtf8('Please wait while your Bible is imported.')) - self.ImportProgressLabel.setText(self.trUtf8('Ready.')) + translate('ImportWizardForm', 'Please wait while your Bible is imported.')) + self.ImportProgressLabel.setText(translate('ImportWizardForm', 'Ready.')) self.ImportProgressBar.setFormat(u'%p%') diff --git a/openlp/plugins/custom/forms/editcustomdialog.py b/openlp/plugins/custom/forms/editcustomdialog.py index 5f3fe7614..57497ebaf 100644 --- a/openlp/plugins/custom/forms/editcustomdialog.py +++ b/openlp/plugins/custom/forms/editcustomdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_customEditDialog(object): def setupUi(self, customEditDialog): @@ -152,23 +153,23 @@ class Ui_customEditDialog(object): customEditDialog.setTabOrder(self.DownButton, self.ThemeComboBox) def retranslateUi(self, customEditDialog): - customEditDialog.setWindowTitle(self.trUtf8('Edit Custom Slides')) - self.UpButton.setToolTip(self.trUtf8('Move slide Up 1')) - self.DownButton.setToolTip(self.trUtf8('Move slide down 1')) - self.TitleLabel.setText(self.trUtf8('Title:')) - self.AddButton.setText(self.trUtf8('Add New')) - self.AddButton.setToolTip(self.trUtf8('Add new slide at bottom')) - self.EditButton.setText(self.trUtf8('Edit')) - self.EditButton.setToolTip(self.trUtf8('Edit selected slide')) - self.EditAllButton.setText(self.trUtf8('Edit All')) - self.EditAllButton.setToolTip(self.trUtf8('Edit all slides')) - self.SaveButton.setText(self.trUtf8('Save')) - self.SaveButton.setToolTip(self.trUtf8('Replace edited slide')) - self.DeleteButton.setText(self.trUtf8('Delete')) - self.DeleteButton.setToolTip(self.trUtf8('Delete selected slide')) - self.ClearButton.setText(self.trUtf8('Clear')) - self.ClearButton.setToolTip(self.trUtf8('Clear edit area')) - self.SplitButton.setText(self.trUtf8('Split Slide')) - self.SplitButton.setToolTip(self.trUtf8('Add slide split')) - self.ThemeLabel.setText(self.trUtf8('Theme:')) - self.CreditLabel.setText(self.trUtf8('Credits:')) + customEditDialog.setWindowTitle(translate('EditCustomForm', 'Edit Custom Slides')) + self.UpButton.setToolTip(translate('EditCustomForm', 'Move slide Up 1')) + self.DownButton.setToolTip(translate('EditCustomForm', 'Move slide down 1')) + self.TitleLabel.setText(translate('EditCustomForm', 'Title:')) + self.AddButton.setText(translate('EditCustomForm', 'Add New')) + self.AddButton.setToolTip(translate('EditCustomForm', 'Add new slide at bottom')) + self.EditButton.setText(translate('EditCustomForm', 'Edit')) + self.EditButton.setToolTip(translate('EditCustomForm', 'Edit selected slide')) + self.EditAllButton.setText(translate('EditCustomForm', 'Edit All')) + self.EditAllButton.setToolTip(translate('EditCustomForm', 'Edit all slides')) + self.SaveButton.setText(translate('EditCustomForm', 'Save')) + self.SaveButton.setToolTip(translate('EditCustomForm', 'Replace edited slide')) + self.DeleteButton.setText(translate('EditCustomForm', 'Delete')) + self.DeleteButton.setToolTip(translate('EditCustomForm', 'Delete selected slide')) + self.ClearButton.setText(translate('EditCustomForm', 'Clear')) + self.ClearButton.setToolTip(translate('EditCustomForm', 'Clear edit area')) + self.SplitButton.setText(translate('EditCustomForm', 'Split Slide')) + self.SplitButton.setToolTip(translate('EditCustomForm', 'Add slide split')) + self.ThemeLabel.setText(translate('EditCustomForm', 'Theme:')) + self.CreditLabel.setText(translate('EditCustomForm', 'Credits:')) diff --git a/openlp/plugins/songs/forms/authorsdialog.py b/openlp/plugins/songs/forms/authorsdialog.py index ca28f461c..dbd7af077 100644 --- a/openlp/plugins/songs/forms/authorsdialog.py +++ b/openlp/plugins/songs/forms/authorsdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_AuthorsDialog(object): def setupUi(self, AuthorsDialog): @@ -73,7 +74,7 @@ class Ui_AuthorsDialog(object): QtCore.QMetaObject.connectSlotsByName(AuthorsDialog) def retranslateUi(self, AuthorsDialog): - AuthorsDialog.setWindowTitle(self.trUtf8('Author Maintenance')) - self.DisplayLabel.setText(self.trUtf8('Display name:')) - self.FirstNameLabel.setText(self.trUtf8('First name:')) - self.LastNameLabel.setText(self.trUtf8('Last name:')) + AuthorsDialog.setWindowTitle(translate('AuthorsForm', 'Author Maintenance')) + self.DisplayLabel.setText(translate('AuthorsForm', 'Display name:')) + self.FirstNameLabel.setText(translate('AuthorsForm', 'First name:')) + self.LastNameLabel.setText(translate('AuthorsForm', 'Last name:')) diff --git a/openlp/plugins/songs/forms/editsongdialog.py b/openlp/plugins/songs/forms/editsongdialog.py index b992aeea4..6d617072d 100644 --- a/openlp/plugins/songs/forms/editsongdialog.py +++ b/openlp/plugins/songs/forms/editsongdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate from openlp.core.lib import build_icon @@ -418,36 +419,36 @@ class Ui_EditSongDialog(object): EditSongDialog.setTabOrder(self.CommentsEdit, self.ButtonBox) def retranslateUi(self, EditSongDialog): - EditSongDialog.setWindowTitle(self.trUtf8('Song Editor')) - self.TitleLabel.setText(self.trUtf8('Title:')) - self.AlternativeTitleLabel.setText(self.trUtf8('Alternative Title:')) - self.LyricsLabel.setText(self.trUtf8('Lyrics:')) - self.VerseOrderLabel.setText(self.trUtf8('Verse Order:')) - self.VerseAddButton.setText(self.trUtf8('Add')) - self.VerseEditButton.setText(self.trUtf8('Edit')) - self.VerseEditAllButton.setText(self.trUtf8('Edit All')) - self.VerseDeleteButton.setText(self.trUtf8('Delete')) + EditSongDialog.setWindowTitle(translate('EditSongForm', 'Song Editor')) + self.TitleLabel.setText(translate('EditSongForm', 'Title:')) + self.AlternativeTitleLabel.setText(translate('EditSongForm', 'Alternative Title:')) + self.LyricsLabel.setText(translate('EditSongForm', 'Lyrics:')) + self.VerseOrderLabel.setText(translate('EditSongForm', 'Verse Order:')) + self.VerseAddButton.setText(translate('EditSongForm', 'Add')) + self.VerseEditButton.setText(translate('EditSongForm', 'Edit')) + self.VerseEditAllButton.setText(translate('EditSongForm', 'Edit All')) + self.VerseDeleteButton.setText(translate('EditSongForm', 'Delete')) self.SongTabWidget.setTabText( self.SongTabWidget.indexOf(self.LyricsTab), - self.trUtf8('Title && Lyrics')) - self.AuthorsGroupBox.setTitle(self.trUtf8('Authors')) - self.AuthorAddButton.setText(self.trUtf8('&Add to Song')) - self.AuthorRemoveButton.setText(self.trUtf8('&Remove')) + translate('EditSongForm', 'Title && Lyrics')) + self.AuthorsGroupBox.setTitle(translate('EditSongForm', 'Authors')) + self.AuthorAddButton.setText(translate('EditSongForm', '&Add to Song')) + self.AuthorRemoveButton.setText(translate('EditSongForm', '&Remove')) self.MaintenanceButton.setText( - self.trUtf8('&Manage Authors, Topics, Books')) - self.TopicGroupBox.setTitle(self.trUtf8('Topic')) - self.TopicAddButton.setText(self.trUtf8('A&dd to Song')) - self.TopicRemoveButton.setText(self.trUtf8('R&emove')) - self.SongBookGroup.setTitle(self.trUtf8('Song Book')) + translate('EditSongForm', '&Manage Authors, Topics, Books')) + self.TopicGroupBox.setTitle(translate('EditSongForm', 'Topic')) + self.TopicAddButton.setText(translate('EditSongForm', 'A&dd to Song')) + self.TopicRemoveButton.setText(translate('EditSongForm', 'R&emove')) + self.SongBookGroup.setTitle(translate('EditSongForm', 'Song Book')) self.SongTabWidget.setTabText( self.SongTabWidget.indexOf(self.AuthorsTab), - self.trUtf8('Authors, Topics && Book')) - self.ThemeGroupBox.setTitle(self.trUtf8('Theme')) - self.ThemeAddButton.setText(self.trUtf8('Add a Theme')) - self.CopyrightGroupBox.setTitle(self.trUtf8('Copyright Information')) - self.CopyrightInsertButton.setText(self.trUtf8(u'\u00a9'.encode('utf8'))) - self.CCLILabel.setText(self.trUtf8('CCLI Number:')) - self.CommentsGroupBox.setTitle(self.trUtf8('Comments')) + translate('EditSongForm', 'Authors, Topics && Book')) + self.ThemeGroupBox.setTitle(translate('EditSongForm', 'Theme')) + self.ThemeAddButton.setText(translate('EditSongForm', 'Add a Theme')) + self.CopyrightGroupBox.setTitle(translate('EditSongForm', 'Copyright Information')) + self.CopyrightInsertButton.setText(translate('EditSongForm', u'\xa9')) + self.CCLILabel.setText(translate('EditSongForm', 'CCLI Number:')) + self.CommentsGroupBox.setTitle(translate('EditSongForm', 'Comments')) self.SongTabWidget.setTabText( self.SongTabWidget.indexOf(self.ThemeTab), - self.trUtf8('Theme, Copyright Info && Comments')) + translate('EditSongForm', 'Theme, Copyright Info && Comments')) diff --git a/openlp/plugins/songs/forms/editversedialog.py b/openlp/plugins/songs/forms/editversedialog.py index 7829e2c27..201f06cc7 100644 --- a/openlp/plugins/songs/forms/editversedialog.py +++ b/openlp/plugins/songs/forms/editversedialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_EditVerseDialog(object): def setupUi(self, EditVerseDialog): @@ -109,21 +110,21 @@ class Ui_EditVerseDialog(object): QtCore.QMetaObject.connectSlotsByName(EditVerseDialog) def retranslateUi(self, EditVerseDialog): - EditVerseDialog.setWindowTitle(self.trUtf8('Edit Verse')) - self.VerseTypeLabel.setText(self.trUtf8('Verse Type')) - self.VerseListComboBox.setItemText(0, self.trUtf8('Intro')) - self.VerseListComboBox.setItemText(1, self.trUtf8('Verse')) - self.VerseListComboBox.setItemText(2, self.trUtf8('Pre-Chorus')) - self.VerseListComboBox.setItemText(3, self.trUtf8('Chorus')) - self.VerseListComboBox.setItemText(4, self.trUtf8('Bridge')) - self.VerseListComboBox.setItemText(5, self.trUtf8('Ending')) - self.VerseListComboBox.setItemText(6, self.trUtf8('Other')) - self.VerseNumberLabel.setText(self.trUtf8('Number')) - self.addBridge.setText(self.trUtf8('Bridge')) - self.addVerse.setText(self.trUtf8('Verse')) - self.addChorus.setText(self.trUtf8('Chorus')) - self.addPreChorus.setText(self.trUtf8('Pre-Chorus')) - self.addIntro.setText(self.trUtf8('Intro')) - self.addOther.setText(self.trUtf8('Other')) - self.addEnding.setText(self.trUtf8('Ending')) + EditVerseDialog.setWindowTitle(translate('EditVerseForm', 'Edit Verse')) + self.VerseTypeLabel.setText(translate('EditVerseForm', 'Verse Type')) + self.VerseListComboBox.setItemText(0, translate('EditVerseForm', 'Intro')) + self.VerseListComboBox.setItemText(1, translate('EditVerseForm', 'Verse')) + self.VerseListComboBox.setItemText(2, translate('EditVerseForm', 'Pre-Chorus')) + self.VerseListComboBox.setItemText(3, translate('EditVerseForm', 'Chorus')) + self.VerseListComboBox.setItemText(4, translate('EditVerseForm', 'Bridge')) + self.VerseListComboBox.setItemText(5, translate('EditVerseForm', 'Ending')) + self.VerseListComboBox.setItemText(6, translate('EditVerseForm', 'Other')) + self.VerseNumberLabel.setText(translate('EditVerseForm', 'Number')) + self.addBridge.setText(translate('EditVerseForm', 'Bridge')) + self.addVerse.setText(translate('EditVerseForm', 'Verse')) + self.addChorus.setText(translate('EditVerseForm', 'Chorus')) + self.addPreChorus.setText(translate('EditVerseForm', 'Pre-Chorus')) + self.addIntro.setText(translate('EditVerseForm', 'Intro')) + self.addOther.setText(translate('EditVerseForm', 'Other')) + self.addEnding.setText(translate('EditVerseForm', 'Ending')) diff --git a/openlp/plugins/songs/forms/openlpexportdialog.py b/openlp/plugins/songs/forms/openlpexportdialog.py index 2236d9ed3..2046f2f95 100644 --- a/openlp/plugins/songs/forms/openlpexportdialog.py +++ b/openlp/plugins/songs/forms/openlpexportdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_OpenLPExportDialog(object): def setupUi(self, OpenLPExportDialog): @@ -285,21 +286,21 @@ class Ui_OpenLPExportDialog(object): QtCore.QMetaObject.connectSlotsByName(OpenLPExportDialog) def retranslateUi(self, OpenLPExportDialog): - OpenLPExportDialog.setWindowTitle(self.trUtf8('openlp.org Song Exporter')) - self.ExportFileLabel.setText(self.trUtf8('Select openlp.org export filename:')) - self.ExportListLabel.setText(self.trUtf8('Full Song List')) - self.ExportListTable.horizontalHeaderItem(0).setText(self.trUtf8('Song Title')) - self.ExportListTable.horizontalHeaderItem(1).setText(self.trUtf8('Author')) - self.ExportSelectAllPushButton.setText(self.trUtf8('Select All')) - self.ExportFilterComboBox.setItemText(0, self.trUtf8('Lyrics')) - self.ExportFilterComboBox.setItemText(1, self.trUtf8('Title')) - self.ExportFilterComboBox.setItemText(2, self.trUtf8('Author')) - self.SelectedListLabel.setText(self.trUtf8('Song Export List')) - self.SelectedListTable.horizontalHeaderItem(0).setText(self.trUtf8('Song Title')) - self.SelectedListTable.horizontalHeaderItem(1).setText(self.trUtf8('Author')) - self.SelectedSelectAllPushButton.setText(self.trUtf8('Select All')) - self.SelectedRemoveSelectedButton.setText(self.trUtf8('Remove Selected')) - self.ProgressGroupBox.setTitle(self.trUtf8('Progress:')) - self.ProgressLabel.setText(self.trUtf8('Ready to export')) - self.ExportPushButton.setText(self.trUtf8('Export')) - self.ClosePushButton.setText(self.trUtf8('Close')) + OpenLPExportDialog.setWindowTitle(translate('OpenLPExportForm', 'openlp.org Song Exporter')) + self.ExportFileLabel.setText(translate('OpenLPExportForm', 'Select openlp.org export filename:')) + self.ExportListLabel.setText(translate('OpenLPExportForm', 'Full Song List')) + self.ExportListTable.horizontalHeaderItem(0).setText(translate('OpenLPExportForm', 'Song Title')) + self.ExportListTable.horizontalHeaderItem(1).setText(translate('OpenLPExportForm', 'Author')) + self.ExportSelectAllPushButton.setText(translate('OpenLPExportForm', 'Select All')) + self.ExportFilterComboBox.setItemText(0, translate('OpenLPExportForm', 'Lyrics')) + self.ExportFilterComboBox.setItemText(1, translate('OpenLPExportForm', 'Title')) + self.ExportFilterComboBox.setItemText(2, translate('OpenLPExportForm', 'Author')) + self.SelectedListLabel.setText(translate('OpenLPExportForm', 'Song Export List')) + self.SelectedListTable.horizontalHeaderItem(0).setText(translate('OpenLPExportForm', 'Song Title')) + self.SelectedListTable.horizontalHeaderItem(1).setText(translate('OpenLPExportForm', 'Author')) + self.SelectedSelectAllPushButton.setText(translate('OpenLPExportForm', 'Select All')) + self.SelectedRemoveSelectedButton.setText(translate('OpenLPExportForm', 'Remove Selected')) + self.ProgressGroupBox.setTitle(translate('OpenLPExportForm', 'Progress:')) + self.ProgressLabel.setText(translate('OpenLPExportForm', 'Ready to export')) + self.ExportPushButton.setText(translate('OpenLPExportForm', 'Export')) + self.ClosePushButton.setText(translate('OpenLPExportForm', 'Close')) diff --git a/openlp/plugins/songs/forms/openlpimportdialog.py b/openlp/plugins/songs/forms/openlpimportdialog.py index 61732d978..8080b5a25 100644 --- a/openlp/plugins/songs/forms/openlpimportdialog.py +++ b/openlp/plugins/songs/forms/openlpimportdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_OpenLPImportDialog(object): def setupUi(self, OpenLPImportDialog): @@ -285,21 +286,21 @@ class Ui_OpenLPImportDialog(object): QtCore.QMetaObject.connectSlotsByName(OpenLPImportDialog) def retranslateUi(self, OpenLPImportDialog): - OpenLPImportDialog.setWindowTitle(self.trUtf8('openlp.org Song Importer')) - self.ImportFileLabel.setText(self.trUtf8('Select openlp.org songfile to import:')) - self.ImportListLabel.setText(self.trUtf8('Import File Song List')) - self.ImportListTable.horizontalHeaderItem(0).setText(self.trUtf8('Song Title')) - self.ImportListTable.horizontalHeaderItem(1).setText(self.trUtf8('Author')) - self.ImportSelectAllPushButton.setText(self.trUtf8('Select All')) - self.ImportFilterComboBox.setItemText(0, self.trUtf8('Lyrics')) - self.ImportFilterComboBox.setItemText(1, self.trUtf8('Title')) - self.ImportFilterComboBox.setItemText(2, self.trUtf8('Author')) - self.SelectedListLabel.setText(self.trUtf8('Song Import List')) - self.SelectedListTable.horizontalHeaderItem(0).setText(self.trUtf8('Song Title')) - self.SelectedListTable.horizontalHeaderItem(1).setText(self.trUtf8('Author')) - self.SelectedSelectAllPushButton.setText(self.trUtf8('Select All')) - self.SelectedRemoveSelectedButton.setText(self.trUtf8('Remove Selected')) - self.ProgressGroupBox.setTitle(self.trUtf8('Progress:')) - self.ProgressLabel.setText(self.trUtf8('Ready to import')) - self.ImportPushButton.setText(self.trUtf8('Import')) - self.ClosePushButton.setText(self.trUtf8('Close')) + OpenLPImportDialog.setWindowTitle(translate('OpenLPImportForm', 'openlp.org Song Importer')) + self.ImportFileLabel.setText(translate('OpenLPImportForm', 'Select openlp.org songfile to import:')) + self.ImportListLabel.setText(translate('OpenLPImportForm', 'Import File Song List')) + self.ImportListTable.horizontalHeaderItem(0).setText(translate('OpenLPImportForm', 'Song Title')) + self.ImportListTable.horizontalHeaderItem(1).setText(translate('OpenLPImportForm', 'Author')) + self.ImportSelectAllPushButton.setText(translate('OpenLPImportForm', 'Select All')) + self.ImportFilterComboBox.setItemText(0, translate('OpenLPImportForm', 'Lyrics')) + self.ImportFilterComboBox.setItemText(1, translate('OpenLPImportForm', 'Title')) + self.ImportFilterComboBox.setItemText(2, translate('OpenLPImportForm', 'Author')) + self.SelectedListLabel.setText(translate('OpenLPImportForm', 'Song Import List')) + self.SelectedListTable.horizontalHeaderItem(0).setText(translate('OpenLPImportForm', 'Song Title')) + self.SelectedListTable.horizontalHeaderItem(1).setText(translate('OpenLPImportForm', 'Author')) + self.SelectedSelectAllPushButton.setText(translate('OpenLPImportForm', 'Select All')) + self.SelectedRemoveSelectedButton.setText(translate('OpenLPImportForm', 'Remove Selected')) + self.ProgressGroupBox.setTitle(translate('OpenLPImportForm', 'Progress:')) + self.ProgressLabel.setText(translate('OpenLPImportForm', 'Ready to import')) + self.ImportPushButton.setText(translate('OpenLPImportForm', 'Import')) + self.ClosePushButton.setText(translate('OpenLPImportForm', 'Close')) diff --git a/openlp/plugins/songs/forms/opensongexportdialog.py b/openlp/plugins/songs/forms/opensongexportdialog.py index c40800dfa..1821145ee 100644 --- a/openlp/plugins/songs/forms/opensongexportdialog.py +++ b/openlp/plugins/songs/forms/opensongexportdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_OpenSongExportDialog(object): def setupUi(self, OpenSongExportDialog): @@ -285,21 +286,21 @@ class Ui_OpenSongExportDialog(object): QtCore.QMetaObject.connectSlotsByName(OpenSongExportDialog) def retranslateUi(self, OpenSongExportDialog): - OpenSongExportDialog.setWindowTitle(self.trUtf8('OpenSong Song Exporter')) - self.ExportFileLabel.setText(self.trUtf8('Select OpenSong song folder:')) - self.ExportListLabel.setText(self.trUtf8('Full Song List')) - self.ExportListTable.horizontalHeaderItem(0).setText(self.trUtf8('Song Title')) - self.ExportListTable.horizontalHeaderItem(1).setText(self.trUtf8('Author')) - self.ExportSelectAllPushButton.setText(self.trUtf8('Select All')) - self.ExportFilterComboBox.setItemText(0, self.trUtf8('Lyrics')) - self.ExportFilterComboBox.setItemText(1, self.trUtf8('Title')) - self.ExportFilterComboBox.setItemText(2, self.trUtf8('Author')) - self.SelectedListLabel.setText(self.trUtf8('Song Export List')) - self.SelectedListTable.horizontalHeaderItem(0).setText(self.trUtf8('Song Title')) - self.SelectedListTable.horizontalHeaderItem(1).setText(self.trUtf8('Author')) - self.SelectedSelectAllPushButton.setText(self.trUtf8('Select All')) - self.SelectedRemoveSelectedButton.setText(self.trUtf8('Remove Selected')) - self.ProgressGroupBox.setTitle(self.trUtf8('Progress:')) - self.ProgressLabel.setText(self.trUtf8('Ready to export')) - self.ExportPushButton.setText(self.trUtf8('Export')) - self.ClosePushButton.setText(self.trUtf8('Close')) + OpenSongExportDialog.setWindowTitle(translate('OpenSongExportForm', 'OpenSong Song Exporter')) + self.ExportFileLabel.setText(translate('OpenSongExportForm', 'Select OpenSong song folder:')) + self.ExportListLabel.setText(translate('OpenSongExportForm', 'Full Song List')) + self.ExportListTable.horizontalHeaderItem(0).setText(translate('OpenSongExportForm', 'Song Title')) + self.ExportListTable.horizontalHeaderItem(1).setText(translate('OpenSongExportForm', 'Author')) + self.ExportSelectAllPushButton.setText(translate('OpenSongExportForm', 'Select All')) + self.ExportFilterComboBox.setItemText(0, translate('OpenSongExportForm', 'Lyrics')) + self.ExportFilterComboBox.setItemText(1, translate('OpenSongExportForm', 'Title')) + self.ExportFilterComboBox.setItemText(2, translate('OpenSongExportForm', 'Author')) + self.SelectedListLabel.setText(translate('OpenSongExportForm', 'Song Export List')) + self.SelectedListTable.horizontalHeaderItem(0).setText(translate('OpenSongExportForm', 'Song Title')) + self.SelectedListTable.horizontalHeaderItem(1).setText(translate('OpenSongExportForm', 'Author')) + self.SelectedSelectAllPushButton.setText(translate('OpenSongExportForm', 'Select All')) + self.SelectedRemoveSelectedButton.setText(translate('OpenSongExportForm', 'Remove Selected')) + self.ProgressGroupBox.setTitle(translate('OpenSongExportForm', 'Progress:')) + self.ProgressLabel.setText(translate('OpenSongExportForm', 'Ready to export')) + self.ExportPushButton.setText(translate('OpenSongExportForm', 'Export')) + self.ClosePushButton.setText(translate('OpenSongExportForm', 'Close')) diff --git a/openlp/plugins/songs/forms/opensongimportdialog.py b/openlp/plugins/songs/forms/opensongimportdialog.py index e0fd23821..9091e08ad 100644 --- a/openlp/plugins/songs/forms/opensongimportdialog.py +++ b/openlp/plugins/songs/forms/opensongimportdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_OpenSongImportDialog(object): def setupUi(self, OpenSongImportDialog): @@ -100,9 +101,9 @@ class Ui_OpenSongImportDialog(object): QtCore.QMetaObject.connectSlotsByName(OpenSongImportDialog) def retranslateUi(self, OpenSongImportDialog): - OpenSongImportDialog.setWindowTitle(self.trUtf8('OpenSong Song Importer')) - self.ImportFileLabel.setText(self.trUtf8('OpenSong Folder:')) - self.ProgressGroupBox.setTitle(self.trUtf8('Progress:')) - self.ProgressLabel.setText(self.trUtf8('Ready to import')) - self.ImportPushButton.setText(self.trUtf8('Import')) - self.ClosePushButton.setText(self.trUtf8('Close')) + OpenSongImportDialog.setWindowTitle(translate('OpenSongImportForm', 'OpenSong Song Importer')) + self.ImportFileLabel.setText(translate('OpenSongImportForm', 'OpenSong Folder:')) + self.ProgressGroupBox.setTitle(translate('OpenSongImportForm', 'Progress:')) + self.ProgressLabel.setText(translate('OpenSongImportForm', 'Ready to import')) + self.ImportPushButton.setText(translate('OpenSongImportForm', 'Import')) + self.ClosePushButton.setText(translate('OpenSongImportForm', 'Close')) diff --git a/openlp/plugins/songs/forms/songbookdialog.py b/openlp/plugins/songs/forms/songbookdialog.py index 823e20eba..3122ed21b 100644 --- a/openlp/plugins/songs/forms/songbookdialog.py +++ b/openlp/plugins/songs/forms/songbookdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_SongBookDialog(object): def setupUi(self, SongBookDialog): @@ -65,6 +66,6 @@ class Ui_SongBookDialog(object): QtCore.QMetaObject.connectSlotsByName(SongBookDialog) def retranslateUi(self, SongBookDialog): - SongBookDialog.setWindowTitle(self.trUtf8('Edit Book')) - self.NameLabel.setText(self.trUtf8('Name:')) - self.PublisherLabel.setText(self.trUtf8('Publisher:')) + SongBookDialog.setWindowTitle(translate('SongBookForm', 'Edit Book')) + self.NameLabel.setText(translate('SongBookForm', 'Name:')) + self.PublisherLabel.setText(translate('SongBookForm', 'Publisher:')) diff --git a/openlp/plugins/songs/forms/songmaintenancedialog.py b/openlp/plugins/songs/forms/songmaintenancedialog.py index cbd08f34d..a8751b132 100644 --- a/openlp/plugins/songs/forms/songmaintenancedialog.py +++ b/openlp/plugins/songs/forms/songmaintenancedialog.py @@ -25,7 +25,7 @@ from PyQt4 import QtCore, QtGui -from openlp.core.lib import build_icon +from openlp.core.lib import build_icon, translate class Ui_SongMaintenanceDialog(object): def setupUi(self, SongMaintenanceDialog): @@ -208,16 +208,16 @@ class Ui_SongMaintenanceDialog(object): QtCore.QMetaObject.connectSlotsByName(SongMaintenanceDialog) def retranslateUi(self, SongMaintenanceDialog): - SongMaintenanceDialog.setWindowTitle(self.trUtf8('Song Maintenance')) - self.TypeListWidget.item(0).setText(self.trUtf8('Authors')) - self.TypeListWidget.item(1).setText(self.trUtf8('Topics')) - self.TypeListWidget.item(2).setText(self.trUtf8('Books/Hymnals')) - self.AuthorAddButton.setText(self.trUtf8('Add')) - self.AuthorEditButton.setText(self.trUtf8('Edit')) - self.AuthorDeleteButton.setText(self.trUtf8('Delete')) - self.TopicAddButton.setText(self.trUtf8('Add')) - self.TopicEditButton.setText(self.trUtf8('Edit')) - self.TopicDeleteButton.setText(self.trUtf8('Delete')) - self.BookAddButton.setText(self.trUtf8('Add')) - self.BookEditButton.setText(self.trUtf8('Edit')) - self.BookDeleteButton.setText(self.trUtf8('Delete')) + SongMaintenanceDialog.setWindowTitle(translate('SongMaintenanceForm', 'Song Maintenance')) + self.TypeListWidget.item(0).setText(translate('SongMaintenanceForm', 'Authors')) + self.TypeListWidget.item(1).setText(translate('SongMaintenanceForm', 'Topics')) + self.TypeListWidget.item(2).setText(translate('SongMaintenanceForm', 'Books/Hymnals')) + self.AuthorAddButton.setText(translate('SongMaintenanceForm', 'Add')) + self.AuthorEditButton.setText(translate('SongMaintenanceForm', 'Edit')) + self.AuthorDeleteButton.setText(translate('SongMaintenanceForm', 'Delete')) + self.TopicAddButton.setText(translate('SongMaintenanceForm', 'Add')) + self.TopicEditButton.setText(translate('SongMaintenanceForm', 'Edit')) + self.TopicDeleteButton.setText(translate('SongMaintenanceForm', 'Delete')) + self.BookAddButton.setText(translate('SongMaintenanceForm', 'Add')) + self.BookEditButton.setText(translate('SongMaintenanceForm', 'Edit')) + self.BookDeleteButton.setText(translate('SongMaintenanceForm', 'Delete')) diff --git a/openlp/plugins/songs/forms/topicsdialog.py b/openlp/plugins/songs/forms/topicsdialog.py index 122af0455..a78d905f4 100644 --- a/openlp/plugins/songs/forms/topicsdialog.py +++ b/openlp/plugins/songs/forms/topicsdialog.py @@ -24,6 +24,7 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_TopicsDialog(object): def setupUi(self, TopicsDialog): @@ -59,5 +60,5 @@ class Ui_TopicsDialog(object): QtCore.QMetaObject.connectSlotsByName(TopicsDialog) def retranslateUi(self, TopicsDialog): - TopicsDialog.setWindowTitle(self.trUtf8('Topic Maintenance')) - self.NameLabel.setText(self.trUtf8('Topic name:')) + TopicsDialog.setWindowTitle(translate('TopicsForm', 'Topic Maintenance')) + self.NameLabel.setText(translate('TopicsForm', 'Topic name:')) diff --git a/openlp/plugins/songusage/forms/songusagedeletedialog.py b/openlp/plugins/songusage/forms/songusagedeletedialog.py index 2cb19f4f5..02b7496b2 100644 --- a/openlp/plugins/songusage/forms/songusagedeletedialog.py +++ b/openlp/plugins/songusage/forms/songusagedeletedialog.py @@ -24,12 +24,13 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_SongUsageDeleteDialog(object): - def setupUi(self, AuditDeleteDialog): - AuditDeleteDialog.setObjectName(u'AuditDeleteDialog') - AuditDeleteDialog.resize(291, 243) - self.layoutWidget = QtGui.QWidget(AuditDeleteDialog) + def setupUi(self, SongUsageDeleteDialog): + SongUsageDeleteDialog.setObjectName(u'SongUsageDeleteDialog') + SongUsageDeleteDialog.resize(291, 243) + self.layoutWidget = QtGui.QWidget(SongUsageDeleteDialog) self.layoutWidget.setGeometry(QtCore.QRect(20, 10, 247, 181)) self.layoutWidget.setObjectName(u'layoutWidget') self.verticalLayout = QtGui.QVBoxLayout(self.layoutWidget) @@ -41,20 +42,20 @@ class Ui_SongUsageDeleteDialog(object): QtGui.QCalendarWidget.NoVerticalHeader) self.DeleteCalendar.setObjectName(u'DeleteCalendar') self.verticalLayout.addWidget(self.DeleteCalendar) - self.buttonBox = QtGui.QDialogButtonBox(AuditDeleteDialog) + self.buttonBox = QtGui.QDialogButtonBox(SongUsageDeleteDialog) self.buttonBox.setGeometry(QtCore.QRect(30, 210, 245, 25)) self.buttonBox.setStandardButtons( QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(u'buttonBox') - self.retranslateUi(AuditDeleteDialog) + self.retranslateUi(SongUsageDeleteDialog) QtCore.QObject.connect( self.buttonBox, QtCore.SIGNAL(u'accepted()'), - AuditDeleteDialog.accept) + SongUsageDeleteDialog.accept) QtCore.QObject.connect( self.buttonBox, QtCore.SIGNAL(u'rejected()'), - AuditDeleteDialog.close) - QtCore.QMetaObject.connectSlotsByName(AuditDeleteDialog) + SongUsageDeleteDialog.close) + QtCore.QMetaObject.connectSlotsByName(SongUsageDeleteDialog) - def retranslateUi(self, AuditDeleteDialog): - AuditDeleteDialog.setWindowTitle(self.trUtf8('Song Usage Delete')) + def retranslateUi(self, SongUsageDeleteDialog): + SongUsageDeleteDialog.setWindowTitle(translate('AuditDeleteDialog', 'Song Usage Delete')) diff --git a/openlp/plugins/songusage/forms/songusagedetaildialog.py b/openlp/plugins/songusage/forms/songusagedetaildialog.py index 13b4fe18d..9e25651ab 100644 --- a/openlp/plugins/songusage/forms/songusagedetaildialog.py +++ b/openlp/plugins/songusage/forms/songusagedetaildialog.py @@ -24,14 +24,15 @@ ############################################################################### from PyQt4 import QtCore, QtGui +from openlp.core.lib import translate class Ui_SongUsageDetailDialog(object): - def setupUi(self, AuditDetailDialog): - AuditDetailDialog.setObjectName(u'AuditDetailDialog') - AuditDetailDialog.resize(609, 413) - self.verticalLayout = QtGui.QVBoxLayout(AuditDetailDialog) + def setupUi(self, SongUsageDetailDialog): + SongUsageDetailDialog.setObjectName(u'SongUsageDetailDialog') + SongUsageDetailDialog.resize(609, 413) + self.verticalLayout = QtGui.QVBoxLayout(SongUsageDetailDialog) self.verticalLayout.setObjectName(u'verticalLayout') - self.DateRangeGroupBox = QtGui.QGroupBox(AuditDetailDialog) + self.DateRangeGroupBox = QtGui.QGroupBox(SongUsageDetailDialog) self.DateRangeGroupBox.setObjectName(u'DateRangeGroupBox') self.verticalLayout_2 = QtGui.QVBoxLayout(self.DateRangeGroupBox) self.verticalLayout_2.setObjectName(u'verticalLayout_2') @@ -68,25 +69,25 @@ class Ui_SongUsageDetailDialog(object): self.verticalLayout_4.addLayout(self.horizontalLayout) self.verticalLayout_2.addWidget(self.FileGroupBox) self.verticalLayout.addWidget(self.DateRangeGroupBox) - self.buttonBox = QtGui.QDialogButtonBox(AuditDetailDialog) + self.buttonBox = QtGui.QDialogButtonBox(SongUsageDetailDialog) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(u'buttonBox') self.verticalLayout.addWidget(self.buttonBox) - self.retranslateUi(AuditDetailDialog) + self.retranslateUi(SongUsageDetailDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(u'accepted()'), - AuditDetailDialog.accept) + SongUsageDetailDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(u'rejected()'), - AuditDetailDialog.close) + SongUsageDetailDialog.close) QtCore.QObject.connect(self.SaveFilePushButton, QtCore.SIGNAL(u'pressed()'), - AuditDetailDialog.defineOutputLocation) - QtCore.QMetaObject.connectSlotsByName(AuditDetailDialog) + SongUsageDetailDialog.defineOutputLocation) + QtCore.QMetaObject.connectSlotsByName(SongUsageDetailDialog) - def retranslateUi(self, AuditDetailDialog): - AuditDetailDialog.setWindowTitle(self.trUtf8('Song Usage Extraction')) - self.DateRangeGroupBox.setTitle(self.trUtf8('Select Date Range')) - self.ToLabel.setText(self.trUtf8('to')) - self.FileGroupBox.setTitle(self.trUtf8('Report Location')) + def retranslateUi(self, SongUsageDetailDialog): + SongUsageDetailDialog.setWindowTitle(translate('AuditDetailDialog', 'Song Usage Extraction')) + self.DateRangeGroupBox.setTitle(translate('AuditDetailDialog', 'Select Date Range')) + self.ToLabel.setText(translate('AuditDetailDialog', 'to')) + self.FileGroupBox.setTitle(translate('AuditDetailDialog', 'Report Location')) diff --git a/resources/i18n/openlp_af.qm b/resources/i18n/openlp_af.qm new file mode 100644 index 000000000..6048181b7 Binary files /dev/null and b/resources/i18n/openlp_af.qm differ diff --git a/resources/i18n/openlp_de.qm b/resources/i18n/openlp_de.qm new file mode 100644 index 000000000..860e84dc8 Binary files /dev/null and b/resources/i18n/openlp_de.qm differ diff --git a/resources/i18n/openlp_en.qm b/resources/i18n/openlp_en.qm new file mode 100644 index 000000000..6bd22c41d Binary files /dev/null and b/resources/i18n/openlp_en.qm differ diff --git a/resources/i18n/openlp_en.ts b/resources/i18n/openlp_en.ts index 1660428e2..a00e05646 100644 --- a/resources/i18n/openlp_en.ts +++ b/resources/i18n/openlp_en.ts @@ -1,4848 +1,3699 @@ - - - - BibleMediaItem + + + AboutForm - - Quick - + + About OpenLP + - - - Ui_customEditDialog - - Delete selected slide - - - - - BiblesTab - - - ( and ) - - - - - RemoteTab - - - Remotes - - - - - Ui_EditSongDialog - - - &Remove - - - - - Ui_AmendThemeDialog - - - Shadow Size: - - - - - Ui_OpenSongExportDialog - - - Close - - - - - ThemeManager - - - Import Theme - - - - - Ui_AmendThemeDialog - - - Slide Transition - - - - - SongMaintenanceForm - - - Are you sure you want to delete the selected book? - - - - - ThemesTab - - - Theme level - - - - - BibleMediaItem - - - Bible - - - - - ServiceManager - - - Save Changes to Service? - - - - - SongUsagePlugin - - - &Delete recorded data - - - - - Ui_OpenLPExportDialog - - - Song Title - - - - - Ui_customEditDialog - - - Edit selected slide - - - - - SongMediaItem - - - CCLI Licence: - - - - - Ui_BibleImportWizard - - - Bible Import Wizard - - - - - Ui_customEditDialog - - - Edit All - - - - - SongMaintenanceForm - - - Couldn't save your author. - - - - - Ui_ServiceNoteEdit - - - Service Item Notes - - - - - Ui_customEditDialog - - - Add new slide at bottom - - - - - Clear - - - - - ThemesTab - - - Global theme - - - - - PresentationPlugin - - - <b>Presentation Plugin</b> <br> Delivers the ability to show presentations using a number of different programs. The choice of available presentation programs is available to the user in a drop down box. - - - - - SongUsagePlugin - - - Start/Stop live song usage recording - - - - - MainWindow - - - The Main Display has been blanked out - - - - - Ui_OpenSongExportDialog - - - Lyrics - - - - - Ui_AlertDialog - - - Display - - - - - SongMaintenanceForm - - - This author can't be deleted, they are currently assigned to at least one song. - - - - - Ui_customEditDialog - - - Delete - - - - - Ui_EditVerseDialog - - - Verse - - - - - Ui_OpenSongImportDialog - - - OpenSong Folder: - - - - - ThemeManager - - - Create a new theme - - - - - Ui_MainWindow - - - Open an existing service - - - - - SlideController - - - Move to previous - - - - - SongsPlugin - - - &Song - - - - - Ui_PluginViewDialog - - - Plugin Details - - - - - ImportWizardForm - - - You need to specify a file with books of the Bible to use in the import. - - - - - AlertsTab - - - Edit History: - - - - - Ui_MainWindow - - - &File - - - - - BiblesTab - - - verse per line - - - - - Ui_customEditDialog - - - Theme: - - - - - SongMaintenanceForm - - - Couldn't add your book. - - - - - Error - - - - - Ui_BibleImportWizard - - - Bible: - - - - - ThemeManager - - - Delete Theme - - - - - SplashScreen - - - Splash Screen - - - - - SongMediaItem - - - Song - - - - - Ui_OpenSongExportDialog - - - Song Title - - - - - Ui_AmendThemeDialog - - - Bottom - - - - - Ui_MainWindow - - - List the Plugins - - - - - SongMaintenanceForm - - - No author selected! - - - - - SongUsageDeleteForm - - - Delete Selected Song Usage Events? - - - - - SongUsagePlugin - - - <b>SongUsage Plugin</b><br>This plugin records the use of songs and when they have been used during a live service - - - - - Ui_customEditDialog - - - Move slide Up 1 - - - - - SongsPlugin - - - OpenSong - - - - - AlertsManager - - - Alert message created and delayed - - - - - Ui_EditSongDialog - - - Alternative Title: - - - - - ServiceManager - - - Open Service - - - - - BiblesTab - - - Display Style: - - - - - Ui_AmendThemeDialog - - - Image - - - - - EditSongForm - - - You need to enter a song title. - - - - - ThemeManager - - - Error - - - - - Ui_SongUsageDeleteDialog - - - Song Usage Delete - - - - - ImportWizardForm - - - Invalid Bible Location - - - - - BibleMediaItem - - - Book: - - - - - ThemeManager - - - Make Global - - - - - Ui_MainWindow - - - &Service Manager - - - - - Ui_OpenLPImportDialog - - - Author - - - - - Ui_AmendThemeDialog - - - Height: - - - - - ThemeManager - - - Delete a theme - - - - - Ui_BibleImportWizard - - - Crosswalk - - - - - SongBookForm - - - Error - - - - - Ui_AuthorsDialog - - - Last name: - - - - - ThemesTab - - - Use the global theme, overriding any themes associated with either the service or the songs. - - - - - Ui_customEditDialog - - - Title: - - - - - ImportWizardForm - - - You need to set a copyright for your Bible! Bibles in the Public Domain need to be marked as such. - - - - - SongMediaItem - - - Maintain the lists of authors, topics and books - - - - - Ui_AlertEditDialog - - - Save - - - - - EditCustomForm - - - You have unsaved data - - - - - Ui_AmendThemeDialog - - - Outline - - - - - BibleMediaItem - - - Text Search - - - - - Ui_BibleImportWizard - - - CSV - - - - - SongUsagePlugin - - - Delete song usage to specified date - - - - - Ui_SongUsageDetailDialog - - - Report Location - - - - - Ui_BibleImportWizard - - - OpenSong - - - - - Ui_MainWindow - - - Open Service - - - - - BibleMediaItem - - - Find: - - - - - ImageMediaItem - - - Select Image(s) - - - - - BibleMediaItem - - - Search Type: - - - - - Ui_MainWindow - - - Media Manager - - - - - Alt+F4 - - - - - MediaManagerItem - - - &Preview - - - - - GeneralTab - - - CCLI Details - - - - - BibleMediaItem - - - Bible not fully loaded - - - - - Ui_MainWindow - - - Toggle the visibility of the Preview Panel - - - - - ImportWizardForm - - - Bible Exists - - - - - Ui_MainWindow - - - &User Guide - - - - - AlertsTab - - - pt - - - - - Ui_MainWindow - - - Set the interface language to English - - - - - Ui_AmendThemeDialog - - - Main Font - - - - - ImportWizardForm - - - Empty Copyright - - - - - AuthorsForm - - - You need to type in the first name of the author. - - - - - SongsTab - - - Display Verses on Live Tool bar: - - - - - ServiceManager - - - Move to top - - - - - ImageMediaItem - - - Override background - - - - - Ui_SongMaintenanceDialog - - - Edit - - - - - Ui_OpenSongExportDialog - - - Select All - - - - - ThemesTab - - - Use the theme from each song in the database. If a song doesn't have a theme associated with it, then use the service's theme. If the service doesn't have a theme, then use the global theme. - - - - - PresentationMediaItem - - - Presentation - - - - - Ui_AmendThemeDialog - - - Solid Color - - - - - CustomTab - - - Custom - - - - - Ui_OpenLPImportDialog - - - Ready to import - - - - - MainWindow - - - OpenLP version %s has been updated to version %s - -You can obtain the latest version from http://openlp.org - - - - - Ui_BibleImportWizard - - - File Location: - - - - - SlideController - - - Go to Verse - - - - - SongMaintenanceForm - - - Couldn't add your topic. - - - - - Ui_MainWindow - - - &Import - - - - - Quit OpenLP - - - - - Ui_BibleImportWizard - - - This wizard will help you to import Bibles from a variety of formats. Click the next button below to start the process by selecting a format to import from. - - - - - Ui_OpenLPExportDialog - - - Title - - - - - ImportWizardForm - - - Empty Version Name - - - - - Ui_MainWindow - - - &Preview Panel - - - - - SlideController - - - Start continuous loop - - - - - GeneralTab - - - primary - - - - - Ui_EditSongDialog - - - Add a Theme - - - - - Ui_MainWindow - - - &New - - - - - Ui_customEditDialog - - - Credits: - - - - - Ui_EditSongDialog - - - R&emove - - - - - SlideController - - - Live - - - - - Ui_AmendThemeDialog - - - Font Main - - - - - BiblesTab - - - continuous - - - - - ThemeManager - - - File is not a valid theme. - - - - - GeneralTab - - - Application Startup - - - - - Ui_AmendThemeDialog - - - Use Default Location: - - - - - Ui_OpenSongImportDialog - - - Import - - - - - Ui_AmendThemeDialog - - - Other Options - - - - - Ui_EditSongDialog - - - Verse Order: - - - - - Ui_MainWindow - - - Default Theme: - - - - - Toggle Preview Panel - - - - - SongMediaItem - - - Lyrics - - - - - Ui_OpenLPImportDialog - - - Progress: - - - - - Ui_AmendThemeDialog - - - Shadow - - - - - GeneralTab - - - Select monitor for output display: - - - - - Ui_MainWindow - - - &Settings - - - - - EditSongForm - - - Invalid verse entry - values must be Numeric, I,B,C,T,P,E,O - - - - - Ui_AmendThemeDialog - - - Italics - - - - - ServiceManager - - - Create a new service - - - - - Ui_AmendThemeDialog - - - Background: - - - - - Ui_OpenLPImportDialog - - - openlp.org Song Importer - - - - - Ui_BibleImportWizard - - - Copyright: - - - - - ThemesTab - - - Service level - - - - - BiblesTab - - - [ and ] - - - - - Ui_BibleImportWizard - - - Verse Location: - - - - - MediaManagerItem - - - You must select one or more items - - - - - GeneralTab - - - Application Settings - - - - - ServiceManager - - - Save this service - - - - - ImportWizardForm - - - Open Books CSV file - - - - - GeneralTab - - - SongSelect Username: - - - - - Ui_AmendThemeDialog - - - X Position: - - - - - BibleMediaItem - - - No matching book could be found in this Bible. - - - - - Ui_BibleImportWizard - - - Server: - - - - - Ui_EditVerseDialog - - - Ending - - - - - CustomTab - - - Display Footer: - - - - - ImportWizardForm - - - Invalid OpenSong Bible - - - - - GeneralTab - - - CCLI Number: - - - - - Ui_AmendThemeDialog - - - Center - - - - - ServiceManager - - - Theme: - - - - - AlertEditForm - - - Please save or clear selected item - - - - - Ui_MainWindow - - - &Live - - - - - Ui_AmendThemeDialog - - - <Color2> - - - - - Ui_MainWindow - - - English - - - - - ImageMediaItem - - - You must select one or more items - - - - - Ui_AuthorsDialog - - - First name: - - - - - Ui_OpenLPExportDialog - - - Select openlp.org export filename: - - - - - Ui_BibleImportWizard - - - Permission: - - - - - Ui_OpenSongImportDialog - - - Close - - - - - Ui_SongUsageDetailDialog - - - Song Usage Extraction - - - - - Ui_AmendThemeDialog - - - Opaque - - - - - ImportWizardForm - - - Your Bible import failed. - - - - - SlideController - - - Start playing media - - - - - SongMediaItem - - - Type: - - - - - SongMaintenanceForm - - - This book can't be deleted, it is currently assigned to at least one song. - - - - - Ui_AboutDialog - - - Close - - - - - TopicsForm - - - You need to type in a topic name! - - - - - Ui_OpenSongExportDialog - - - Song Export List - - - - - BibleMediaItem - - - Dual: - - - - - ImageTab - - - sec - - - - - ServiceManager - - - Delete From Service - - - - - GeneralTab - - - Automatically open the last service - - - - - Ui_OpenLPImportDialog - - - Song Import List - - - - - Ui_OpenSongExportDialog - - - Author - - - - - Ui_AmendThemeDialog - - - Outline Color: - - - - - Ui_BibleImportWizard - - - Select Import Source - - - - - Ui_MainWindow - - - F9 - - - - - F8 - - - - - ServiceManager - - - &Change Item Theme - - - - - Ui_SongMaintenanceDialog - - - Topics - - - - - Ui_OpenLPImportDialog - - - Import File Song List - - - - - Ui_customEditDialog - - - Edit Custom Slides - - - - - Ui_BibleImportWizard - - - Set up the Bible's license details. - - - - - Ui_EditVerseDialog - - - Number - - - - - Ui_AmendThemeDialog - - - Alignment - - - - - SongMaintenanceForm - - - Delete Book - - - - - ThemeManager - - - Edit a theme - - - - - Ui_BibleImportWizard - - - BibleGateway - - - - - GeneralTab - - - Preview Next Song from Service Manager - - - - - Ui_EditSongDialog - - - Title && Lyrics - - - - - SongMaintenanceForm - - - No book selected! - - - - - SlideController - - - Move to live - - - - - Ui_EditVerseDialog - - - Other - - - - - Ui_EditSongDialog - - - Theme - - - - - ServiceManager - - - Save Service - - - - - Ui_SongUsageDetailDialog - - - Select Date Range - - - - - Ui_MainWindow - - - Save the current service to disk - - - - - BibleMediaItem - - - Chapter: - - - - - Search - - - - - PresentationTab - - - Available Controllers - - - - - Ui_MainWindow - - - Add &Tool... - - - - - TopicsForm - - - Error - - - - - RemoteTab - - - Remotes Receiver Port - - - - - Ui_MainWindow - - - &View - - - - - Ui_AmendThemeDialog - - - Normal - - - - - Ui_OpenLPExportDialog - - - Close - - - - - Ui_BibleImportWizard - - - Username: - - - - - ThemeManager - - - Edit Theme - - - - - SlideController - - - Preview - - - - - Ui_AlertDialog - - - Alert Message - - - - - ImportWizardForm - - - Finished import. - - - - - GeneralTab - - - Show blank screen warning - - - - - ImportWizardForm - - - You need to specify a file of Bible verses to import. - - - - - AlertsTab - - - Location: - - - - - Ui_EditSongDialog - - - Authors, Topics && Book - - - - - EditSongForm - - - You need to enter some verses. - - - - - Ui_BibleImportWizard - - - Download Options - - - - - BiblePlugin - - - <strong>Bible Plugin</strong><br />This plugin allows bible verses from different sources to be displayed on the screen during the service. - - - - - Ui_EditSongDialog - - - Copyright Information - - - - - Ui_MainWindow - - - &Export - - - - - Ui_AmendThemeDialog - - - Bold - - - - - SongsPlugin - - - Export songs in OpenLP 2.0 format - - - - - MediaManagerItem - - - Load a new - - - - - AlertEditForm - - - Missing data - - - - - SongsPlugin - - - <b>Song Plugin</b> <br>This plugin allows Songs to be managed and displayed.<br> - - - - - Ui_AmendThemeDialog - - - Footer Font - - - - - EditSongForm - - - Invalid verse entry - vX - - - - - ServiceManager - - - OpenLP Service Files (*.osz) - - - - - MediaManagerItem - - - Delete the selected item - - - - - Ui_OpenLPExportDialog - - - Export - - - - - Ui_BibleImportWizard - - - Location: - - - - - BibleMediaItem - - - Keep - - - - - SongUsagePlugin - - - Generate report on Song Usage - - - - - Ui_EditSongDialog - - - Topic - - - - - Ui_MainWindow - - - &Open - - - - - AuthorsForm - - - You haven't set a display name for the author, would you like me to combine the first and last names for you? - - - - - AmendThemeForm - - - Slide Height is %s rows - - - - - Ui_EditSongDialog - - - Lyrics: - - - - - Ui_AboutDialog - - - Project Lead - Raoul "superfly" Snyman - -Developers - Tim "TRB143" Bentley - Jonathan "gushie" Corwin - Michael "cocooncrash" Gorven - Scott "sguerrieri" Guerrieri - Raoul "superfly" Snyman - Maikel Stuivenberg - Martin "mijiti" Thompson - Jon "Meths" Tibble - Carsten "catini" Tingaard - -Testers - Wesley "wrst" Stout - - - - - SongMediaItem - - - Titles - - - - - Ui_OpenLPExportDialog - - - Lyrics - - - - - PresentationMediaItem - - - Present using: - - - - - SongMediaItem - - - Clear - - - - - ServiceManager - - - &Live Verse - - - - - Ui_OpenSongImportDialog - - - Progress: - - - - - Ui_MainWindow - - - Toggle Theme Manager - - - - - Ui_AlertDialog - - - Alert Text: - - - - - Ui_EditSongDialog - - - Edit - - - - - AlertsTab - - - Font Color: - - - - - Ui_AmendThemeDialog - - - Theme Maintenance - - - - - CustomTab - - - Custom Display - - - - - Ui_OpenSongExportDialog - - - Title - - - - - Ui_AmendThemeDialog - - - <Color1> - - - - - Ui_EditSongDialog - - - Authors - - - - - ThemeManager - - - Export Theme - - - - - ImageMediaItem - - - No items selected... - - - - - Ui_SongBookDialog - - - Name: - - - - - Ui_AuthorsDialog - - - Author Maintenance - - - - - Ui_AmendThemeDialog - - - Font Footer - - - - - BiblesTab - - - Verse Display - - - - - Ui_MainWindow - - - &Options - - - - - BibleMediaItem - - - Results: - - - - - Ui_OpenLPExportDialog - - - Full Song List - - - - - ServiceManager - - - Move to &top - - - - - SlideController - - - Move to last - - - - - Ui_OpenLPExportDialog - - - Progress: - - - - - Ui_SongMaintenanceDialog - - - Add - - - - - SongMaintenanceForm - - - Are you sure you want to delete the selected author? - - - - - SongUsagePlugin - - - Song Usage Status - - - - - BibleMediaItem - - - Verse Search - - - - - Ui_SongBookDialog - - - Edit Book - - - - - EditSongForm - - - Save && Preview - - - - - Ui_SongBookDialog - - - Publisher: - - - - - Ui_AmendThemeDialog - - - Font Weight: - - - - - Ui_BibleImportWizard - - - Bible Filename: - - - - - Ui_AmendThemeDialog - - - Transparent - - - - - SongMediaItem - - - Search - - - - - Ui_BibleImportWizard - - - Format: - - - - - Ui_AmendThemeDialog - - - Background - - - - - Ui_BibleImportWizard - - - Importing - - - - - Ui_customEditDialog - - - Edit all slides - - - - - SongsTab - - - Enable search as you type: - - - - - Ui_MainWindow - - - Ctrl+S - - - - - SongMediaItem - - - Authors - - - - - Ui_PluginViewDialog - - - Active - - - - - SongMaintenanceForm - - - Couldn't add your author. - - - - - Ui_MainWindow - - - Ctrl+O - - - - - Ctrl+N - - - - - Ui_AlertEditDialog - - - Edit - - - - - Ui_EditSongDialog - - - Song Editor - - - - - AlertsTab - - - Font - - - - - SlideController - - - Edit and re-preview Song - - - - - Delay between slides in seconds - - - - - MediaManagerItem - - - &Edit - - - - - Ui_AmendThemeDialog - - - Vertical - - - - - Width: - - - - - ThemesTab - - - Global level - - - - - ThemeManager - - - You are unable to delete the default theme. - - - - - BibleMediaItem - - - Version: - - - - - Ui_AboutDialog - - - OpenLP <version> build <revision> - Open Source Lyrics Projection + + OpenLP <version><revision> - Open Source Lyrics Projection OpenLP is free church presentation software, or lyrics projection software, used to display slides of songs, Bible verses, videos, images, and even presentations (if OpenOffice.org, PowerPoint or PowerPoint Viewer is installed) for church worship using a computer and a data projector. Find out more about OpenLP: http://openlp.org/ OpenLP is written and maintained by volunteers. If you would like to see more free Christian software being written, please consider contributing by using the button below. - + - - - SongsPlugin - - OpenLP 2.0 - + + About + - - - ServiceManager - - New Service - + + Project Lead + Raoul "superfly" Snyman + +Developers + Tim "TRB143" Bentley + Jonathan "gushie" Corwin + Michael "cocooncrash" Gorven + Scott "sguerrieri" Guerrieri + Raoul "superfly" Snyman + Martin "mijiti" Thompson + Jon "Meths" Tibble + +Contributors + Meinert "m2j" Jordan + Christian "crichter" Richter + Maikel Stuivenberg + Carsten "catini" Tingaard + +Testers + Philip "Phill" Ridout + Wesley "wrst" Stout (lead) + +Packagers + Thomas "tabthorpe" Abthorpe (FreeBSD) + Tim "TRB143" Bentley (Fedora) + Michael "cocooncrash" Gorven (Ubuntu) + Matthias "matthub" Hub (Mac OS X) + Raoul "superfly" Snyman (Windows) + + - - - Ui_TopicsDialog - - Topic name: - + + Credits + - - - Ui_BibleImportWizard - - License Details - + + Copyright © 2004-2010 Raoul Snyman +Portions copyright © 2004-2010 Tim Bentley, Jonathan Corwin, Michael Gorven, Scott Guerrieri, Christian Richter, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Carsten Tinggaard + +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See below for more details. + + +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +GNU GENERAL PUBLIC LICENSE +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + +a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + +b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + +c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: + +a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + +b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + +c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version', you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + +<one line to give the program's name and a brief idea of what it does.> +Copyright (C) <year> <name of author> + +This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + +You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: + +Gnomovision version 69, Copyright (C) year name of author +Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type "show w". +This is free software, and you are welcome to redistribute it under certain conditions; type "show c" for details. + +The hypothetical commands "show w" and "show c" should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than "show w" and "show c"; they could even be mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: + +Yoyodyne, Inc., hereby disclaims all copyright interest in the program "Gnomovision" (which makes passes at compilers) written by James Hacker. + +<signature of Ty Coon>, 1 April 1989 +Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. + - - - Ui_AboutDialog - - License - + + License + - - - OpenSongBible - - Importing - + + Contribute + - - - Ui_AmendThemeDialog - - Middle - + + Close + - - - Ui_customEditDialog - - Save - + + build + - - - AlertEditForm + + + AlertForm - - Item selected to Edit - + + Alert Message + - - - BibleMediaItem - - From: - + + Alert &text: + - - - Ui_AmendThemeDialog - - Shadow Color: - + + &Parameter(s): + - - - ServiceManager - - &Notes - + + &New + - - - Ui_MainWindow - - E&xit - + + &Save + - - - Ui_OpenLPImportDialog - - Close - + + &Delete + - - - MainWindow - - OpenLP Version Updated - + + Displ&ay + - - - Ui_customEditDialog - - Replace edited slide - + + Display && Cl&ose + - - - EditCustomForm - - You need to enter a title - + + &Close + - - - ThemeManager - - Theme Exists - + + Item selected to Add + - - - Ui_MainWindow - - &Help - + + Missing data + - - - Ui_EditVerseDialog - - - Bridge - - - - - Ui_OpenSongExportDialog - - - OpenSong Song Exporter - - - - - Ui_AmendThemeDialog - - - Vertical Align: - - - - - Ui_EditVerseDialog - - - Pre-Chorus - - - - - Ui_AmendThemeDialog - - - Top - - - - - BiblesTab - - - Display Dual Bible Verses - - - - - Ui_MainWindow - - - Toggle Service Manager - - - - - Ui_EditSongDialog - - - Delete - - - - - MediaManagerItem - - - &Add to Service - - - - - AmendThemeForm - - - First Color: - - - - - ThemesTab - - - Song level - - - - - alertsPlugin - - - Show an alert message - - - - - Ui_MainWindow - - - Ctrl+F1 - - - - - SongMaintenanceForm - - - Couldn't save your topic. - - - - - Ui_MainWindow - - - Save the current service under a new name - - - - - Ui_OpenLPExportDialog - - - Remove Selected - - - - - ThemeManager - - - Delete theme - - - - - ImageTab - - - Image Settings - - - - - Ui_OpenSongImportDialog - - - OpenSong Song Importer - - - - - SongUsagePlugin - - - &Extract recorded data - - - - + + AlertsTab - - Font Name: - - - - - Ui_MainWindow - - - &Web Site - - - - - MediaManagerItem - - - Send the selected item live - - - - - Ui_MainWindow - - - M&ode - + + pt + - - Translate the interface to your language - + + Location: + - - Service Manager - - - - - CustomMediaItem - - - Custom - - - - - Ui_BibleImportWizard - - - OSIS - - - - - SongsPlugin - - - openlp.org 1.0 - - - - - Ui_MainWindow - - - &Theme - - - - - Ui_EditVerseDialog - - - Edit Verse - - - - - Ui_MainWindow - - - &Language - - - - - ServiceManager - - - Move to end - + + Font Color: + - - Your service is unsaved, do you want to save those changes before creating a new one ? - - - - - Ui_OpenSongExportDialog - - - Remove Selected - - - - - SongMediaItem - - - Search: - - - - - MainWindow - - - Save Changes to Service? - + + Font + - - Your service has changed, do you want to save those changes? - + + Font Name: + - - - ServiceManager - - &Delete From Service - + + Preview + - - - Ui_EditSongDialog - - &Add to Song - + + Alerts + - - - Ui_MainWindow - - &About - + + Alert timeout: + - - - ImportWizardForm - - You need to specify a version name for your Bible. - + + openlp.org + - - - BiblesTab - - Only show new chapter numbers - + + Background Color: + - - - Ui_AlertEditDialog - - Delete - + + s + - - - EditCustomForm - - Error - + + Bottom + - - - ThemesTab - - Use the theme from the service, overriding any of the individual songs' themes. If the service doesn't have a theme, then use the global theme. - + + Top + - - - AlertEditForm - - Item selected to Add - + + Font Size: + - - - Ui_AmendThemeDialog + + + AmendThemeForm - - Right - + + Slide Height is %s rows + - - - ThemeManager - - Save Theme - (%s) - + + First Color: + - - - MediaManagerItem - - Add the selected item(s) to the service - + + Second Color: + - - + + + Background Color: + + + + + Theme Maintenance + + + + + Theme Name: + + + + + Background: + + + + + Opaque + + + + + Transparent + + + + + Background Type: + + + + + Solid Color + + + + + Gradient + + + + + Image + + + + + <Color1> + + + + + <Color2> + + + + + Image: + + + + + Gradient : + + + + + Horizontal + + + + + Vertical + + + + + Circular + + + + + Background + + + + + Main Font + + + + + Font: + + + + + Font Color: + + + + + Size: + + + + + pt + + + + + Wrap Indentation + + + + + Adjust Line Spacing + + + + + Normal + + + + + Bold + + + + + Italics + + + + + Bold/Italics + + + + + Font Weight: + + + + + Display Location + + + + + Use Default Location: + + + + + X Position: + + + + + Y Position: + + + + + Width: + + + + + Height: + + + + + px + + + + + Font Main + + + + + Footer Font + + + + + Font Footer + + + + + Outline + + + + + Outline Size: + + + + + Outline Color: + + + + + Show Outline: + + + + + Shadow + + + + + Shadow Size: + + + + + Shadow Color: + + + + + Show Shadow: + + + + + Alignment + + + + + Horizontal Align: + + + + + Left + + + + + Right + + + + + Center + + + + + Vertical Align: + + + + + Top + + + + + Middle + + + + + Bottom + + + + + Slide Transition + + + + + Transition Active: + + + + + Other Options + + + + + Preview + + + + + AuditDeleteDialog + + + Song Usage Delete + + + + + AuditDetailDialog + + + Song Usage Extraction + + + + + Select Date Range + + + + + to + + + + + Report Location + + + + AuthorsForm - - Error - + + You need to type in the first name of the author. + - - - Ui_AmendThemeDialog - - Font Color: - + + You haven't set a display name for the author, would you like me to combine the first and last names for you? + - - - Ui_OpenLPImportDialog - - Select openlp.org songfile to import: - + + Error + - - - Ui_SettingsDialog - - Settings - + + You need to type in the last name of the author. + - - - BiblesTab - - Layout Style: - + + Author Maintenance + - - - MediaManagerItem - - Edit the selected - + + Display name: + - - - SlideController - - Move to next - + + First name: + - - - Ui_MainWindow - - &Plugin List - + + Last name: + - - + + + BibleMediaItem + + + Quick + + + + + Bible + + + + + Clear + + + + + Search + + + + + To: + + + + + Text Search + + + + + Search Type: + + + + + No matching book could be found in this Bible. + + + + + Dual: + + + + + Chapter: + + + + + Bible not fully loaded + + + + + No Book Found + + + + + Keep + + + + + Results: + + + + + Verse Search + + + + + Version: + + + + + From: + + + + + Find: + + + + + Book: + + + + + Advanced + + + + + Verse: + + + + BiblePlugin - - &Bible - + + <strong>Bible Plugin</strong><br />This plugin allows bible verses from different sources to be displayed on the screen during the service. + - - - Ui_BibleImportWizard - - - Web Download - - - - - Ui_AmendThemeDialog - - - Horizontal - - - - - ImportWizardForm - - - Open OSIS file - - - - - Ui_AmendThemeDialog - - - Circular - - - - - PresentationMediaItem - - - Automatic - - - - - SongMaintenanceForm - - - Couldn't save your book. - - - - - Ui_AmendThemeDialog - - - pt - - - - - SongMaintenanceForm - - - Delete Topic - - - - - Ui_OpenLPImportDialog - - - Lyrics - - - - + + BiblesTab - - No brackets - - - - - Ui_AlertEditDialog - - - Maintain Alerts - - - - - Ui_AmendThemeDialog - - - px - - - - - ServiceManager - - - Select a theme for the service - - - - - ThemesTab - - - Themes - - - - - Ui_PluginViewDialog - - - Status: - - - - - Ui_EditSongDialog - - - CCLI Number: - - - - - ImportWizardForm - - - This Bible already exists! Please import a different Bible or first delete the existing one. - - - - - Ui_MainWindow - - - &Translate - - - - - BiblesTab - - - Bibles - - - - - Ui_SongMaintenanceDialog - - - Authors - - - - - SongUsageDetailForm - - - Output File Location - - - - - BiblesTab - - - { and } - - - - - GeneralTab - - - Prompt to save Service before starting New - - - - - ImportWizardForm - - - Starting import... - - - - - BiblesTab - - - Note: -Changes don't affect verses already in the service - - - - - Ui_EditVerseDialog - - - Intro - - - - - ServiceManager - - - Move up order - - - - - PresentationTab - - - available - - - - - ThemeManager - - - default - - - - - SongMaintenanceForm - - - Delete Author - - - - - Ui_AmendThemeDialog - - - Display Location - - - - - Ui_PluginViewDialog - - - Version: - - - - - Ui_AlertEditDialog - - - Add - - - - - GeneralTab - - - General - - - - - Ui_AmendThemeDialog - - - Y Position: - - - - - ServiceManager - - - Move down order - - - - - BiblesTab - - - verse per slide - - - - - Ui_AmendThemeDialog - - - Show Shadow: - - - - - AlertsTab - - - Preview - - - - - alertsPlugin - - - <b>Alerts Plugin</b><br>This plugin controls the displaying of alerts on the presentations screen - - - - - GeneralTab - - - Show the splash screen - - - - - Ui_MainWindow - - - New Service - - - - - SlideController - - - Move to first - - - - - Ui_MainWindow - - - &Online Help - - - - - SlideController - - - Blank Screen - - - - - Ui_MainWindow - - - Save Service - + + ( and ) + - - Save &As... - + + verse per line + - - Toggle the visibility of the Media Manager - - - - - BibleMediaItem - - - No Book Found - - - - - Ui_EditSongDialog - - - Add - - - - - alertsPlugin - - - &Alert - - - - - BibleMediaItem - - - Advanced - - - - - ImageMediaItem - - - Image(s) - - - - - Ui_MainWindow - - - F11 - + + Display Style: + - - F10 - + + continuous + - - F12 - + + [ and ] + - - + + + Display Dual Bible Verses + + + + + Bibles + + + + + Only show new chapter numbers + + + + + Verse Display + + + + + No brackets + + + + + { and } + + + + + Note: +Changes don't affect verses already in the service + + + + + verse per slide + + + + + Bible Theme: + + + + + Layout Style: + + + + + CustomMediaItem + + + Custom + + + + CustomPlugin - - <b>Custom Plugin</b><br>This plugin allows slides to be displayed on the screen in the same way songs are. This plugin provides greater freedom over the songs plugin.<br> - + + <b>Custom Plugin</b><br>This plugin allows slides to be displayed on the screen in the same way songs are. This plugin provides greater freedom over the songs plugin.<br> + - - - Ui_MainWindow + + + CustomTab - - Alt+F7 - + + Custom + - - Add an application to the list of tools - + + Custom Display + - - - MediaPlugin - - <b>Media Plugin</b><br>This plugin allows the playing of audio and video media - + + Display Footer + - - - ServiceManager + + + DisplayTab - - Move &down - + + Displays + - - - BiblesTab - - - Bible Theme: - - - - - SongsPlugin - - - Export songs in openlp.org 1.0 format - - - - - Ui_MainWindow - - - Theme Manager - - - - - AlertsTab - - - Alerts - - - - - Ui_customEditDialog - - - Move slide down 1 - - - - - Ui_AmendThemeDialog - - - Font: - - - - - ServiceManager - - - Load an existing service - - - - - Ui_MainWindow - - - Toggle the visibility of the Theme Manager - - - - - PresentationTab - - - Presentations - - - - - SplashScreen - - - Starting - - - - - ImageTab - - - Slide Loop Delay: - - - - - SlideController - - - Verse - - - - - AlertsTab - - - Alert timeout: - - - - - Ui_MainWindow - - - &Preview Pane - - - - - MediaManagerItem - - - Add a new - - - - - ThemeManager - - - Select Theme Import File - - - - - New Theme - - - - - MediaMediaItem - - - Media - - - - - Ui_AmendThemeDialog - - - Preview - - - - - Outline Size: - - - - - Ui_OpenSongExportDialog - - - Progress: - - - - - AmendThemeForm - - - Second Color: - - - - - Ui_EditSongDialog - - - Theme, Copyright Info && Comments - - - - - Ui_AboutDialog - - - Credits - - - - - BibleMediaItem - - - To: - - - - - Ui_EditSongDialog - - - Song Book - - - - - Ui_OpenLPExportDialog - - - Author - - - - - Ui_AmendThemeDialog - - - Wrap Indentation - - - - - ThemeManager - - - Import a theme - - - - - ImageMediaItem - - - Image - - - - - BibleMediaItem - - - Clear - - - - - Ui_MainWindow - - - Save Service As - - - - - Ui_AlertDialog - - - Cancel - - - - - Ui_OpenLPImportDialog - - - Import - - - - - Ui_EditVerseDialog - - - Chorus - - - - - Ui_EditSongDialog - - - Edit All - - - - - AuthorsForm - - - You need to type in the last name of the author. - - - - - SongsTab - - - Songs Mode - - - - - Ui_AmendThemeDialog - - - Left - - - - - RemotesPlugin - - - <b>Remote Plugin</b><br>This plugin provides the ability to send messages to a running version of openlp on a different computer.<br>The Primary use for this would be to send alerts from a creche - - - - - ImageTab - - - Images - - - - - BibleMediaItem - - - Verse: - - - - - Ui_OpenLPExportDialog - - - openlp.org Song Exporter - - - - - Song Export List - - - - - ThemeManager - - - Export theme - - - - - Ui_SongMaintenanceDialog - - - Delete - - - - - Ui_AmendThemeDialog - - - Theme Name: - - - - - Ui_AboutDialog - - - About OpenLP - - - - - Ui_MainWindow - - - Toggle the visibility of the Service Manager - - - - - PresentationMediaItem - - - A presentation with that filename already exists. - - - - - ImageMediaItem - - - Allow the background of live slide to be overridden - - - - - SongUsageDeleteForm - - - Are you sure you want to delete selected Song Usage data? - - - - - AlertsTab - - - openlp.org - - - - - ImportWizardForm - - - Invalid Books File - - - - - Ui_OpenLPImportDialog - - - Song Title - - - - - MediaManagerItem - - - &Show Live - - - - - AlertsTab - - - Keep History: - - - - - Ui_AmendThemeDialog - - - Image: - - - - - ImportWizardForm - - - Open Verses CSV file - - - - - Ui_customEditDialog - - - Set Theme for Slides - - - - - Ui_MainWindow - - - More information about OpenLP - - - - - AlertsTab - - - Background Color: - - - - - SongMaintenanceForm - - - No topic selected! - - - - - Ui_MainWindow - - - &Media Manager - - - - - &Tools - - - - - AmendThemeForm - - - Background Color: - - - - - Ui_EditSongDialog - - - A&dd to Song - - - - - Title: - - - - - GeneralTab - - - Screen - - - - - SongMaintenanceForm - - - This topic can't be deleted, it is currently assigned to at least one song. - - - - - AlertsTab - - - s - - - - - Ui_AlertEditDialog - - - Clear - - - - - Ui_BibleImportWizard - - - Please wait while your Bible is imported. - - - - - MediaManagerItem - - - No items selected... - - - - - Ui_OpenLPImportDialog - - - Select All - - - - - Ui_BibleImportWizard - - - Select the import format, and where to import from. - - - - - Ui_OpenLPImportDialog - - - Title - - - - - Ui_OpenSongExportDialog - - - Select OpenSong song folder: - - - - - Ui_MainWindow - - - Toggle Media Manager - - - - - SongUsagePlugin - - - &Song Usage - - - - - GeneralTab - - - Monitors - - - - + + EditCustomForm - - You need to enter a slide - - - - - ThemeManager - - - You have not selected a theme. - - - - - Ui_EditVerseDialog - - - Verse Type - - - - - ImportWizardForm - - - You need to specify a file to import your Bible from. - - - - - Ui_EditSongDialog - - - Comments - - - - - AlertsTab - - - Bottom - - - - - Ui_MainWindow - - - Create a new Service - - - - - AlertsTab - - - Top - - - - - ServiceManager - - - &Preview Verse - - - - - Ui_PluginViewDialog - - - TextLabel - - - - - AlertsTab - - - Font Size: - - - - - Ui_PluginViewDialog - - - About: - + + You need to enter a title + - - Inactive - - - - - Ui_OpenSongExportDialog - - - Ready to export - + + Error + - - Export - - - - - Ui_PluginViewDialog - - - Plugin List - - - - - Ui_AmendThemeDialog - - - Transition Active: - - - - - Ui_BibleImportWizard - - - Proxy Server (Optional) - - - - - Ui_EditSongDialog - - - &Manage Authors, Topics, Books - - - - - Ui_OpenLPExportDialog - - - Ready to export - - - - - ImageMediaItem - - - Images (*.jpg *.jpeg *.gif *.png *.bmp);; All files (*) - - - - - EditCustomForm - - - Save && Preview - - - - - Ui_OpenLPExportDialog - - - Select All - - - - - Ui_SongUsageDetailDialog - - - to - - - - - Ui_AmendThemeDialog - - - Size: - - - - - MainWindow - - - OpenLP Main Display Blanked - - - - - Ui_OpenLPImportDialog - - - Remove Selected - - - - - ServiceManager - - - Move &up - - - - - ImportWizardForm - - - You need to specify an OpenSong Bible file to import. - - - - - PresentationMediaItem - - - Select Presentation(s) - + + You need to enter a slide + - - File exists - - - - - Ui_OpenSongImportDialog - - - Ready to import - - - - - SlideController - - - Stop continuous loop - + + Save && Preview + - - s - + + Edit Custom Slides + - - - ImagePlugin - - <b>Image Plugin</b><br>Allows images of all types to be displayed. If a number of images are selected together and presented on the live controller it is possible to turn them into a timed loop.<br<br>From the plugin if the <i>Override background</i> is chosen and an image is selected any songs which are rendered will use the selected image from the background instead of the one provied by the theme.<br> - + + Move slide Up 1 + - - - SongMediaItem - - Song Maintenance - + + Move slide down 1 + - - - Ui_customEditDialog - - Edit - + + Title: + - - - Ui_AmendThemeDialog - - Gradient : - + + Add New + - - - ImportWizardForm - - Invalid Verse File - + + Add new slide at bottom + - - + + + Edit + + + + + Edit selected slide + + + + + Edit All + + + + + Edit all slides + + + + + Save + + + + + Replace edited slide + + + + + Delete + + + + + Delete selected slide + + + + + Clear + + + + + Clear edit area + + + + + Split Slide + + + + + Add slide split + + + + + Theme: + + + + + Credits: + + + + + You have unsaved data, please save or clear + + + + EditSongForm - - Error - - - - - Ui_customEditDialog - - - Add New - - - - - Ui_AuthorsDialog - - - Display name: - - - - - SongMaintenanceForm - - - Are you sure you want to delete the selected topic? - - - - - Ui_AmendThemeDialog - - - Bold/Italics - - - - - Ui_SongMaintenanceDialog - - - Song Maintenance - - - - - Ui_BibleImportWizard - - - Welcome to the Bible Import Wizard - - - - - SongsTab - - - Songs - - - - - Ui_BibleImportWizard - - - Password: - - - - - Ui_MainWindow - - - &Theme Manager - - - - - MediaManagerItem - - - Preview the selected item - - - - - Ui_BibleImportWizard - - - Version Name: - - - - - Ui_AboutDialog - - - About - - - - - MediaMediaItem - - - Select Media - - - - - Ui_AmendThemeDialog - - - Horizontal Align: - - - - - ServiceManager - - - &Edit Item - - - - - Ui_AmendThemeDialog - - - Background Type: - - - - - Ui_MainWindow - - - &Save - + + You need to enter a song title. + - - OpenLP 2.0 - - - - - ThemeManager - - - A theme with this name already exists, would you like to overwrite it? - + + You need to enter some verses. + - - Export a theme - - - - - AmendThemeForm - - - Open file - - - - - Ui_TopicsDialog - - - Topic Maintenance - - - - - Ui_customEditDialog - - - Clear edit area - - - - - Ui_AmendThemeDialog - - - Show Outline: - + + Save && Preview + - - Gradient - + + Error + - - - SongBookForm - - You need to type in a book name! - + + Song Editor + - - - ImportWizardForm - - Open OpenSong Bible - + + Title: + - - - Ui_MainWindow - - Look && &Feel - + + Alternative Title: + - - - Ui_BibleImportWizard - - Ready. - + + Lyrics: + - - - Ui_SongMaintenanceDialog - - Books/Hymnals - + + Verse Order: + - - - Ui_AboutDialog - - Contribute - + + Add + - - - ServiceManager - - Move to &bottom - + + Edit + - - - Ui_BibleImportWizard - - Books Location: - + + Edit All + - - - Ui_OpenSongExportDialog - - Full Song List - + + Delete + - - + + + Title && Lyrics + + + + + Authors + + + + + &Add to Song + + + + + &Remove + + + + + &Manage Authors, Topics, Books + + + + + Topic + + + + + A&dd to Song + + + + + R&emove + + + + + Song Book + + + + + Authors, Topics && Book + + + + + Theme + + + + + Add a Theme + + + + + Copyright Information + + + + + CCLI Number: + + + + + Comments + + + + + Theme, Copyright Info && Comments + + + + + bitped + + + + + v + + + + + c + + + + + Invalid verse entry - Vx or Cx + + + + + Invalid verse entry, values must be I,B,T,P,E,O,Vx,Cx + + + + + EditVerseForm + + + Edit Verse + + + + + Verse Type + + + + + Intro + + + + + Verse + + + + + Pre-Chorus + + + + + Chorus + + + + + Bridge + + + + + Ending + + + + + Other + + + + + Number + + + + + Chrous + + + + GeneralTab - - SongSelect Password: - + + CCLI Details + - + + + SongSelect Password: + + + + + primary + + + + + Application Startup + + + + + Select monitor for output display: + + + + + Application Settings + + + + + SongSelect Username: + + + + + CCLI Number: + + + + + Automatically open the last service + + + + + Preview Next Song from Service Manager + + + + + Show blank screen warning + + + + + Prompt to save Service before starting New + + + + + General + + + + + Show the splash screen + + + + + Screen + + + + + Monitors + + + + + Display if a single screen + + + + + ImageMediaItem + + + Select Image(s) + + + + + Image(s) + + + + + Image + + + + + Images (*.jpg *.jpeg *.gif *.png *.bmp);; All files (*) + + + + + Replace Live Background + + + + + No item selected + + + + + You must select one item + + + + + ImagePlugin + + + <b>Image Plugin</b><br>Allows images of all types to be displayed. If a number of images are selected together and presented on the live controller it is possible to turn them into a timed loop.<br<br>From the plugin if the <i>Override background</i> is chosen and an image is selected any songs which are rendered will use the selected image from the background instead of the one provied by the theme.<br> + + + + + ImageTab + + + sec + + + + + Image Settings + + + + + Slide Loop Delay: + + + + + Images + + + + + ImportWizardForm + + + Bible Exists + + + + + Invalid Bible Location + + + + + You need to set a copyright for your Bible! Bibles in the Public Domain need to be marked as such. + + + + + Empty Copyright + + + + + Empty Version Name + + + + + Invalid OpenSong Bible + + + + + Your Bible import failed. + + + + + Finished import. + + + + + This Bible already exists! Please import a different Bible or first delete the existing one. + + + + + Starting import... + + + + + Invalid Books File + + + + + Invalid Verse File + + + + + Open OpenSong Bible + + + + + Bible Import Wizard + + + + + Welcome to the Bible Import Wizard + + + + + This wizard will help you to import Bibles from a variety of formats. Click the next button below to start the process by selecting a format to import from. + + + + + Select Import Source + + + + + Select the import format, and where to import from. + + + + + Format: + + + + + OSIS + + + + + CSV + + + + + OpenSong + + + + + Web Download + + + + + File Location: + + + + + Books Location: + + + + + Verse Location: + + + + + Bible Filename: + + + + + Location: + + + + + Crosswalk + + + + + BibleGateway + + + + + Bible: + + + + + Download Options + + + + + Server: + + + + + Username: + + + + + Password: + + + + + Proxy Server (Optional) + + + + + License Details + + + + + Set up the Bible's license details. + + + + + Version Name: + + + + + Copyright: + + + + + Permission: + + + + + Importing + + + + + Please wait while your Bible is imported. + + + + + Ready. + + + + + You need to specify a file to import your Bible from. + + + + + You need to specify a file with books of the Bible to use in the import. + + + + + You need to specify a file of Bible verses to import. + + + + + You need to specify an OpenSong Bible file to import. + + + + + You need to specify a version name for your Bible. + + + + + Open OSIS File + + + + + Open Books CSV File + + + + + Open Verses CSV File + + + + + LanguageManager + + + Language + + + + + After restart new Language settings will be used. + + + + + MainWindow + + + The Main Display has been blanked out + + + + + OpenLP Version Updated + + + + + Save Changes to Service? + + + + + OpenLP Main Display Blanked + + + + + OpenLP 2.0 + + + + + English + + + + + Default Theme: + + + + + &File + + + + + &Import + + + + + &Export + + + + + &Options + + + + + &View + + + + + M&ode + + + + + &Tools + + + + + &Help + + + + + Media Manager + + + + + Service Manager + + + + + Theme Manager + + + + + &New + + + + + New Service + + + + + Create a new Service + + + + + Ctrl+N + + + + + &Open + + + + + Open Service + + + + + Open an existing service + + + + + Ctrl+O + + + + + &Save + + + + + Save Service + + + + + Save the current service to disk + + + + + Ctrl+S + + + + + Save &As... + + + + + Save Service As + + + + + Save the current service under a new name + + + + + F12 + + + + + E&xit + + + + + Quit OpenLP + + + + + Alt+F4 + + + + + &Theme + + + + + &Language + + + + + Look && &Feel + + + + + &Settings + + + + + &Media Manager + + + + + Toggle Media Manager + + + + + Toggle the visibility of the Media Manager + + + + + F8 + + + + + &Theme Manager + + + + + Toggle Theme Manager + + + + + Toggle the visibility of the Theme Manager + + + + + F10 + + + + + &Service Manager + + + + + Toggle Service Manager + + + + + Toggle the visibility of the Service Manager + + + + + F9 + + + + + &Preview Panel + + + + + Toggle Preview Panel + + + + + Toggle the visibility of the Preview Panel + + + + + F11 + + + + + &Plugin List + + + + + List the Plugins + + + + + Alt+F7 + + + + + &User Guide + + + + + &About + + + + + More information about OpenLP + + + + + Ctrl+F1 + + + + + &Online Help + + + + + &Web Site + + + + + &Auto Detect + + + + + Choose System language, if available + + + + + Set the interface language to %1 + + + + + Add &Tool... + + + + + Add an application to the list of tools + + + + + &Preview Pane + + + + + &Live + + + + + Version %s of OpenLP is now available for download (you are currently running version %s). +You can download the latest version from http://openlp.org + + + + + Your service has changed. Do you want to save those changes? + + + + + MediaManagerItem + + + &Preview + + + + + You must select one or more items + + + + + Load a new + + + + + &Edit + + + + + &Add to Service + + + + + Send the selected item live + + + + + Add the selected item(s) to the service + + + + + Edit the selected + + + + + Delete the selected item + + + + + Add a new + + + + + &Show Live + + + + + Preview the selected item + + + + + Import a + + + + + &Delete + + + + + &Add to selected Service Item + + + + + No Items Selected + + + + + You must select one or more items. + + + + + No items selected + + + + + No Service Item Selected + + + + + You must select an existing service item to add to. + + + + + Invalid Service Item + + + + + MediaMediaItem + + + Select Media + + + + + Media + + + + + Videos (%s);;Audio (%s);;All files (*) + + + + + Replace Live Background + + + + + No item selected + + + + + You must select one item + + + + + MediaPlugin + + + <b>Media Plugin</b><br>This plugin allows the playing of audio and video media + + + + + OpenLPExportForm + + + openlp.org Song Exporter + + + + + Select openlp.org export filename: + + + + + Full Song List + + + + + Song Title + + + + + Author + + + + + Select All + + + + + Lyrics + + + + + Title + + + + + Song Export List + + + + + Remove Selected + + + + + Progress: + + + + + Ready to export + + + + + Export + + + + + Close + + + + + OpenLPImportForm + + + openlp.org Song Importer + + + + + Select openlp.org songfile to import: + + + + + Import File Song List + + + + + Song Title + + + + + Author + + + + + Select All + + + + + Lyrics + + + + + Title + + + + + Song Import List + + + + + Remove Selected + + + + + Progress: + + + + + Ready to import + + + + + Import + + + + + Close + + + + + OpenSongBible + + + Importing + + + + + OpenSongExportForm + + + OpenSong Song Exporter + + + + + Select OpenSong song folder: + + + + + Full Song List + + + + + Song Title + + + + + Author + + + + + Select All + + + + + Lyrics + + + + + Title + + + + + Song Export List + + + + + Remove Selected + + + + + Progress: + + + + + Ready to export + + + + + Export + + + + + Close + + + + + OpenSongImportForm + + + OpenSong Song Importer + + + + + OpenSong Folder: + + + + + Progress: + + + + + Ready to import + + + + + Import + + + + + Close + + + + + PluginForm + + + Plugin List + + + + + Plugin Details + + + + + Version: + + + + + TextLabel + + + + + About: + + + + + Status: + + + + + Active + + + + + Inactive + + + + + PresentationMediaItem + + + Presentation + + + + + Present using: + + + + + Select Presentation(s) + + + + + A presentation with that filename already exists. + + + + + File exists + + + + + Automatic + + + + + Presentations (%s) + + + + + PresentationPlugin + + + <b>Presentation Plugin</b> <br> Delivers the ability to show presentations using a number of different programs. The choice of available presentation programs is available to the user in a drop down box. + + + + + PresentationTab + + + Available Controllers + + + + + available + + + + + Presentations + + + + + RemoteTab + + + Remotes + + + + + Remotes Receiver Port + + + + + RemotesPlugin + + + <b>Remote Plugin</b><br>This plugin provides the ability to send messages to a running version of openlp on a different computer via a web browser or other app<br>The Primary use for this would be to send alerts from a creche + + + + + ServiceItemEditForm + + + Service Item Maintenance + + + + + Up + + + + + Delete + + + + + Down + + + + + ServiceManager + + + Save Service + + + + + Save Changes to Service? + + + + + Open Service + + + + + Move to top + + + + + Create a new service + + + + + Save this service + + + + + Theme: + + + + + Delete From Service + + + + + &Preview Verse + + + + + &Live Verse + + + + + New Service + + + + + &Notes + + + + + Move up order + + + + + Move down order + + + + + Load an existing service + + + + + Move to end + + + + + &Edit Item + + + + + Move to &top + + + + + Move &up + + + + + Move &down + + + + + Move to &bottom + + + + + &Delete From Service + + + + + &Add New Item + + + + + &Add to Selected Item + + + + + &Maintain Item + + + + + Your service is unsaved, do you want to save those changes before creating a new one? + + + + + Your current service is unsaved, do you want to save the changes before opening a new one? + + + + + Missing Display Handler + + + + + Your item cannot be displayed as there is no handler to display it + + + + + ServiceNoteForm + + + Service Item Notes + + + + + SettingsForm + + + Settings + + + + + SlideController + + + Move to previous + + + + + Edit and re-preview Song + + + + + Delay between slides in seconds + + + + + Go to Verse + + + + + Start continuous loop + + + + + Live + + + + + Start playing media + + + + + Move to live + + + + + Move to last + + + + + Verse + + + + + Move to next + + + + + Move to first + + + + + Blank Screen + + + + + Preview + + + + + Stop continuous loop + + + + + s + + + + + Theme Screen + + + + + Hide Screen + + + + + Chorus + + + + + SongBookForm + + + Error + + + + + You need to type in a book name! + + + + + Edit Book + + + + + Name: + + + + + Publisher: + + + + + SongMaintenanceForm + + + Error + + + + + No author selected! + + + + + Are you sure you want to delete the selected book? + + + + + Delete Topic + + + + + Delete Book + + + + + No book selected! + + + + + Are you sure you want to delete the selected author? + + + + + Delete Author + + + + + No topic selected! + + + + + Are you sure you want to delete the selected topic? + + + + + Song Maintenance + + + + + Authors + + + + + Topics + + + + + Books/Hymnals + + + + + Add + + + + + Edit + + + + + Delete + + + + + Couldn't add your author. + + + + + Couldn't add your topic. + + + + + Couldn't add your book. + + + + + Couldn't save your author. + + + + + Couldn't save your topic. + + + + + Couldn't save your book. + + + + + This author can't be deleted, they are currently assigned to at least one song. + + + + + This topic can't be deleted, it is currently assigned to at least one song. + + + + + This book can't be deleted, it is currently assigned to at least one song. + + + + + SongMediaItem + + + CCLI Licence: + + + + + Song + + + + + Maintain the lists of authors, topics and books + + + + + Titles + + + + + Lyrics + + + + + Type: + + + + + Clear + + + + + Search + + + + + Authors + + + + + Search: + + + + + Song Maintenance + + + + + %s (%s) + + + + + Delete song? + + + + + Delete %d songs? + + + + + Delete Confirmation + + + + + SongUsageDeleteForm + + + Delete Selected Song Usage Events? + + + + + Are you sure you want to delete selected Song Usage data? + + + + + SongUsageDetailForm + + + Output File Location + + + + + SongUsagePlugin + + + <b>SongUsage Plugin</b><br>This plugin records the use of songs and when they have been used during a live service + + + + + SongsPlugin + + + <b>Song Plugin</b> <br>This plugin allows Songs to be managed and displayed.<br> + + + + + Open Songs of Fellowship file + + + + + Open documents or presentations + + + + + SongsTab + + + Songs Mode + + + + + Songs + + + + + Enable search as you type + + + + + Display Verses on Live Tool bar + + + + + ThemeManager + + + Import Theme + + + + + Create a new theme + + + + + Delete Theme + + + + + Error + + + + + Make Global + + + + + Delete a theme + + + + + Edit a theme + + + + + Edit Theme + + + + + Export Theme + + + + + Theme Exists + + + + + Delete theme + + + + + Save Theme - (%s) + + + + + default + + + + + Select Theme Import File + + + + + New Theme + + + + + Import a theme + + + + + Export theme + + + + + A theme with this name already exists, would you like to overwrite it? + + + + + Export a theme + + + + + You are unable to delete the default theme. + + + + + Theme %s is use in %s plugin + + + + + Theme %s is use by Service Manager + + + + + You have not selected a theme. + + + + + File is not a valid theme. + + + + + ThemesTab + + + Theme level + + + + + Global theme + + + + + Global level + + + + + Use the theme from each song in the database. If a song doesn't have a theme associated with it, then use the service's theme. If the service doesn't have a theme, then use the global theme. + + + + + Service level + + + + + Use the global theme, overriding any themes associated with either the service or the songs. + + + + + Song level + + + + + Themes + + + + + Use the theme from the service, overriding any of the individual songs' themes. If the service doesn't have a theme, then use the global theme. + + + + + TopicsForm + + + You need to type in a topic name! + + + + + Error + + + + + Topic Maintenance + + + + + Topic name: + + + + + alertsPlugin + + + Show an alert message + + + + + <b>Alerts Plugin</b><br>This plugin controls the displaying of alerts on the presentations screen + + + + + &Alert + + + + + export_menu + + + &Bible + + + + + &Song + + + + + OpenSong + + + + + openlp.org 1.0 + + + + + OpenLP 2.0 + + + + + import_menu + + + &Bible + + + + + &Song + + + + + OpenSong + + + + + openlp.org 1.0 + + + + + Import songs in openlp.org 1.0 format + + + + + OpenLP 2.0 + + + + + Import songs in OpenLP 2.0 format + + + + + Songs of Fellowship + + + + + Import songs from the VOLS1_2.RTF, sof3words.rtf and sof4words.rtf supplied with the music books + + + + + Generic Document/Presentation Import + + + + + Import songs from Word/Writer/Powerpoint/Impress + + + + + self + + + Amend Display Settings + + + + + Default Settings + + + + + X + + + + + 0 + + + + + Y + + + + + Height + + + + + Width + + + + + Amend Settings + + + + + Override Output Display + + + + + self.ImportSongMenu + + + Import Error + + + + + Error importing Songs of Fellowship file. +OpenOffice.org must be installed and you must be using an unedited copy of the RTF included with the Songs of Fellowship Music Editions + + + + + self.splash_screen + + + Starting + + + + + Splash Screen + + + + + tools_menu + + + &Song Usage + + + + + &Delete recorded data + + + + + Delete song usage to specified date + + + + + &Extract recorded data + + + + + Generate report on Song Usage + + + + + Song Usage Status + + + + + Start/Stop live song usage recording + + + diff --git a/resources/i18n/openlp_en_GB.qm b/resources/i18n/openlp_en_GB.qm new file mode 100644 index 000000000..5a31382cf Binary files /dev/null and b/resources/i18n/openlp_en_GB.qm differ diff --git a/resources/i18n/openlp_en_ZA.qm b/resources/i18n/openlp_en_ZA.qm new file mode 100644 index 000000000..344aec034 Binary files /dev/null and b/resources/i18n/openlp_en_ZA.qm differ diff --git a/resources/i18n/openlp_es.qm b/resources/i18n/openlp_es.qm new file mode 100644 index 000000000..da03a2e0f Binary files /dev/null and b/resources/i18n/openlp_es.qm differ diff --git a/resources/i18n/openlp_hu.qm b/resources/i18n/openlp_hu.qm new file mode 100644 index 000000000..4f2c11f7b Binary files /dev/null and b/resources/i18n/openlp_hu.qm differ diff --git a/resources/i18n/openlp_ko.qm b/resources/i18n/openlp_ko.qm new file mode 100644 index 000000000..1843093c3 Binary files /dev/null and b/resources/i18n/openlp_ko.qm differ diff --git a/resources/i18n/openlp_nb.qm b/resources/i18n/openlp_nb.qm new file mode 100644 index 000000000..fb6ae4493 Binary files /dev/null and b/resources/i18n/openlp_nb.qm differ diff --git a/resources/i18n/openlp_pt_BR.qm b/resources/i18n/openlp_pt_BR.qm new file mode 100644 index 000000000..2ad079b4b Binary files /dev/null and b/resources/i18n/openlp_pt_BR.qm differ diff --git a/resources/i18n/openlp_sv.qm b/resources/i18n/openlp_sv.qm new file mode 100644 index 000000000..ae9d9fec0 Binary files /dev/null and b/resources/i18n/openlp_sv.qm differ diff --git a/scripts/translation_utils.py b/scripts/translation_utils.py new file mode 100755 index 000000000..0135efeb6 --- /dev/null +++ b/scripts/translation_utils.py @@ -0,0 +1,173 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4 + +############################################################################### +# OpenLP - Open Source Lyrics Projection # +# --------------------------------------------------------------------------- # +# Copyright (c) 2008-2010 Raoul Snyman # +# Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael # +# Gorven, Scott Guerrieri, Christian Richter, Maikel Stuivenberg, Martin # +# Thompson, Jon Tibble, Carsten Tinggaard # +# --------------------------------------------------------------------------- # +# This program is free software; you can redistribute it and/or modify it # +# under the terms of the GNU General Public License as published by the Free # +# Software Foundation; version 2 of the License. # +# # +# This program is distributed in the hope that it will be useful, but WITHOUT # +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for # +# more details. # +# # +# You should have received a copy of the GNU General Public License along # +# with this program; if not, write to the Free Software Foundation, Inc., 59 # +# Temple Place, Suite 330, Boston, MA 02111-1307 USA # +############################################################################### +# Short description +# Steps for creating languages: +# 1. make shure that the openlp_en.ts file exist +# 2. go to scripts folder and start: +# python translation_utils.py -a +############################################################################### + +import os +from optparse import OptionParser +import urllib +from PyQt4 import QtCore + +ignore_pathes = [u"./scripts", u"./openlp/core/test"] +ignore_files = [u"setup.py"] +translation_path = u"http://pootle.projecthq.biz/export/openlp/" +translations = [ u"en" + , u"af" + , u"en_ZA" + , u"en_GB" + , u"de" + , u"hu" + , u"ko" + , u"nb" + , u"pt_BR" + , u"es" + , u"sv"] + + + +def write_file(filename, stringlist): + content = u'' + for line in stringlist: + content = u'%s%s\n' % (content, line) + file = open(filename, u'w') + file.write(content.encode('utf8')) + file.close() + +def main(): + # Set up command line options. + usage = u'Usage: %prog [options]' + parser = OptionParser(usage=usage) + parser.add_option("-d", "--download-ts", action="store_true", dest="download", + help="Load languages from Pootle Server") + parser.add_option("-p", "--prepare", action="store_true", dest="prepare", + help="preparation (generate pro file)") + parser.add_option("-u", "--update", action="store_true", dest="update", + help="update translation files") + parser.add_option("-g", "--generate", action="store_true", dest="generate", + help="generate qm files") + parser.add_option("-a", "--all", action="store_true", dest="all", + help="proceed all options") + + (options, args) = parser.parse_args() + qt_args = [] + if options.download: + downloadTranslations() + elif options.prepare: + preparation() + elif options.update: + update() + elif options.generate: + generate() + elif options.all: + all() + else: + pass + +def downloadTranslations(): + print "download()" + for language in translations: + filename = os.path.join(u'..',u'resources', u'i18n', u"openlp_%s.ts" % language) + print filename + page = urllib.urlopen(u"%s%s.ts" % (translation_path, language)) + content = page.read().decode("utf8") + page.close() + file = open(filename, u'w') + file.write(content.encode('utf8')) + file.close() + +def preparation(): + stringlist = [] + start_dir = os.path.join(u'..') + for root, dirs, files in os.walk(start_dir): + for file in files: + path = u"%s" % root + path = path.replace("\\","/") + path = path.replace("..",".") + + if file.startswith(u'hook-') or file.startswith(u'test_'): + continue + + cond = False + for search in ignore_pathes: + if path.startswith(search): + cond = True + if cond == True: + continue + cond = False + for search in ignore_files: + if search == file: + cond = True + if cond == True: + continue + + if file.endswith(u'.py'): + line = u"%s/%s" % (path, file) + print u'Parsing "%s"' % line + stringlist.append(u"SOURCES += %s" % line) + elif file.endswith(u'.pyw'): + line = u"%s/%s" % (path, file) + print u'Parsing "%s"' % line + stringlist.append(u"SOURCES += %s" % line) + elif file.endswith(u'.ts'): + line = u"%s/%s" % (path, file) + print u'Parsing "%s"' % line + stringlist.append(u"TRANSLATIONS += %s" % line) + + print u'Generating PRO file...', + stringlist.sort() + write_file(os.path.join(start_dir, u'openlp.pro'), stringlist) + print u'done.' + + +def update(): + print "update()" + updateProcess = QtCore.QProcess() + updateProcess.start(u"pylupdate4 -noobsolete ../openlp.pro") + updateProcess.waitForFinished(60000) + +def generate(): + print "generate()" + generateProcess = QtCore.QProcess() + generateProcess.start(u"lrelease ../openlp.pro") + generateProcess.waitForFinished(60000) + +def all(): + print "all()" + downloadTranslations() + preparation() + update() + generate() + + +if __name__ == u'__main__': + if os.path.split(os.path.abspath(u'.'))[1] != u'scripts': + print u'You need to run this script from the scripts directory.' + else: + main()