summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-04-23 09:36:31 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-04-23 09:36:31 +0000
commitf5e7766f7d09c3ded5d66ab0f28d2cefa91c4137 (patch)
tree269ad55deb61e1f9a7f7e355d662d8eb0c24cc5e
parent9070751d081485524ab67d84d5dc80414ab392a0 (diff)
downloadmessages-f5e7766f7d09c3ded5d66ab0f28d2cefa91c4137.tar.gz
messages-f5e7766f7d09c3ded5d66ab0f28d2cefa91c4137.tar.bz2
messages-f5e7766f7d09c3ded5d66ab0f28d2cefa91c4137.zip
fatalError message translation standardisation: fatalError message is not translated in the function so it has to be translated when it's passed in. this allows for dynamically changed errormessages without causing duplicate master strings
-rw-r--r--contact.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/contact.php b/contact.php
index 6de90b0..99615e4 100644
--- a/contact.php
+++ b/contact.php
@@ -3,7 +3,7 @@
* message package modules
*
* @author
-* @version $Header: /cvsroot/bitweaver/_bit_messages/contact.php,v 1.11 2007/04/20 13:36:20 nickpalmer Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_messages/contact.php,v 1.12 2007/04/23 09:36:31 squareing Exp $
* @package messages
* @subpackage functions
*/
@@ -18,7 +18,7 @@
require_once( '../bit_setup_inc.php' );
if( !$gBitSystem->isFeatureActive( 'messages_site_contact' ) ) {
- $gBitSystem->fatalError( "The Contact feature is disabled." );
+ $gBitSystem->fatalError( tra( "The Contact feature is disabled." ));
}
include_once( MESSAGES_PKG_PATH.'Messages.php' );
@@ -27,14 +27,14 @@ $messages = new Messages();
$userInfo = $gBitUser->getUserInfo( array( 'login' => $gBitSystem->getConfig( 'messages_contact_user' ) ) );
$email = $userInfo['email'];
if( empty( $email ) ) {
- $gBitSystem->fatalError( "This feature is not correctly set up. The email address is missing." );
+ $gBitSystem->fatalError( tra( "This feature is not correctly set up. The email address is missing." ));
} else {
$gBitSmarty->assign( 'email', $email );
}
if (!empty($_REQUEST['send'])) {
if( empty( $_REQUEST['subject'] ) && empty( $_REQUEST['body'] ) ) {
- $gBitSystem->fatalError( "Either a subject or a message body is required." );
+ $gBitSystem->fatalError( tra( "Either a subject or a message body is required." ));
}
$messages->postMessage( $userInfo['login'], $gBitUser->mUsername, $_REQUEST['to'], '', $_REQUEST['subject'], $_REQUEST['body'], $_REQUEST['priority']);
$feedback['success'] = tra( 'Your message was sent to' ).': '.( !empty( $userInfo['real_name'] ) ? $userInfo['real_name'] : $userInfo['login'] );