From ee8317343ad726571d5f6ad863ee0b27d58251e5 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Thu, 23 Nov 2006 18:02:35 +0100 Subject: * fix the translation of the country name in the server selector * fix d'n'd and mime handling of sources.list files --- SoftwareProperties/SoftwareProperties.py | 4 ++-- SoftwareProperties/dialog_add_sources_list.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 983a8cce..a3f0c340 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -317,8 +317,8 @@ class SoftwareProperties(SimpleGladeApp): self.distro.main_server]) if self.distro.country != None: # TRANSLATORS: %s is a country - server_store.append([_("Server for %s") % gettext.dgettext("iso-3166", - self.distro.country).rstrip(), + server_store.append([_("Server for %s") % gettext.dgettext("iso_3166", + self.distro.country.rstrip()).rstrip(), self.distro.nearest_server]) else: server_store.append([_("Nearest server"), diff --git a/SoftwareProperties/dialog_add_sources_list.py b/SoftwareProperties/dialog_add_sources_list.py index 3b581c6c..509a77b2 100644 --- a/SoftwareProperties/dialog_add_sources_list.py +++ b/SoftwareProperties/dialog_add_sources_list.py @@ -122,6 +122,6 @@ class AddSourcesList: class SingleSourcesList(SourcesList): def __init__(self, file): - self.matcher = SourceEntryMatcher() + self.matcher = SourceEntryMatcher("/usr/share/update-manager/channels/") self.list = [] self.load(file) -- cgit v1.2.3