diff -Nru software-properties-0.75.8/debian/changelog software-properties-0.75.9/debian/changelog --- software-properties-0.75.8/debian/changelog 2010-03-26 13:34:13.000000000 +0000 +++ software-properties-0.75.9/debian/changelog 2010-03-31 16:14:39.000000000 +0100 @@ -1,3 +1,9 @@ +software-properties (0.75.9) lucid; urgency=low + + * [KDE] Fix crash caused by translations containing distro name (LP: #545927) + + -- Amichai Rothman Mon, 29 Mar 2010 02:34:40 +0300 + software-properties (0.75.8) lucid; urgency=low [ Michael Vogt ] diff -Nru software-properties-0.75.8/debian/python-software-properties.install software-properties-0.75.9/debian/python-software-properties.install --- software-properties-0.75.8/debian/python-software-properties.install 2010-03-26 13:34:13.000000000 +0000 +++ software-properties-0.75.9/debian/python-software-properties.install 2010-03-31 16:14:39.000000000 +0100 @@ -1,4 +1,3 @@ debian/tmp/usr/lib/python*/*-packages/softwareproperties/*py debian/tmp/usr/share/locale/* debian/tmp/usr/bin/add-apt-repository - diff -Nru software-properties-0.75.8/softwareproperties/kde/I18nHelper.py software-properties-0.75.9/softwareproperties/kde/I18nHelper.py --- software-properties-0.75.8/softwareproperties/kde/I18nHelper.py 2010-03-26 13:34:13.000000000 +0000 +++ software-properties-0.75.9/softwareproperties/kde/I18nHelper.py 2010-03-31 16:14:39.000000000 +0100 @@ -45,7 +45,7 @@ # assume latin1 as fallback return unicode(str, 'latin1') -def _u(str): +def u_(str): """ Translate a string and convert it to unicode using utf8 encoding """ return utf8(_(str)) diff -Nru software-properties-0.75.8/softwareproperties/kde/SoftwarePropertiesKDE.py software-properties-0.75.9/softwareproperties/kde/SoftwarePropertiesKDE.py --- software-properties-0.75.8/softwareproperties/kde/SoftwarePropertiesKDE.py 2010-03-26 13:34:13.000000000 +0000 +++ software-properties-0.75.9/softwareproperties/kde/SoftwarePropertiesKDE.py 2010-03-31 16:14:39.000000000 +0100 @@ -206,12 +206,11 @@ def init_distro(self): # TRANS: %s stands for the distribution name e.g. Debian or Ubuntu - text = _("%s updates") % self.distro.id + text = u_("%s updates") % self.distro.id text = text.replace("Ubuntu", "Kubuntu") - self.userinterface.groupBox_updates.setTitle(utf8(text)) + self.userinterface.groupBox_updates.setTitle(text) # TRANS: %s stands for the distribution name e.g. Debian or Ubuntu - text = _("%s Software") % self.distro.id - text = utf8(text) + text = u_("%s Software") % self.distro.id text = text.replace("Ubuntu", "Kubuntu") self.userinterface.tabWidget.setTabText(0, text)