From c6f6624605f1dc1fc9673381ce268cbed02b5e95 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Thu, 29 Oct 2009 13:11:45 +0000 Subject: [PATCH 1/2] Fix i18n for New Theme --- openlp/core/ui/thememanager.py | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 3e882c812..c9171f881 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -266,16 +266,7 @@ class ThemeManager(QtGui.QWidget): try: xml = file_to_xml(xml_file) except: - newtheme = ThemeXML() - newtheme.new_document(self.trUtf8(u'New Theme')) - newtheme.add_background_solid(unicode(u'#000000')) - newtheme.add_font(unicode(QtGui.QFont().family()), - unicode(u'#FFFFFF'), unicode(30), u'False') - newtheme.add_font(unicode(QtGui.QFont().family()), - unicode(u'#FFFFFF'), unicode(12), u'False', u'footer') - newtheme.add_display(u'False', unicode(u'#FFFFFF'), u'False', - unicode(u'#FFFFFF'), unicode(0), unicode(0), unicode(0)) - xml = newtheme.extract_xml() + xml = basTheme() theme = ThemeXML() theme.parse(xml) self.cleanTheme(theme) @@ -454,7 +445,7 @@ class ThemeManager(QtGui.QWidget): def baseTheme(self): log.debug(u'base theme created') newtheme = ThemeXML() - newtheme.new_document(self.trUtf8(u'New Theme')) + newtheme.new_document(unicode(self.trUtf8(u'New Theme'))) newtheme.add_background_solid(unicode(u'#000000')) newtheme.add_font(unicode(QtGui.QFont().family()), unicode(u'#FFFFFF'), unicode(30), u'False') From 2a0e5d6726871386786d239b7ce088aad234cac0 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Thu, 29 Oct 2009 13:19:31 +0000 Subject: [PATCH 2/2] Fix i18n for New Theme typo --- openlp/core/ui/thememanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index c9171f881..06d0f7a6c 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -266,7 +266,7 @@ class ThemeManager(QtGui.QWidget): try: xml = file_to_xml(xml_file) except: - xml = basTheme() + xml = baseTheme() theme = ThemeXML() theme.parse(xml) self.cleanTheme(theme)