From 56449263e9eec530a120ed8180054c15c928a7b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Sat, 20 Feb 2010 10:53:58 +0000 Subject: [PATCH] Make this translatable --- pisi/cli/addrepo.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pisi/cli/addrepo.py b/pisi/cli/addrepo.py index 90bcf3b2..1c81b73d 100644 --- a/pisi/cli/addrepo.py +++ b/pisi/cli/addrepo.py @@ -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):