aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-15 18:13:18 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-15 18:13:18 +0000
commit74ecc5568944b42e38cd99a4c07a6249bc9a56ed (patch)
tree4afdd58d9462b0d2efe71edfa43810e42766b5d2 /pym/portage/news.py
parentRemove ACCEPT_PROPERTIES filtering since it's filtered on the python side. (diff)
downloadportage-74ecc5568944b42e38cd99a4c07a6249bc9a56ed.tar.gz
portage-74ecc5568944b42e38cd99a4c07a6249bc9a56ed.tar.bz2
portage-74ecc5568944b42e38cd99a4c07a6249bc9a56ed.zip
Prepare 308 messages to localization.
svn path=/main/trunk/; revision=14067
Diffstat (limited to 'pym/portage/news.py')
-rw-r--r--pym/portage/news.py9
1 files changed, 5 insertions, 4 deletions
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):
"""