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/news.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pym/portage/news.py') diff --git a/pym/portage/news.py b/pym/portage/news.py index c6bd9eafa..36d4603f7 100644 --- a/pym/portage/news.py +++ b/pym/portage/news.py @@ -15,6 +15,7 @@ from portage.util import apply_secpass_permissions, ensure_dirs, \ grabfile, normalize_path, write_atomic, writemsg_level from portage.data import portage_gid from portage.dep import isvalidatom +from portage.localization import _ from portage.locks import lockfile, unlockfile from portage.exception import InvalidLocation, OperationNotPermitted, \ PermissionDenied @@ -70,7 +71,7 @@ class NewsManager(object): def _news_dir(self, repoid): repo_path = self.portdb.getRepositoryPath(repoid) if repo_path is None: - raise AssertionError("Invalid repoID: %s" % repoid) + raise AssertionError(_("Invalid repoID: %s") % repoid) return os.path.join(repo_path, self.news_path) def updateItems(self, repoid): @@ -249,9 +250,9 @@ class NewsItem(object): if invalids: self._valid = False msg = [] - msg.append("Invalid news item: %s" % (self.path,)) + msg.append(_("Invalid news item: %s") % (self.path,)) for lineno, line in invalids: - msg.append(" line %d: %s" % (lineno, line)) + msg.append(_(" line %d: %s") % (lineno, line)) writemsg_level("".join("!!! %s\n" % x for x in msg), level=logging.ERROR, noiselevel=-1) @@ -270,7 +271,7 @@ class DisplayRestriction(object): return True def checkRestriction(self, **kwargs): - raise NotImplementedError('Derived class should over-ride this method') + raise NotImplementedError('Derived class should override this method') class DisplayProfileRestriction(DisplayRestriction): """ -- cgit v1.2.3-1-g7c22