summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-09-08 16:01:42 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-09-08 16:01:42 +0200
commit3b57ed0bc09017ffaad9f3bb7caf3427d824408b (patch)
tree5d18da6ba60e570d078481f4ab29a2b26d935c83
parentdec85de09de84bdc0745076d365dcd0a05b287eb (diff)
downloadportage-3b57ed0bc09017ffaad9f3bb7caf3427d824408b.tar.gz
portage-3b57ed0bc09017ffaad9f3bb7caf3427d824408b.tar.bz2
portage-3b57ed0bc09017ffaad9f3bb7caf3427d824408b.zip
Mark some messages for localization.
-rw-r--r--pym/portage/dbapi/porttree.py6
-rw-r--r--pym/portage/dbapi/vartree.py8
-rw-r--r--pym/portage/news.py4
3 files changed, 9 insertions, 9 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index b9f3e8cc8..0065ed3b8 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -661,13 +661,13 @@ class portdbapi(dbapi):
# returns a filename:size dictionnary of remaining downloads
myebuild = self.findname(mypkg)
if myebuild is None:
- raise AssertionError("ebuild not found for '%s'" % mypkg)
+ raise AssertionError(_("ebuild not found for '%s'") % mypkg)
pkgdir = os.path.dirname(myebuild)
mf = Manifest(pkgdir, self.settings["DISTDIR"])
checksums = mf.getDigests()
if not checksums:
if debug:
- writemsg("[empty/missing/bad digest]: %s\n" % (mypkg,))
+ writemsg(_("[empty/missing/bad digest]: %s\n") % (mypkg,))
return {}
filesdict={}
myfiles = self.getFetchMap(mypkg, useflags=useflags)
@@ -719,7 +719,7 @@ class portdbapi(dbapi):
myfiles = self.getFetchMap(mypkg, useflags=useflags)
myebuild = self.findname(mypkg)
if myebuild is None:
- raise AssertionError("ebuild not found for '%s'" % mypkg)
+ raise AssertionError(_("ebuild not found for '%s'") % mypkg)
pkgdir = os.path.dirname(myebuild)
mf = Manifest(pkgdir, self.settings["DISTDIR"])
mysums = mf.getDigests()
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index c5c772949..fddb4326c 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -3600,9 +3600,9 @@ class dblink(object):
backup_dest = self._new_backup_path(mydest)
msg = []
msg.append("")
- msg.append("Installation of a directory is blocked by a file:")
+ msg.append(_("Installation of a directory is blocked by a file:"))
msg.append(" '%s'" % mydest)
- msg.append("This file will be renamed to a different name:")
+ msg.append(_("This file will be renamed to a different name:"))
msg.append(" '%s'" % backup_dest)
msg.append("")
self._eerror("preinst", msg)
@@ -3678,9 +3678,9 @@ class dblink(object):
newdest = self._new_backup_path(mydest)
msg = []
msg.append("")
- msg.append("Installation of a regular file is blocked by a directory:")
+ msg.append(_("Installation of a regular file is blocked by a directory:"))
msg.append(" '%s'" % mydest)
- msg.append("This file will be merged with a different name:")
+ msg.append(_("This file will be merged with a different name:"))
msg.append(" '%s'" % newdest)
msg.append("")
self._eerror("preinst", msg)
diff --git a/pym/portage/news.py b/pym/portage/news.py
index c0e6ef329..f500aa3b8 100644
--- a/pym/portage/news.py
+++ b/pym/portage/news.py
@@ -1,5 +1,5 @@
# portage: news management code
-# Copyright 2006 Gentoo Foundation
+# Copyright 2006-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__all__ = ["NewsManager", "NewsItem", "DisplayRestriction",
@@ -123,7 +123,7 @@ class NewsManager(object):
itemid = _unicode_decode(itemid,
encoding=_encodings['fs'], errors='replace')
writemsg_level(
- "!!! Invalid encoding in news item name: '%s'\n" % \
+ _("!!! Invalid encoding in news item name: '%s'\n") % \
itemid, level=logging.ERROR, noiselevel=-1)
continue