Index: potx.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/potx/Attic/potx.inc,v retrieving revision 1.1.2.17.2.7.2.19.4.1 diff -u -p -r1.1.2.17.2.7.2.19.4.1 potx.inc --- potx.inc 19 Jul 2009 12:54:42 -0000 1.1.2.17.2.7.2.19.4.1 +++ potx.inc 22 Aug 2009 20:36:32 -0000 @@ -1412,11 +1412,12 @@ function _potx_explore_dir($path = '', $ } } } - // Skip our own files, because we don't want to get strings from them + // Skip our own files, because we don't want to get strings from them // to appear in the output, especially with the command line interface. + // Also exclude API files from being parsed. // TODO: fix this to be able to autogenerate templates for potx itself. foreach ($files as $id => $file_name) { - if (preg_match('!(potx-cli.php|potx.inc)$!', $file_name)) { + if (preg_match('!(potx-cli\.php|potx\.inc|\.api\.php)$!', $file_name)) { unset($files[$id]); } }