From 110399c39e93eb490887d2a748724842b5cb3c91 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 22 Feb 2010 18:03:03 +0000 Subject: [PATCH] Some gettext and formatting. see #11817 git-svn-id: http://svn.automattic.com/wordpress/trunk@13295 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-navigation.php | 108 ++++++++++++++------------------- 1 file changed, 46 insertions(+), 62 deletions(-) diff --git a/wp-admin/custom-navigation.php b/wp-admin/custom-navigation.php index adce146c6e..e20d8caa90 100644 --- a/wp-admin/custom-navigation.php +++ b/wp-admin/custom-navigation.php @@ -46,7 +46,7 @@ function wp_custom_navigation() { ?>
-

You do not have JavaScript enabled in your browser. Please enable it to access the Custom Menu functionality.

+

'.$themename."'s Custom Menu has been updated!

"; + $messagesdiv = '

' . __('Custom Menu has been updated!') . '

'; } if ( isset( $_POST['licount'] ) ) @@ -96,7 +96,7 @@ function wp_custom_navigation() { if ( $insert_menu_name != '' ) { $existing_term = get_term_by( 'name', $insert_menu_name, 'nav_menu' ); if ( $existing_term ) { - $messagesdiv = '

' . $existing_term->name . ' Menu has already created - please try another name

'; + $messagesdiv = '

' . esc_html( sprintf( e__('A menu named "%s" already exists; please try another name.'), $existing_term->name ) ) . '

'; } else { $term = wp_insert_term( $insert_menu_name, 'nav_menu' ); if ( !is_wp_error($term) ) { @@ -104,13 +104,13 @@ function wp_custom_navigation() { $custom_menus[$term->term_id] = $term; $menu_selected_id = $term->term_id; $menu_id_in_edit = $menu_selected_id; - $messagesdiv = '

' . $term->name . ' Menu has been created!

'; + $messagesdiv = '

' . esc_html( sprintf( __('"%s" menu has been created!'), $term->name ) ) . '

'; $postCounter = 0; } } } else { - $messagesdiv = '

Please enter a valid Menu name

'; + $messagesdiv = '

' . __('Please enter a valid menu name.') . '

'; } } @@ -118,13 +118,13 @@ function wp_custom_navigation() { $success = wp_custom_nav_reset(); if ( $success ) { // DISPLAY SUCCESS MESSAGE IF Menu Reset Correctly - $messagesdiv = '

'.$themename."'s Custom Menu has been RESET!

"; + $messagesdiv = '

' . __('The menu has been reset.') . '

'; // GET reset menu id $custom_menus = array(); $menu_selected_id = 0; } else { // DISPLAY SUCCESS MESSAGE IF Menu Reset Correctly - $messagesdiv = '

'.$themename."'s Custom Menu could not be RESET. Please try again.

"; + $messagesdiv = '

' . __('The menu could not be reset. Please try again.') . '

'; } } elseif ( $postCounter > 0 && $menu_selected_id > 0 ) { $menu_objects = get_objects_in_term( $menu_selected_id, 'nav_menu' ); @@ -180,7 +180,7 @@ function wp_custom_navigation() { ?>
-

Custom Navigation

+

The Custom Menu has not been Enabled yet. Please enable it in order to use it -------->

'; + echo '

' . __('The Custom Menu has not been Enabled yet. Please enable it in order to use it -------->') . '

'; } @@ -205,7 +205,7 @@ function wp_custom_navigation() { -

+

@@ -231,18 +231,18 @@ function wp_custom_navigation() { updatepostdata(); -

+