From 74ecc5568944b42e38cd99a4c07a6249bc9a56ed Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sat, 15 Aug 2009 18:13:18 +0000 Subject: Prepare 308 messages to localization. svn path=/main/trunk/; revision=14067 --- pym/portage/exception.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pym/portage/exception.py') diff --git a/pym/portage/exception.py b/pym/portage/exception.py index 6626fa3bf..f47937115 100644 --- a/pym/portage/exception.py +++ b/pym/portage/exception.py @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +from portage.localization import _ class PortageException(Exception): """General superclass for portage exceptions""" @@ -95,10 +96,10 @@ class UnsupportedAPIException(PortagePackageException): def __init__(self, cpv, eapi): self.cpv, self.eapi = cpv, eapi def __str__(self): - msg = ("Unable to do any operations on '%s', since " + \ - "it's EAPI is higher than this portage version's. Please upgrade" + \ - " to a portage version that supports EAPI '%s'.") % \ - (self.cpv, str(self.eapi).lstrip("-")) + msg = _("Unable to do any operations on '%(cpv)s', since " + "it's EAPI is higher than this portage version's. Please upgrade" + " to a portage version that supports EAPI '%(eapi)s'.") % \ + {"cpv": self.cpv, "eapi": str(self.eapi).lstrip("-")} return msg -- cgit v1.2.3-1-g7c22