Use localization for the dos line-endings warning message in getconfig.
authorZac Medico <zmedico@gentoo.org>
Wed, 8 Sep 2010 00:19:41 +0000 (17:19 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 8 Sep 2010 00:19:41 +0000 (17:19 -0700)
pym/portage/util/__init__.py

index b897f77f8ccf336f46771310aeb551621d3e3ad2..ae1d6febb1de1fe4db89e69d0609eac6e7ebd6ca 100644 (file)
@@ -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: