Make this translatable

This commit is contained in:
Ozan Çağlayan
2010-02-20 10:53:58 +00:00
parent 22ee7fab52
commit 56449263e9
+2 -3
View File
@@ -55,11 +55,10 @@ NB: We support only local files (e.g., /a/b/c) and http:// URIs at the moment
pisi.api.remove_repo(repo)
def check_arch_and_distro(self, repo):
warning = _("Repository %s does not match. Removing %s from system.")
if not self.repodb.check_architecture(repo):
self.warn_and_remove(warning % ("architecture", repo), repo)
self.warn_and_remove(_("Repository architecture does not match. Removing %s from system.") % repo)
if not self.repodb.check_distribution(repo):
self.warn_and_remove(warning % ("distribution", repo), repo)
self.warn_and_remove(_("Repository distribution does not match. Removing %s from system.") % repo)
def run(self):