summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog/mod_mail.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-06-29 11:23:09 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-06-29 11:23:09 +0000
commit58b226174843d6a39f9312427aa2d1aae322e9a1 (patch)
treebd949ca7d3d1fb5d101118ca2d71c9f75717f77f /pym/portage/elog/mod_mail.py
parentfe334af3ca74a8cd886c4c1c988c3e98263f582d (diff)
downloadportage-58b226174843d6a39f9312427aa2d1aae322e9a1.tar.gz
portage-58b226174843d6a39f9312427aa2d1aae322e9a1.tar.bz2
portage-58b226174843d6a39f9312427aa2d1aae322e9a1.zip
Prepare 41 messages to localization.
svn path=/main/trunk/; revision=13733
Diffstat (limited to 'pym/portage/elog/mod_mail.py')
-rw-r--r--pym/portage/elog/mod_mail.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pym/portage/elog/mod_mail.py b/pym/portage/elog/mod_mail.py
index d6383a4eb..841986b96 100644
--- a/pym/portage/elog/mod_mail.py
+++ b/pym/portage/elog/mod_mail.py
@@ -5,6 +5,7 @@
import portage.mail, socket
from portage.exception import PortageException
+from portage.localization import _
from portage.util import writemsg
def process(mysettings, key, logentries, fulltext):
@@ -20,17 +21,17 @@ def process(mysettings, key, logentries, fulltext):
mysubject = mysubject.replace("${HOST}", socket.getfqdn())
# look at the phases listed in our logentries to figure out what action was performed
- action = "merged"
+ action = _("merged")
for phase in logentries.keys():
# if we found a *rm phase assume that the package was unmerged
if phase in ["postrm", "prerm"]:
- action = "unmerged"
+ action = _("unmerged")
# if we think that the package was unmerged, make sure there was no unexpected
# phase recorded to avoid misinformation
- if action == "unmerged":
+ if action == _("unmerged"):
for phase in logentries.keys():
if phase not in ["postrm", "prerm", "other"]:
- action = "unknown"
+ action = _("unknown")
mysubject = mysubject.replace("${ACTION}", action)