<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[13296] trunk/wp-admin/custom-navigation.php: More gettext.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13296">13296</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-02-22 18:12:53 +0000 (Mon, 22 Feb 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>More gettext. see <a href="http://trac.wordpress.org/ticket/11817">#11817</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincustomnavigationphp">trunk/wp-admin/custom-navigation.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincustomnavigationphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/custom-navigation.php (13295 => 13296)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/custom-navigation.php        2010-02-22 18:03:03 UTC (rev 13295)
+++ trunk/wp-admin/custom-navigation.php        2010-02-22 18:12:53 UTC (rev 13296)
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="cx">                 // DISPLAY SUCCESS MESSAGE IF POST CORRECT
</span><del>-                $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename."'s Custom Menu has been updated!</p></div>";
</del><ins>+                $messagesdiv = '<div id="message" class="updated fade below-h2"><p>' . __('The menu has been updated.') . '</p></div>';
</ins><span class="cx">         }
</span><span class="cx">
</span><span class="cx">                 //DISPLAY Custom Navigation
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx">                         <form onsubmit="updatepostdata()" action="custom-navigation.php" method="post" enctype="multipart/form-data">
</span><span class="cx">
</span><span class="cx">                         <input type="hidden" name="licount" id="licount" value="0" />
</span><del>-                        <input type="hidden" name="menu_id_in_edit" id="menu_id_in_edit" value="<?php echo $menu_selected_id; ?>" />
</del><ins>+                        <input type="hidden" name="menu_id_in_edit" id="menu_id_in_edit" value="<?php echo esc_attr($menu_selected_id); ?>" />
</ins><span class="cx">
</span><span class="cx">                         <div class="sidebar-name">
</span><span class="cx">
</span><span class="lines">@@ -261,11 +261,11 @@
</span><span class="cx">                                          <label><?php _e('Disable'); ?></label><input type="radio" name="enable_wp_menu" value="false" <?php if ($checked=='true') { } else { echo 'checked="checked"'; } ?> />
</span><span class="cx">                                         </span><!-- /.checkboxes -->
</span><span class="cx">
</span><del>-                                        <input id="set_wp_menu" type="submit" value="Set Menu" name="set_wp_menu" class="button" /><br />
</del><ins>+                                        <input id="set_wp_menu" type="submit" value="<?php esc_attr_e('Set Menu'); ?>" name="set_wp_menu" class="button" /><br />
</ins><span class="cx">
</span><span class="cx">                                         <span>
</span><span class="cx">                                                 <label><?php _e('Reset Menu to Default'); ?></label>
</span><del>-                                                <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?');" />
</del><ins>+                                                <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?'); ?>');" />
</ins><span class="cx">                                         </span>
</span><span class="cx">
</span><span class="cx">                                         <div class="fix"></div>
</span><span class="lines">@@ -289,7 +289,7 @@
</span><span class="cx">                                                         else
</span><span class="cx">                                                                 $selected_option = '';
</span><span class="cx">                                                         ?>
</span><del>-                                                        <option value="<?php echo $menu_term->term_id; ?>" <?php echo $selected_option; ?>><?php echo $menu_term->name; ?></option>
</del><ins>+                                                        <option value="<?php echo esc_attr($menu_term->term_id); ?>" <?php echo $selected_option; ?>><?php echo $menu_term->name; ?></option>
</ins><span class="cx">                                                         <?php
</span><span class="cx">
</span><span class="cx">                                                 }
</span><span class="lines">@@ -390,7 +390,7 @@
</span><span class="cx">                                                 jQuery(document).ready(function(){
</span><span class="cx">
</span><span class="cx">                                                         //GET PHP pages
</span><del>-                                                 var dataposts = "<?php echo $page_name; ?>".split("|");
</del><ins>+                                                 var dataposts = "<?php echo esc_js($page_name); ?>".split("|");
</ins><span class="cx">
</span><span class="cx">                                                         //Set autocomplete
</span><span class="cx">                                                         jQuery("#page-search").autocomplete(dataposts);
</span><span class="lines">@@ -409,7 +409,7 @@
</span><span class="cx">                                         </script>
</span><span class="cx">
</span><span class="cx">
</span><del>-                                        <input type="text" onfocus="jQuery('#page-search').attr('value','');" id="page-search" value="Search Pages" />
</del><ins>+                                        <input type="text" onfocus="jQuery('#page-search').attr('value','');" id="page-search" value="<?php esc_attr_e('Search Pages'); ?>" />
</ins><span class="cx">
</span><span class="cx">                                         <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>
</span><span class="cx">                                         <a id="hide-pages" style="cursor:pointer;" onclick="jQuery('#existing-pages').css('display','none');jQuery('#page-search').attr('value','Search Pages');jQuery('#existing-pages dt').css('display','none');jQuery('#show-pages').show();jQuery('#hide-pages').hide();">Hide All</a>
</span><span class="lines">@@ -466,7 +466,7 @@
</span><span class="cx">                                                         }
</span><span class="cx">                                                  }
</span><span class="cx">                                          } else {
</span><del>-                                                $cat_name = "No categories available";
</del><ins>+                                                $cat_name = __('No categories available');
</ins><span class="cx">                                         }
</span><span class="cx">
</span><span class="cx">                                         ?>
</span><span class="lines">@@ -475,7 +475,7 @@
</span><span class="cx">                                                 jQuery(document).ready(function(){
</span><span class="cx">
</span><span class="cx">                                                         //GET PHP categories
</span><del>-                                                 var datacats = "<?php echo $cat_name; ?>".split("|");
</del><ins>+                                                 var datacats = "<?php echo esc_js($cat_name); ?>".split("|");
</ins><span class="cx">
</span><span class="cx">                                                         //Set autocomplete
</span><span class="cx">                                                         jQuery("#cat-search").autocomplete(datacats);
</span><span class="lines">@@ -528,10 +528,10 @@
</span><span class="cx">                         <?php $templatedir = get_bloginfo('url'); ?>
</span><span class="cx">                 <input type="hidden" id="templatedir" value="<?php echo esc_attr($templatedir); ?>" />
</span><span class="cx">                 <input id="custom_menu_item_name" type="text" value="Menu Item" onfocus="jQuery('#custom_menu_item_name').attr('value','');" />
</span><del>-                 <label>Menu Text</label><br />
-                         <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','');" />
</del><ins>+                 <label><?php _e('Menu Text'); ?></label><br />
+                         <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','');" />
</ins><span class="cx">                         <label <?php if ($advanced_option_descriptions == 'no') { ?>style="display:none;"<?php } ?> >Description</label>
</span><del>-                         <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>
</del><ins>+                         <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>
</ins><span class="cx">                                         <div class="fix"></div>
</span><span class="cx">                                 </div>
</span><span class="cx">                         </div><!-- /.widgets-holder-wrap -->
</span><span class="lines">@@ -545,7 +545,7 @@
</span><span class="cx">                 document.getElementById('no-js').style.display='none';
</span><span class="cx">         </script>
</span><span class="cx">
</span><del>-        <div id="dialog-confirm" title="Edit Menu Item">
</del><ins>+        <div id="dialog-confirm" title="<?php esc_attr_e('Edit Menu Item'); ?>">
</ins><span class="cx">                 </label><input id="edittitle" type="text" name="edittitle" value="" /><label class="editlabel" for="edittitle">Menu Title</label><br />
</span><span class="cx">                 <input id="editlink" type="text" name="editlink" value="" /><label class="editlabel" for="editlink">URL</label><br />
</span><span class="cx">                 <input id="editanchortitle" type="text" name="editanchortitle" value="" /><label class="editlabel" for="editanchortitle" >Link Title</label><br />
</span></span></pre>
</div>
</div>
</body>
</html>