Make WordPress Core

Changeset 13296


Ignore:
Timestamp:
02/22/2010 06:12:53 PM (15 years ago)
Author:
ryan
Message:

More gettext. see #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-navigation.php

    r13295 r13296  
    174174        }
    175175        // DISPLAY SUCCESS MESSAGE IF POST CORRECT
    176         $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename."'s Custom Menu has been updated!</p></div>";
     176        $messagesdiv = '<div id="message" class="updated fade below-h2"><p>' . __('The menu has been updated.') . '</p></div>';
    177177    }
    178178
     
    199199
    200200            <input type="hidden" name="licount" id="licount" value="0" />
    201             <input type="hidden" name="menu_id_in_edit" id="menu_id_in_edit" value="<?php echo $menu_selected_id; ?>" />
     201            <input type="hidden" name="menu_id_in_edit" id="menu_id_in_edit" value="<?php echo esc_attr($menu_selected_id); ?>" />
    202202
    203203            <div class="sidebar-name">
     
    262262                    </span><!-- /.checkboxes -->
    263263
    264                     <input id="set_wp_menu" type="submit" value="Set Menu" name="set_wp_menu" class="button" /><br />
     264                    <input id="set_wp_menu" type="submit" value="<?php esc_attr_e('Set Menu'); ?>" name="set_wp_menu" class="button" /><br />
    265265
    266266                    <span>
    267267                        <label><?php _e('Reset Menu to Default'); ?></label>
    268                         <input id="reset_wp_menu" type="submit" value="Reset" name="reset_wp_menu" class="button" onclick="return confirm('Are you sure you want to RESET the Custom Navigation Menu to its Default Settings?');" />
     268                        <input id="reset_wp_menu" type="submit" value="Reset" name="reset_wp_menu" class="button" onclick="return confirm('<?php _e('Are you sure you want to reset the menu to its default settings?'); ?>');" />
    269269                    </span>
    270270
     
    290290                                $selected_option = '';
    291291                            ?>
    292                             <option value="<?php echo $menu_term->term_id; ?>" <?php echo $selected_option; ?>><?php echo $menu_term->name; ?></option>
     292                            <option value="<?php echo esc_attr($menu_term->term_id); ?>" <?php echo $selected_option; ?>><?php echo $menu_term->name; ?></option>
    293293                            <?php
    294294
     
    391391
    392392                            //GET PHP pages
    393                             var dataposts = "<?php echo $page_name; ?>".split("|");
     393                            var dataposts = "<?php echo esc_js($page_name); ?>".split("|");
    394394
    395395                            //Set autocomplete
     
    410410
    411411
    412                     <input type="text" onfocus="jQuery('#page-search').attr('value','');" id="page-search" value="Search Pages" />
     412                    <input type="text" onfocus="jQuery('#page-search').attr('value','');" id="page-search" value="<?php esc_attr_e('Search Pages'); ?>" />
    413413
    414414                    <a id="show-pages" style="cursor:pointer;" onclick="jQuery('#existing-pages').css('display','block');jQuery('#page-search').attr('value','');jQuery('#existing-pages dt').css('display','block');jQuery('#show-pages').hide();jQuery('#hide-pages').show();">View All</a>
     
    467467                        }
    468468                    } else {
    469                         $cat_name = "No categories available";
     469                        $cat_name = __('No categories available');
    470470                    }
    471471
     
    476476
    477477                            //GET PHP categories
    478                             var datacats = "<?php echo $cat_name; ?>".split("|");
     478                            var datacats = "<?php echo esc_js($cat_name); ?>".split("|");
    479479
    480480                            //Set autocomplete
     
    529529                    <input type="hidden" id="templatedir" value="<?php echo esc_attr($templatedir); ?>" />
    530530                    <input id="custom_menu_item_name" type="text" value="Menu Item" onfocus="jQuery('#custom_menu_item_name').attr('value','');"  />
    531                     <label>Menu Text</label><br />
    532                     <input id="custom_menu_item_description" type="text" value="A description" <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> onfocus="jQuery('#custom_menu_item_description').attr('value','');" />
     531                    <label><?php _e('Menu Text'); ?></label><br />
     532                    <input id="custom_menu_item_description" type="text" value="<?php esc_attr_e('A description'); ?>" <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> onfocus="jQuery('#custom_menu_item_description').attr('value','');" />
    533533                    <label <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> >Description</label>
    534                     <a class="addtomenu" onclick="appendToList('<?php echo $templatedir; ?>','Custom','','','','0','');jQuery('#custom_menu_item_name').attr('value','Menu Item');jQuery('#custom_menu_item_description').attr('value','A description');">Add to menu</a>
     534                    <a class="addtomenu" onclick="appendToList('<?php echo $templatedir; ?>','Custom','','','','0','');jQuery('#custom_menu_item_name').attr('value','Menu Item');jQuery('#custom_menu_item_description').attr('value','A description');"><?php _e('Add to menu'); ?></a>
    535535                    <div class="fix"></div>
    536536                </div>
     
    546546    </script>
    547547
    548     <div id="dialog-confirm" title="Edit Menu Item">
     548    <div id="dialog-confirm" title="<?php esc_attr_e('Edit Menu Item'); ?>">
    549549        </label><input id="edittitle" type="text" name="edittitle" value="" /><label class="editlabel" for="edittitle">Menu Title</label><br />
    550550        <input id="editlink" type="text" name="editlink" value="" /><label class="editlabel" for="editlink">URL</label><br />
Note: See TracChangeset for help on using the changeset viewer.