← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~googol-hush/openlp/theme into lp:openlp

 

Andreas Preikschat has proposed merging lp:~googol-hush/openlp/theme into lp:openlp.

Requested reviews:
  Tim Bentley (trb143)

For more details, see:
https://code.launchpad.net/~googol-hush/openlp/theme/+merge/65913

Hello,

When you copy a theme we used to "suggest" the theme's name as new theme. This change displays "Copy of <theme name>" instead (such as a file on your hard drive is renamed when you copy it).
-- 
https://code.launchpad.net/~googol-hush/openlp/theme/+merge/65913
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/ui/thememanager.py'
--- openlp/core/ui/thememanager.py	2011-06-12 16:02:52 +0000
+++ openlp/core/ui/thememanager.py	2011-06-26 19:42:33 +0000
@@ -298,7 +298,10 @@
         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 <theme name>')) % unicode(
+            item.data(QtCore.Qt.UserRole).toString())
         self.fileRenameForm.fileNameEdit.setText(oldThemeName)
         if self.fileRenameForm.exec_(True):
             newThemeName = unicode(self.fileRenameForm.fileNameEdit.text())


Follow ups