From 126b1ae8bf45a02788b7eb225fa8fb624d7d1f20 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 17 Aug 2006 06:40:54 +0000 Subject: [PATCH] We have a near-working processing tool --- docs/makepo.sh.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/makepo.sh.php b/docs/makepo.sh.php index dde7865..795790d 100755 --- a/docs/makepo.sh.php +++ b/docs/makepo.sh.php @@ -37,13 +37,14 @@ foreach ($filelist AS $dirpath => $nodes) $ext = BSFunctions::FetchExtension($file); if ($ext == 'php') { - $files[] = '.' . BSFunctions::FetchSourcePath($search) . $dirpath . $file; + $files["$dirpath"] = BSFunctions::FetchSourcePath('./' . $dirpath) . '*.php'; } else if ($ext == 'xml' OR $ext == 'tpl' OR $ext == 'html' OR $ext == 'htm') { + $files["$dirpath"] = BSFunctions::FetchSourcePath('./' . $dirpath) . '*.php'; $templates[] = array( - 'orig' => '.' . BSFunctions::FetchSourcePath($search) . $dirpath . $file, - 'temp' => '.' . BSFunctions::FetchSourcePath($search) . $dirpath . 'xgtxt-' . $file . '.php' + 'orig' => BSFunctions::FetchSourcePath('./' . $dirpath) . $file, + 'temp' => BSFunctions::FetchSourcePath('./' . $dirpath) . $file . '.xgettext.php' ); } } @@ -72,7 +73,7 @@ foreach ($templates AS $paths) // ################################################################### // run xgettext on all of the various files that we have now created - +exec('xgettext -n ' . implode(' ', $files)); // ################################################################### // remove all the files we no longer need -- 2.43.5