true,
);
var $command = 'catdoc'; // could be any application.
var $commandconfig = 'indexer/catdoc'; // could be any application.
var $args = array("-w", "-d", "UTF-8");
var $use_pipes = true;
function findLocalCommand() {
$sCommand = KTUtil::findCommand($this->commandconfig, $this->command);
putenv('LANG=en_US.UTF-8');
return $sCommand;
}
function getDiagnostic() {
if (OS_WINDOWS) {
return null; // _kt("The RTF indexer does not currently index RTF documents on Windows.");
}
$sCommand = $this->findLocalCommand();
// can't find the local command.
if (empty($sCommand)) {
return sprintf(_kt('Unable to find required command for indexing. Please ensure that %s is installed and in the %s Path. For more information on indexers and helper applications, please visit the %s site.'), $this->command, APP_NAME, $this->support_url, APP_NAME);
}
return null;
}
}
?>