From cd37e2494214e3823b29c7f3e89c3d41fe8a62b0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 7 Sep 2010 17:19:41 -0700 Subject: Use localization for the dos line-endings warning message in getconfig. --- pym/portage/util/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22