From f2a243cfb4bc06d1421d77a3d300a10f6c0171ab Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 26 Jun 2011 19:33:22 +0200 Subject: [PATCH 1/2] change theme name to 'Copy of ' when copying a theme --- openlp/core/ui/thememanager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 3a309cfd0..6ac8b3831 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -299,6 +299,9 @@ class ThemeManager(QtGui.QWidget): """ item = self.themeListWidget.currentItem() oldThemeName = unicode(item.data(QtCore.Qt.UserRole).toString()) + oldThemeName = unicode( + translate('OpenLP.ThemeManager', 'Copy of %s', + 'Copy of ')) % oldThemeName self.fileRenameForm.fileNameEdit.setText(oldThemeName) if self.fileRenameForm.exec_(True): newThemeName = unicode(self.fileRenameForm.fileNameEdit.text()) From 943f2e1cb2825eb1aa1a06672adfd974a32362b8 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 26 Jun 2011 21:34:01 +0200 Subject: [PATCH 2/2] rearranged lines --- openlp/core/ui/thememanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 6ac8b3831..d84fe7e1f 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -298,10 +298,10 @@ class ThemeManager(QtGui.QWidget): Copies an existing theme to a new name """ item = self.themeListWidget.currentItem() - oldThemeName = unicode(item.data(QtCore.Qt.UserRole).toString()) oldThemeName = unicode( translate('OpenLP.ThemeManager', 'Copy of %s', - 'Copy of ')) % oldThemeName + 'Copy of ')) % unicode( + item.data(QtCore.Qt.UserRole).toString()) self.fileRenameForm.fileNameEdit.setText(oldThemeName) if self.fileRenameForm.exec_(True): newThemeName = unicode(self.fileRenameForm.fileNameEdit.text())