summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-07 17:19:41 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-07 17:19:41 -0700
commitcd37e2494214e3823b29c7f3e89c3d41fe8a62b0 (patch)
tree25f0d2c8cbb8cecc946831c476a57f0b107cb9c4
parent9977cd5dfe5143d13becf3e39baaf141685a23d7 (diff)
downloadportage-cd37e2494214e3823b29c7f3e89c3d41fe8a62b0.tar.gz
portage-cd37e2494214e3823b29c7f3e89c3d41fe8a62b0.tar.bz2
portage-cd37e2494214e3823b29c7f3e89c3d41fe8a62b0.zip
Use localization for the dos line-endings warning message in getconfig.
-rw-r--r--pym/portage/util/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py
index b897f77f8..ae1d6febb 100644
--- a/pym/portage/util/__init__.py
+++ b/pym/portage/util/__init__.py
@@ -432,8 +432,8 @@ def getconfig(mycfg, tolerant=0, allow_sourcing=False, expand=True):
# Warn about dos-style line endings since that prevents
# people from being able to source them with bash.
if '\r' in content:
- writemsg("!!! Please use dos2unix to convert line endings " + \
- "in config file: '%s'\n" % mycfg, noiselevel=-1)
+ writemsg(("!!! " + _("Please use dos2unix to convert line endings " + \
+ "in config file: '%s'") + "\n") % mycfg, noiselevel=-1)
try:
if tolerant: