diff --git a/openlp/core/common/i18n.py b/openlp/core/common/i18n.py index c05c6fdf0..91a2a6f22 100644 --- a/openlp/core/common/i18n.py +++ b/openlp/core/common/i18n.py @@ -425,6 +425,7 @@ class UiStrings(metaclass=Singleton): self.ResetLiveBG = translate('OpenLP.Ui', 'Reset live background.') self.RequiredShowInFooter = translate('OpenLP.Ui', 'Required, this will be displayed in footer.') self.Seconds = translate('OpenLP.Ui', 's', 'The abbreviated unit for seconds') + self.SaveAndClose = translate('OpenLP.ui', translate('SongsPlugin.EditSongForm', '&Save && Close')) self.SaveAndPreview = translate('OpenLP.Ui', 'Save && Preview') self.Search = translate('OpenLP.Ui', 'Search') self.SearchThemes = translate('OpenLP.Ui', 'Search Themes...', 'Search bar place holder text ') diff --git a/openlp/plugins/custom/forms/editcustomdialog.py b/openlp/plugins/custom/forms/editcustomdialog.py index 6193cd017..470eccba7 100644 --- a/openlp/plugins/custom/forms/editcustomdialog.py +++ b/openlp/plugins/custom/forms/editcustomdialog.py @@ -97,6 +97,7 @@ class Ui_CustomEditDialog(object): self.preview_button = QtWidgets.QPushButton() self.button_box = create_button_box(custom_edit_dialog, 'button_box', ['cancel', 'save'], [self.preview_button]) + self.save_button = self.button_box.button(QtWidgets.QDialogButtonBox.Save) self.dialog_layout.addWidget(self.button_box) self.retranslate_ui(custom_edit_dialog) @@ -112,3 +113,4 @@ class Ui_CustomEditDialog(object): self.theme_label.setText(translate('CustomPlugin.EditCustomForm', 'The&me:')) self.credit_label.setText(translate('CustomPlugin.EditCustomForm', '&Credits:')) self.preview_button.setText(UiStrings().SaveAndPreview) + self.save_button.setText(UiStrings().SaveAndClose) diff --git a/openlp/plugins/songs/forms/editsongdialog.py b/openlp/plugins/songs/forms/editsongdialog.py index bf5910cf3..1fa042c37 100644 --- a/openlp/plugins/songs/forms/editsongdialog.py +++ b/openlp/plugins/songs/forms/editsongdialog.py @@ -291,6 +291,7 @@ class Ui_EditSongDialog(object): self.warning_label.setObjectName('warning_label') self.bottom_layout.addWidget(self.warning_label) self.button_box = create_button_box(edit_song_dialog, 'button_box', ['cancel', 'save']) + self.save_button = self.button_box.button(QtWidgets.QDialogButtonBox.Save) self.bottom_layout.addWidget(self.button_box) self.dialog_layout.addLayout(self.bottom_layout) self.retranslate_ui(edit_song_dialog) @@ -341,6 +342,7 @@ class Ui_EditSongDialog(object): translate('SongsPlugin.EditSongForm', 'Warning: Not all of the verses are in use.') self.no_verse_order_entered_warning = \ translate('SongsPlugin.EditSongForm', 'Warning: You have not entered a verse order.') + self.save_button.setText(UiStrings().SaveAndPreview) def create_combo_box(parent, name, editable=True):