[PHPVortex-Commit] phpvortex/conf conf.php,1.2,1.3 lang_en.php,1.1,1.2 lang_pt_br.php,1.1,1.2
Brought to you by:
nop144666
From: Thiago R. <nop...@us...> - 2004-10-08 17:16:28
|
Update of /cvsroot/phpvortex/phpvortex/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20688/conf Modified Files: conf.php lang_en.php lang_pt_br.php Log Message: Moved some error constants to conf.php (maybe they will go to a new file later) and added some new messages to the language files Index: conf.php =================================================================== RCS file: /cvsroot/phpvortex/phpvortex/conf/conf.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** conf.php 5 Oct 2004 15:11:06 -0000 1.2 --- conf.php 8 Oct 2004 17:16:15 -0000 1.3 *************** *** 10,13 **** --- 10,44 ---- */ + /** + * No Error. + * + * Error codes for TB_* + */ + define('TB_ERR_OK', 0); + /** + * Inconsistency detected in a field. + * + * Error codes for TB_* + */ + define('TB_ERR_INCONSIST', 1); + /** + * No Primary Key found. + * + * Error codes for TB_* + */ + define('TB_ERR_NOPKEY', 2); + /** + * Empty parameter or RecordSet. + * + * Error codes for TB_* + */ + define('TB_ERR_EMPTY', 3); + /** + * Database error (use {@link DB_Base::Error()} to discover which error). + * + * Error codes for TB_* + */ + define('TB_ERR_DB', 4); + /** require one of the localized message files */ require_once('lang_en.php'); Index: lang_pt_br.php =================================================================== RCS file: /cvsroot/phpvortex/phpvortex/conf/lang_pt_br.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_pt_br.php 4 Oct 2004 21:12:01 -0000 1.1 --- lang_pt_br.php 8 Oct 2004 17:16:15 -0000 1.2 *************** *** 12,14 **** --- 12,26 ---- $vortex_msgs = array(); $vortex_msgs['consist_error'] = 'Os seguintes campos são de preenchimento obrigatório:'; + $vortex_msgs['form_submit'] = 'Enviar'; + $vortex_msgs['form_reset'] = 'Cancelar'; + $vortex_msgs['form_new'] = 'Novo'; + $vortex_msgs['form_delete'] = 'Excluir'; + + $vortex_errors = array(); + $vortex_errors[TB_ERR_OK] = 'Nenhum erro.'; + $vortex_errors[TB_ERR_INCONSIST] = 'A checagem de consistência dos dados falhou, por favor verifique os dados e envie novamente.'; + $vortex_errors[TB_ERR_NOPKEY] = 'Chave Primária não encontrada.'; + $vortex_errors[TB_ERR_EMPTY] = 'Parâmetro ou RecordSet vazio.'; + $vortex_errors[TB_ERR_DB] = 'Erro no Banco de Dados.'; + ?> \ No newline at end of file Index: lang_en.php =================================================================== RCS file: /cvsroot/phpvortex/phpvortex/conf/lang_en.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_en.php 4 Oct 2004 21:12:01 -0000 1.1 --- lang_en.php 8 Oct 2004 17:16:15 -0000 1.2 *************** *** 12,14 **** --- 12,26 ---- $vortex_msgs = array(); $vortex_msgs['consist_error'] = 'The following fields are required:'; + $vortex_msgs['form_submit'] = 'Submit'; + $vortex_msgs['form_reset'] = 'Reset'; + $vortex_msgs['form_new'] = 'New'; + $vortex_msgs['form_delete'] = 'Delete'; + + $vortex_errors = array(); + $vortex_errors[TB_ERR_OK] = 'No error.'; + $vortex_errors[TB_ERR_INCONSIST] = 'Failed consistency check on data, please review the data and submit again.'; + $vortex_errors[TB_ERR_NOPKEY] = 'No Primary Key found.'; + $vortex_errors[TB_ERR_EMPTY] = 'Empty parameter or RecordSet.'; + $vortex_errors[TB_ERR_DB] = 'Database error.'; + ?> \ No newline at end of file |