summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaetzer <laetzer@users.sourceforge.net>2008-09-19 01:34:37 +0000
committerlaetzer <laetzer@users.sourceforge.net>2008-09-19 01:34:37 +0000
commit2fd4920e67dc946233468f3ba31c31d9f61af816 (patch)
tree1caf6de7aa5e7759e2fd1f7fdc072668ed620da5
parent2c5d24448536c50241c02b96adfe8c8e3dba9661 (diff)
downloadnexus-2fd4920e67dc946233468f3ba31c31d9f61af816.tar.gz
nexus-2fd4920e67dc946233468f3ba31c31d9f61af816.tar.bz2
nexus-2fd4920e67dc946233468f3ba31c31d9f61af816.zip
tra() for error/warning/delete messagescreate_permission
-rw-r--r--menus.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/menus.php b/menus.php
index d648ad4..ddedb0a 100644
--- a/menus.php
+++ b/menus.php
@@ -1,7 +1,7 @@
<?php
/**
* @author xing <xing@synapse.plus.com>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
* @package nexus
* @subpackage functions
*/
@@ -26,9 +26,10 @@ if( isset( $_REQUEST['action'] ) ) {
$formHash['remove'] = TRUE;
$formHash['menu_id'] = $menuId;
$msgHash = array(
- 'label' => 'Delete Menu',
+ 'label' => tra('Delete Menu'),
'confirm_item' => $gNexus->mInfo['title'],
- 'warning' => 'This will remove this menu including all menu items associated with it.<br />This cannot be undone!',
+ 'warning' => tra('Remove this menu including all menu items associated with it.'),
+ 'error' => tra('This cannot be undone!'),
);
$gBitSystem->confirmDialog( $formHash,$msgHash );
}
@@ -50,7 +51,7 @@ if( isset( $_REQUEST['action'] ) ) {
if( $gNexus->importStructure( $_REQUEST['structure_id'] ) ) {
$formfeedback['success'] = tra( 'The structure was successfully imported as menu.' );
} else {
- $gBitSystem->fatalError( "There was an error importing the structure: ".vc( $gNexus->mErrors ));
+ $gBitSystem->fatalError( tra("There was an error importing the structure ").vc( $gNexus->mErrors ));
}
}
}
@@ -60,7 +61,7 @@ if( isset( $_REQUEST['confirm'] ) ) {
header ("Location: ".NEXUS_PKG_URL."menus.php");
die;
} else {
- $gBitSystem->fatalError( "There was an error deleting the menu: ".vc( $gNexus->mErrors ));
+ $gBitSystem->fatalError( tra("There was an error deleting the menu ").vc( $gNexus->mErrors ));
}
}