<!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 = '&lt;div id=&quot;message&quot; class=&quot;updated fade below-h2&quot;&gt;&lt;p&gt;'.$themename.&quot;'s Custom Menu has been updated!&lt;/p&gt;&lt;/div&gt;&quot;;
</del><ins>+                $messagesdiv = '&lt;div id=&quot;message&quot; class=&quot;updated fade below-h2&quot;&gt;&lt;p&gt;' . __('The menu has been updated.') . '&lt;/p&gt;&lt;/div&gt;';
</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">                         &lt;form onsubmit=&quot;updatepostdata()&quot; action=&quot;custom-navigation.php&quot; method=&quot;post&quot;  enctype=&quot;multipart/form-data&quot;&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;input type=&quot;hidden&quot; name=&quot;licount&quot; id=&quot;licount&quot; value=&quot;0&quot; /&gt;
</span><del>-                        &lt;input type=&quot;hidden&quot; name=&quot;menu_id_in_edit&quot; id=&quot;menu_id_in_edit&quot; value=&quot;&lt;?php echo $menu_selected_id; ?&gt;&quot; /&gt;
</del><ins>+                        &lt;input type=&quot;hidden&quot; name=&quot;menu_id_in_edit&quot; id=&quot;menu_id_in_edit&quot; value=&quot;&lt;?php echo esc_attr($menu_selected_id); ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;sidebar-name&quot;&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -261,11 +261,11 @@
</span><span class="cx">                                             &lt;label&gt;&lt;?php _e('Disable'); ?&gt;&lt;/label&gt;&lt;input type=&quot;radio&quot; name=&quot;enable_wp_menu&quot; value=&quot;false&quot; &lt;?php if ($checked=='true') { } else { echo 'checked=&quot;checked&quot;'; } ?&gt; /&gt;
</span><span class="cx">                                         &lt;/span&gt;&lt;!-- /.checkboxes --&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;input id=&quot;set_wp_menu&quot; type=&quot;submit&quot; value=&quot;Set Menu&quot; name=&quot;set_wp_menu&quot; class=&quot;button&quot; /&gt;&lt;br /&gt;
</del><ins>+                                        &lt;input id=&quot;set_wp_menu&quot; type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e('Set Menu'); ?&gt;&quot; name=&quot;set_wp_menu&quot; class=&quot;button&quot; /&gt;&lt;br /&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;span&gt;
</span><span class="cx">                                                 &lt;label&gt;&lt;?php _e('Reset Menu to Default'); ?&gt;&lt;/label&gt;
</span><del>-                                                &lt;input id=&quot;reset_wp_menu&quot; type=&quot;submit&quot; value=&quot;Reset&quot; name=&quot;reset_wp_menu&quot; class=&quot;button&quot; onclick=&quot;return confirm('Are you sure you want to RESET the Custom Navigation Menu to its Default Settings?');&quot; /&gt;
</del><ins>+                                                &lt;input id=&quot;reset_wp_menu&quot; type=&quot;submit&quot; value=&quot;Reset&quot; name=&quot;reset_wp_menu&quot; class=&quot;button&quot; onclick=&quot;return confirm('&lt;?php _e('Are you sure you want to reset the menu to its default settings?'); ?&gt;');&quot; /&gt;
</ins><span class="cx">                                         &lt;/span&gt;
</span><span class="cx"> 
</span><span class="cx">                                         &lt;div class=&quot;fix&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -289,7 +289,7 @@
</span><span class="cx">                                                         else
</span><span class="cx">                                                                 $selected_option = '';
</span><span class="cx">                                                         ?&gt;
</span><del>-                                                        &lt;option value=&quot;&lt;?php echo $menu_term-&gt;term_id; ?&gt;&quot; &lt;?php echo $selected_option; ?&gt;&gt;&lt;?php echo $menu_term-&gt;name; ?&gt;&lt;/option&gt;
</del><ins>+                                                        &lt;option value=&quot;&lt;?php echo esc_attr($menu_term-&gt;term_id); ?&gt;&quot; &lt;?php echo $selected_option; ?&gt;&gt;&lt;?php echo $menu_term-&gt;name; ?&gt;&lt;/option&gt;
</ins><span class="cx">                                                         &lt;?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 = &quot;&lt;?php echo $page_name; ?&gt;&quot;.split(&quot;|&quot;);
</del><ins>+                                                    var dataposts = &quot;&lt;?php echo esc_js($page_name); ?&gt;&quot;.split(&quot;|&quot;);
</ins><span class="cx"> 
</span><span class="cx">                                                         //Set autocomplete
</span><span class="cx">                                                         jQuery(&quot;#page-search&quot;).autocomplete(dataposts);
</span><span class="lines">@@ -409,7 +409,7 @@
</span><span class="cx">                                           &lt;/script&gt;
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-                                        &lt;input type=&quot;text&quot; onfocus=&quot;jQuery('#page-search').attr('value','');&quot; id=&quot;page-search&quot; value=&quot;Search Pages&quot; /&gt;
</del><ins>+                                        &lt;input type=&quot;text&quot; onfocus=&quot;jQuery('#page-search').attr('value','');&quot; id=&quot;page-search&quot; value=&quot;&lt;?php esc_attr_e('Search Pages'); ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;a id=&quot;show-pages&quot; style=&quot;cursor:pointer;&quot; onclick=&quot;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();&quot;&gt;View All&lt;/a&gt;
</span><span class="cx">                                         &lt;a id=&quot;hide-pages&quot; style=&quot;cursor:pointer;&quot; onclick=&quot;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();&quot;&gt;Hide All&lt;/a&gt;
</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 = &quot;No categories available&quot;;
</del><ins>+                                                $cat_name = __('No categories available');
</ins><span class="cx">                                         }
</span><span class="cx"> 
</span><span class="cx">                                         ?&gt;
</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 = &quot;&lt;?php echo $cat_name; ?&gt;&quot;.split(&quot;|&quot;);
</del><ins>+                                                    var datacats = &quot;&lt;?php echo esc_js($cat_name); ?&gt;&quot;.split(&quot;|&quot;);
</ins><span class="cx"> 
</span><span class="cx">                                                         //Set autocomplete
</span><span class="cx">                                                         jQuery(&quot;#cat-search&quot;).autocomplete(datacats);
</span><span class="lines">@@ -528,10 +528,10 @@
</span><span class="cx">                                    &lt;?php $templatedir = get_bloginfo('url'); ?&gt;
</span><span class="cx">                             &lt;input type=&quot;hidden&quot; id=&quot;templatedir&quot; value=&quot;&lt;?php echo esc_attr($templatedir); ?&gt;&quot; /&gt;
</span><span class="cx">                             &lt;input id=&quot;custom_menu_item_name&quot; type=&quot;text&quot; value=&quot;Menu Item&quot; onfocus=&quot;jQuery('#custom_menu_item_name').attr('value','');&quot;  /&gt;
</span><del>-                            &lt;label&gt;Menu Text&lt;/label&gt;&lt;br /&gt;
-                                   &lt;input id=&quot;custom_menu_item_description&quot; type=&quot;text&quot; value=&quot;A description&quot; &lt;?php if ($advanced_option_descriptions == 'no') { ?&gt;style=&quot;display:none;&quot;&lt;?php } ?&gt; onfocus=&quot;jQuery('#custom_menu_item_description').attr('value','');&quot; /&gt;
</del><ins>+                            &lt;label&gt;&lt;?php _e('Menu Text'); ?&gt;&lt;/label&gt;&lt;br /&gt;
+                                   &lt;input id=&quot;custom_menu_item_description&quot; type=&quot;text&quot; value=&quot;&lt;?php esc_attr_e('A description'); ?&gt;&quot; &lt;?php if ($advanced_option_descriptions == 'no') { ?&gt;style=&quot;display:none;&quot;&lt;?php } ?&gt; onfocus=&quot;jQuery('#custom_menu_item_description').attr('value','');&quot; /&gt;
</ins><span class="cx">                                    &lt;label &lt;?php if ($advanced_option_descriptions == 'no') { ?&gt;style=&quot;display:none;&quot;&lt;?php } ?&gt; &gt;Description&lt;/label&gt;
</span><del>-                                   &lt;a class=&quot;addtomenu&quot; onclick=&quot;appendToList('&lt;?php echo $templatedir; ?&gt;','Custom','','','','0','');jQuery('#custom_menu_item_name').attr('value','Menu Item');jQuery('#custom_menu_item_description').attr('value','A description');&quot;&gt;Add to menu&lt;/a&gt;
</del><ins>+                                   &lt;a class=&quot;addtomenu&quot; onclick=&quot;appendToList('&lt;?php echo $templatedir; ?&gt;','Custom','','','','0','');jQuery('#custom_menu_item_name').attr('value','Menu Item');jQuery('#custom_menu_item_description').attr('value','A description');&quot;&gt;&lt;?php _e('Add to menu'); ?&gt;&lt;/a&gt;
</ins><span class="cx">                                         &lt;div class=&quot;fix&quot;&gt;&lt;/div&gt;
</span><span class="cx">                                 &lt;/div&gt;
</span><span class="cx">                         &lt;/div&gt;&lt;!-- /.widgets-holder-wrap --&gt;
</span><span class="lines">@@ -545,7 +545,7 @@
</span><span class="cx">                 document.getElementById('no-js').style.display='none';
</span><span class="cx">         &lt;/script&gt;
</span><span class="cx"> 
</span><del>-        &lt;div id=&quot;dialog-confirm&quot; title=&quot;Edit Menu Item&quot;&gt;
</del><ins>+        &lt;div id=&quot;dialog-confirm&quot; title=&quot;&lt;?php esc_attr_e('Edit Menu Item'); ?&gt;&quot;&gt;
</ins><span class="cx">                 &lt;/label&gt;&lt;input id=&quot;edittitle&quot; type=&quot;text&quot; name=&quot;edittitle&quot; value=&quot;&quot; /&gt;&lt;label class=&quot;editlabel&quot; for=&quot;edittitle&quot;&gt;Menu Title&lt;/label&gt;&lt;br /&gt;
</span><span class="cx">                 &lt;input id=&quot;editlink&quot; type=&quot;text&quot; name=&quot;editlink&quot; value=&quot;&quot; /&gt;&lt;label class=&quot;editlabel&quot; for=&quot;editlink&quot;&gt;URL&lt;/label&gt;&lt;br /&gt;
</span><span class="cx">                 &lt;input id=&quot;editanchortitle&quot; type=&quot;text&quot; name=&quot;editanchortitle&quot; value=&quot;&quot; /&gt;&lt;label class=&quot;editlabel&quot; for=&quot;editanchortitle&quot; &gt;Link Title&lt;/label&gt;&lt;br /&gt;
</span></span></pre>
</div>
</div>

</body>
</html>