Location: PHPKode > projects > ChurchCMS > churchcms/lang/en/errors.inc.php
<?
/**************************************************************************************************
 *                                            ChurchCMS
 * Copyright (C) 2005 jsvoyager
 *
 * Developers & Contributors:
 * jsvoyager					hide@address.com
 *
 * This program is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software Foundation;
 * either version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * (license.txt)
 ***************************************************************************************************/

//General Error Text...
$lang['err']['error'] 				= "Error";
$lang['err']['erroroccured']		= "An error has occurred";
$lang['err']['errorblurb']			= "   We are sorry, but an unrecoverable error has occured in ChurchCMS.  The " . 
												"following bug report has been created.  Please contact the webmaster of this " . 
												"site, or if instructed to do so, the ChurchCMS developers at ChurchCMS's web " . 
												"based bug report tool.";
$lang['err']['errorreport']		= "Error Report";
$lang['err']['file']					= "File";
$lang['err']['line']					= "Line";


//If an error should be reported, it has the following var attached to it:
$report = "<br>Please report this error to the ChurchCMS development team via the bug tracker at: <<<!!!!!>>>";

//If an error had additional information, it is attached via the $addinfo var, a param of error() in main.inc.php


//100 -- ???

//200 -- Database Error (all have a mysql_error attached)
	$lang['err']['200'] 					= "Unidentified Database Error: " . mysql_error();
	$lang['err']['201']					= "Database Connection Error: " . mysql_error();
	$lang['err']['202']					= "Database Query Error: " . mysql_error() . "<br>Query: <pre>" . $addinfo . 
													"</pre>" . $report;
	$lang['err']['203']					= "Database Selection Error: " . mysql_error();

//300 -- Module Instilation Errors
	$lang['err']['300']					= "Unable to install module.  Reason Unknown";
	$lang['err']['301']					= "Error opening module's install file (" . $addinfo . "). Please contact vendor.";
	$lang['err']['302']					= "ChurchCMS Core does not meet the requirements of this module.";
	$lang['err']['303']					= "Required module " . $addinfo . " not installed";
	$lang['err']['304']					= sprintf("Installing module required module %s to be version %s, current " . 
													"version: %s", $addinfo[0], $addinfo[1], $addinfo[2]);
		//320's -- Improperly formated module
		$lang['err']['320']				= "Module improperly formated:  No module definition (module.def.php) found";
		$lang['err']['321']				= "Module definition (module.def.php) does not define module correctly. Error: " . 
													$addinfo;
		$lang['err']['322']				= "Variable " . $addinfo . " not defined or defined improperly";
		$lang['err']['323']				= "Unable to find module-given file $addinfo.  Module defined improperly.";

	

?>
Return current item: ChurchCMS