summaryrefslogtreecommitdiff
path: root/SoftwareProperties/dialog_add.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-02-26 09:26:33 +0100
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-02-26 09:26:33 +0100
commit9184e9d648fb8ff3f8a437817cb67d5cf17e2010 (patch)
treeb55607935b49b5653b65ea573dfa9245f6453f3a /SoftwareProperties/dialog_add.py
parent9f1f9070d249457871a92d52eb3817c73e6fe0ac (diff)
downloadpython-apt-9184e9d648fb8ff3f8a437817cb67d5cf17e2010.tar.gz
* Use the dist name from lsbrelease in the add channel dialog
Diffstat (limited to 'SoftwareProperties/dialog_add.py')
-rw-r--r--SoftwareProperties/dialog_add.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/SoftwareProperties/dialog_add.py b/SoftwareProperties/dialog_add.py
index effd9f24..8ccd2080 100644
--- a/SoftwareProperties/dialog_add.py
+++ b/SoftwareProperties/dialog_add.py
@@ -26,6 +26,7 @@ import os
import gobject
import gtk
import gtk.glade
+from gettext import gettext as _
import aptsources
@@ -52,6 +53,11 @@ class dialog_add:
self.combo.pack_start(cell, True)
self.combo.add_attribute(cell, 'text', 0)
self.fill_combo(self.combo)
+ self.label_dist = self.gladexml.get_widget("label_dist")
+ if self.templatelist.dist != "":
+ # TRANSLATORS: %s is the distribution name, eg. Ubuntu or Debian
+ self.label_dist.set_markup("<b>%s</b>" % \
+ _("%s channels" % self.templatelist.dist))
# Setup the custom channel widgets
self.entry = self.gladexml.get_widget("entry_source_line")