From: Zac Medico Date: Wed, 8 Sep 2010 00:19:41 +0000 (-0700) Subject: Use localization for the dos line-endings warning message in getconfig. X-Git-Tag: v2.2_rc78~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cd37e2494214e3823b29c7f3e89c3d41fe8a62b0;p=portage.git Use localization for the dos line-endings warning message in getconfig. --- 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: