From a88616454d9c8196f3939686b23fe7a37c76f379 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 15 Jan 2010 23:49:00 +0100 Subject: [PATCH] Quoting --- horde/po/translation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/horde/po/translation.php b/horde/po/translation.php index 37ab05ca5..82249f455 100755 --- a/horde/po/translation.php +++ b/horde/po/translation.php @@ -788,7 +788,7 @@ function make() $c->message(sprintf('The Horde PO file for the locale %s does not exist:', $locale), 'cli.warning'); $c->writeln($horde_po); $c->writeln(); - $sh .= $dirs[$i] . DS . 'po' . DS . $locale . '.po'; + $sh .= '"' . $dirs[$i] . DS . 'po' . DS . $locale . '.po"'; } else { $comm = $GLOBALS['msgcomm'] . " --more-than=0 --sort-output \"$pofile\""; $sh = $comm . " \"$horde_po\" | $sh -"; @@ -932,7 +932,7 @@ function cleanup($keep_untranslated = false) foreach ($langs as $locale) { $c->writeln(sprintf('Cleaning up locale %s... ', $c->bold($locale))); $pofile = $dirs[$i] . DS . 'po' . DS . $locale . '.po'; - $sh = $GLOBALS['msgattrib'] . ($keep_untranslated ? '' : ' --translated') . " --no-obsolete --force-po $pofile > $pofile.tmp"; + $sh = $GLOBALS['msgattrib'] . ($keep_untranslated ? '' : ' --translated') . " --no-obsolete --force-po \"$pofile\" > \"$pofile.tmp\""; if (!$debug) { $sh .= $silence; } -- 2.11.0