<!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>[14647] trunk: Introduce _ex(), a hybrid between _e() and _x()
  -- translate with context, then echo.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14647">14647</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-05-14 21:46:25 +0000 (Fri, 14 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Introduce _ex(), a hybrid between _e() and _x() -- translate with context, then echo. props westi, see <a href="http://trac.wordpress.org/ticket/13395">#13395</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincommentphp">trunk/wp-admin/comment.php</a></li>
<li><a href="#trunkwpadmineditcommentsphp">trunk/wp-admin/edit-comments.php</a></li>
<li><a href="#trunkwpadmineditformcommentphp">trunk/wp-admin/edit-form-comment.php</a></li>
<li><a href="#trunkwpadminedittagformphp">trunk/wp-admin/edit-tag-form.php</a></li>
<li><a href="#trunkwpadminedittagsphp">trunk/wp-admin/edit-tags.php</a></li>
<li><a href="#trunkwpadminincludesmediaphp">trunk/wp-admin/includes/media.php</a></li>
<li><a href="#trunkwpadminincludesplugininstallphp">trunk/wp-admin/includes/plugin-install.php</a></li>
<li><a href="#trunkwpadminincludestemplatephp">trunk/wp-admin/includes/template.php</a></li>
<li><a href="#trunkwpadminincludesthemeinstallphp">trunk/wp-admin/includes/theme-install.php</a></li>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
<li><a href="#trunkwpadminmsusersphp">trunk/wp-admin/ms-users.php</a></li>
<li><a href="#trunkwpadminthemeeditorphp">trunk/wp-admin/theme-editor.php</a></li>
<li><a href="#trunkwpadminuploadphp">trunk/wp-admin/upload.php</a></li>
<li><a href="#trunkwpincludesl10nphp">trunk/wp-includes/l10n.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincommentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/comment.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/comment.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/comment.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -159,7 +159,7 @@
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;?php } ?&gt;
</span><span class="cx"> &lt;tr&gt;
</span><del>-&lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;?php /* translators: field name in comment form */ echo _x('Comment', 'noun'); ?&gt;&lt;/th&gt;
</del><ins>+&lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;?php /* translators: field name in comment form */ _ex('Comment', 'noun'); ?&gt;&lt;/th&gt;
</ins><span class="cx"> &lt;td&gt;&lt;?php echo $comment-&gt;comment_content; ?&gt;&lt;/td&gt;
</span><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;/table&gt;
</span></span></pre></div>
<a id="trunkwpadmineditcommentsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-comments.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-comments.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/edit-comments.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -316,12 +316,12 @@
</span><span class="cx"> &lt;option value=&quot;approve&quot;&gt;&lt;?php _e('Approve'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?&gt;
</span><del>-&lt;option value=&quot;spam&quot;&gt;&lt;?php echo _x('Mark as Spam', 'comment'); ?&gt;&lt;/option&gt;
</del><ins>+&lt;option value=&quot;spam&quot;&gt;&lt;?php _ex('Mark as Spam', 'comment'); ?&gt;&lt;/option&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;?php if ( 'trash' == $comment_status ): ?&gt;
</span><span class="cx"> &lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php elseif ( 'spam' == $comment_status ): ?&gt;
</span><del>-&lt;option value=&quot;unspam&quot;&gt;&lt;?php echo _x('Not Spam', 'comment'); ?&gt;&lt;/option&gt;
</del><ins>+&lt;option value=&quot;unspam&quot;&gt;&lt;?php _ex('Not Spam', 'comment'); ?&gt;&lt;/option&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;?php if ( 'trash' == $comment_status || 'spam' == $comment_status || !EMPTY_TRASH_DAYS ): ?&gt;
</span><span class="cx"> &lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
</span><span class="lines">@@ -416,7 +416,7 @@
</span><span class="cx"> &lt;option value=&quot;approve&quot;&gt;&lt;?php _e('Approve'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;?php if ( 'all' == $comment_status || 'approved' == $comment_status || 'moderated' == $comment_status ): ?&gt;
</span><del>-&lt;option value=&quot;spam&quot;&gt;&lt;?php echo _x('Mark as Spam', 'comment'); ?&gt;&lt;/option&gt;
</del><ins>+&lt;option value=&quot;spam&quot;&gt;&lt;?php _ex('Mark as Spam', 'comment'); ?&gt;&lt;/option&gt;
</ins><span class="cx"> &lt;?php endif; ?&gt;
</span><span class="cx"> &lt;?php if ( 'trash' == $comment_status ): ?&gt;
</span><span class="cx"> &lt;option value=&quot;untrash&quot;&gt;&lt;?php _e('Restore'); ?&gt;&lt;/option&gt;
</span><span class="lines">@@ -424,7 +424,7 @@
</span><span class="cx"> &lt;?php if ( 'trash' == $comment_status || 'spam' == $comment_status || !EMPTY_TRASH_DAYS ): ?&gt;
</span><span class="cx"> &lt;option value=&quot;delete&quot;&gt;&lt;?php _e('Delete Permanently'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php elseif ( 'spam' == $comment_status ): ?&gt;
</span><del>-&lt;option value=&quot;unspam&quot;&gt;&lt;?php echo _x('Not Spam', 'comment'); ?&gt;&lt;/option&gt;
</del><ins>+&lt;option value=&quot;unspam&quot;&gt;&lt;?php _ex('Not Spam', 'comment'); ?&gt;&lt;/option&gt;
</ins><span class="cx"> &lt;?php else: ?&gt;
</span><span class="cx"> &lt;option value=&quot;trash&quot;&gt;&lt;?php _e('Move to Trash'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkwpadmineditformcommentphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-form-comment.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-form-comment.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/edit-form-comment.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -47,9 +47,9 @@
</span><span class="cx"> &lt;div id=&quot;misc-publishing-actions&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;misc-pub-section&quot; id=&quot;comment-status-radio&quot;&gt;
</span><del>-&lt;label class=&quot;approved&quot;&gt;&lt;input type=&quot;radio&quot;&lt;?php checked( $comment-&gt;comment_approved, '1' ); ?&gt; name=&quot;comment_status&quot; value=&quot;1&quot; /&gt;&lt;?php /* translators: comment type radio button */ echo _x('Approved', 'adjective') ?&gt;&lt;/label&gt;&lt;br /&gt;
-&lt;label class=&quot;waiting&quot;&gt;&lt;input type=&quot;radio&quot;&lt;?php checked( $comment-&gt;comment_approved, '0' ); ?&gt; name=&quot;comment_status&quot; value=&quot;0&quot; /&gt;&lt;?php /* translators: comment type radio button */ echo _x('Pending', 'adjective') ?&gt;&lt;/label&gt;&lt;br /&gt;
-&lt;label class=&quot;spam&quot;&gt;&lt;input type=&quot;radio&quot;&lt;?php checked( $comment-&gt;comment_approved, 'spam' ); ?&gt; name=&quot;comment_status&quot; value=&quot;spam&quot; /&gt;&lt;?php /* translators: comment type radio button */ echo _x('Spam', 'adjective'); ?&gt;&lt;/label&gt;
</del><ins>+&lt;label class=&quot;approved&quot;&gt;&lt;input type=&quot;radio&quot;&lt;?php checked( $comment-&gt;comment_approved, '1' ); ?&gt; name=&quot;comment_status&quot; value=&quot;1&quot; /&gt;&lt;?php /* translators: comment type radio button */ _ex('Approved', 'adjective') ?&gt;&lt;/label&gt;&lt;br /&gt;
+&lt;label class=&quot;waiting&quot;&gt;&lt;input type=&quot;radio&quot;&lt;?php checked( $comment-&gt;comment_approved, '0' ); ?&gt; name=&quot;comment_status&quot; value=&quot;0&quot; /&gt;&lt;?php /* translators: comment type radio button */ _ex('Pending', 'adjective') ?&gt;&lt;/label&gt;&lt;br /&gt;
+&lt;label class=&quot;spam&quot;&gt;&lt;input type=&quot;radio&quot;&lt;?php checked( $comment-&gt;comment_approved, 'spam' ); ?&gt; name=&quot;comment_status&quot; value=&quot;spam&quot; /&gt;&lt;?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?&gt;&lt;/label&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;misc-pub-section curtime misc-pub-section-last&quot;&gt;
</span></span></pre></div>
<a id="trunkwpadminedittagformphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tag-form.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tag-form.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/edit-tag-form.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -33,20 +33,20 @@
</span><span class="cx"> &lt;?php wp_original_referer_field(true, 'previous'); wp_nonce_field('update-tag_' . $tag_ID); ?&gt;
</span><span class="cx">         &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                 &lt;tr class=&quot;form-field form-required&quot;&gt;
</span><del>-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;name&quot;&gt;&lt;?php echo _x('Name', 'Taxonomy Name'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</del><ins>+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;name&quot;&gt;&lt;?php _ex('Name', 'Taxonomy Name'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                         &lt;td&gt;&lt;input name=&quot;name&quot; id=&quot;name&quot; type=&quot;text&quot; value=&quot;&lt;?php if ( isset( $tag-&gt;name ) ) echo esc_attr($tag-&gt;name); ?&gt;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
</span><span class="cx">                         &lt;p class=&quot;description&quot;&gt;&lt;?php _e('The name is how it appears on your site.'); ?&gt;&lt;/p&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><span class="cx"> &lt;?php if ( !global_terms_enabled() ) { ?&gt;
</span><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><del>-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;slug&quot;&gt;&lt;?php echo _x('Slug', 'Taxonomy Slug'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</del><ins>+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;slug&quot;&gt;&lt;?php _ex('Slug', 'Taxonomy Slug'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                         &lt;td&gt;&lt;input name=&quot;slug&quot; id=&quot;slug&quot; type=&quot;text&quot; value=&quot;&lt;?php if ( isset( $tag-&gt;slug ) ) echo esc_attr(apply_filters('editable_slug', $tag-&gt;slug)); ?&gt;&quot; size=&quot;40&quot; /&gt;
</span><span class="cx">                         &lt;p class=&quot;description&quot;&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span><span class="cx"> &lt;?php } ?&gt;
</span><span class="cx"> &lt;?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?&gt;
</span><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><del>-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;parent&quot;&gt;&lt;?php echo _x('Parent', 'Taxonomy Parent'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</del><ins>+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;parent&quot;&gt;&lt;?php _ex('Parent', 'Taxonomy Parent'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                         &lt;td&gt;
</span><span class="cx">                                 &lt;?php wp_dropdown_categories(array('hide_empty' =&gt; 0, 'hide_if_empty' =&gt; false, 'name' =&gt; 'parent', 'orderby' =&gt; 'name', 'taxonomy' =&gt; $taxonomy, 'selected' =&gt; $tag-&gt;parent, 'exclude' =&gt; $tag-&gt;term_id, 'hierarchical' =&gt; true, 'show_option_none' =&gt; __('None'))); ?&gt;&lt;br /&gt;
</span><span class="cx">                                 &lt;?php if ( 'category' == $taxonomy ) : ?&gt;
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">                 &lt;/tr&gt;
</span><span class="cx"> &lt;?php endif; // is_taxonomy_hierarchical() ?&gt;
</span><span class="cx">                 &lt;tr class=&quot;form-field&quot;&gt;
</span><del>-                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;description&quot;&gt;&lt;?php echo _x('Description', 'Taxonomy Description'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</del><ins>+                        &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;description&quot;&gt;&lt;?php _ex('Description', 'Taxonomy Description'); ?&gt;&lt;/label&gt;&lt;/th&gt;
</ins><span class="cx">                         &lt;td&gt;&lt;textarea name=&quot;description&quot; id=&quot;description&quot; rows=&quot;5&quot; cols=&quot;50&quot; style=&quot;width: 97%;&quot;&gt;&lt;?php echo esc_html($tag-&gt;description); ?&gt;&lt;/textarea&gt;&lt;br /&gt;
</span><span class="cx">                         &lt;span class=&quot;description&quot;&gt;&lt;?php _e('The description is not prominent by default, however some themes may show it.'); ?&gt;&lt;/span&gt;&lt;/td&gt;
</span><span class="cx">                 &lt;/tr&gt;
</span></span></pre></div>
<a id="trunkwpadminedittagsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-tags.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-tags.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/edit-tags.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -348,20 +348,20 @@
</span><span class="cx"> &lt;?php wp_nonce_field('add-tag'); ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;form-field form-required&quot;&gt;
</span><del>-        &lt;label for=&quot;tag-name&quot;&gt;&lt;?php echo _x('Name', 'Taxonomy Name'); ?&gt;&lt;/label&gt;
</del><ins>+        &lt;label for=&quot;tag-name&quot;&gt;&lt;?php _ex('Name', 'Taxonomy Name'); ?&gt;&lt;/label&gt;
</ins><span class="cx">         &lt;input name=&quot;tag-name&quot; id=&quot;tag-name&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; aria-required=&quot;true&quot; /&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The name is how it appears on your site.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php if ( ! global_terms_enabled() ) : ?&gt;
</span><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><del>-        &lt;label for=&quot;tag-slug&quot;&gt;&lt;?php echo _x('Slug', 'Taxonomy Slug'); ?&gt;&lt;/label&gt;
</del><ins>+        &lt;label for=&quot;tag-slug&quot;&gt;&lt;?php _ex('Slug', 'Taxonomy Slug'); ?&gt;&lt;/label&gt;
</ins><span class="cx">         &lt;input name=&quot;slug&quot; id=&quot;tag-slug&quot; type=&quot;text&quot; value=&quot;&quot; size=&quot;40&quot; /&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The &amp;#8220;slug&amp;#8221; is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php endif; // is_multisite() ?&gt;
</span><span class="cx"> &lt;?php if ( is_taxonomy_hierarchical($taxonomy) ) : ?&gt;
</span><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><del>-        &lt;label for=&quot;parent&quot;&gt;&lt;?php echo _x('Parent', 'Taxonomy Parent'); ?&gt;&lt;/label&gt;
</del><ins>+        &lt;label for=&quot;parent&quot;&gt;&lt;?php _ex('Parent', 'Taxonomy Parent'); ?&gt;&lt;/label&gt;
</ins><span class="cx">         &lt;?php wp_dropdown_categories(array('hide_empty' =&gt; 0, 'hide_if_empty' =&gt; false, 'taxonomy' =&gt; $taxonomy, 'name' =&gt; 'parent', 'orderby' =&gt; 'name', 'hierarchical' =&gt; true, 'show_option_none' =&gt; __('None'))); ?&gt;
</span><span class="cx">         &lt;?php if ( 'category' == $taxonomy ) : // @todo: Generic text for hierarchical taxonomies ?&gt;
</span><span class="cx">                 &lt;p&gt;&lt;?php _e('Categories, unlike tags, can have a hierarchy. You might have a Jazz category, and under that have children categories for Bebop and Big Band. Totally optional.'); ?&gt;&lt;/p&gt;
</span><span class="lines">@@ -369,7 +369,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;?php endif; // is_taxonomy_hierarchical() ?&gt;
</span><span class="cx"> &lt;div class=&quot;form-field&quot;&gt;
</span><del>-        &lt;label for=&quot;tag-description&quot;&gt;&lt;?php echo _x('Description', 'Taxonomy Description'); ?&gt;&lt;/label&gt;
</del><ins>+        &lt;label for=&quot;tag-description&quot;&gt;&lt;?php _ex('Description', 'Taxonomy Description'); ?&gt;&lt;/label&gt;
</ins><span class="cx">         &lt;textarea name=&quot;description&quot; id=&quot;tag-description&quot; rows=&quot;5&quot; cols=&quot;40&quot;&gt;&lt;/textarea&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php _e('The description is not prominent by default; however, some themes may show it.'); ?&gt;&lt;/p&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesmediaphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/media.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/media.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/includes/media.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -1719,7 +1719,7 @@
</span><span class="cx"> &lt;?php _e('Sort Order:'); ?&gt;
</span><span class="cx"> &lt;a href=&quot;#&quot; id=&quot;asc&quot;&gt;&lt;?php _e('Ascending'); ?&gt;&lt;/a&gt; |
</span><span class="cx"> &lt;a href=&quot;#&quot; id=&quot;desc&quot;&gt;&lt;?php _e('Descending'); ?&gt;&lt;/a&gt; |
</span><del>-&lt;a href=&quot;#&quot; id=&quot;clear&quot;&gt;&lt;?php echo _x('Clear', 'verb'); ?&gt;&lt;/a&gt;
</del><ins>+&lt;a href=&quot;#&quot; id=&quot;clear&quot;&gt;&lt;?php _ex('Clear', 'verb'); ?&gt;&lt;/a&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;form enctype=&quot;multipart/form-data&quot; method=&quot;post&quot; action=&quot;&lt;?php echo esc_attr($form_action_url); ?&gt;&quot; class=&quot;media-upload-form validate&quot; id=&quot;gallery-form&quot;&gt;
</span><span class="cx"> &lt;?php wp_nonce_field('media-form'); ?&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesplugininstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/plugin-install.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/plugin-install.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/includes/plugin-install.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -169,7 +169,7 @@
</span><span class="cx">                 &lt;select name=&quot;type&quot; id=&quot;typeselector&quot;&gt;
</span><span class="cx">                         &lt;option value=&quot;term&quot;&lt;?php selected('term', $type) ?&gt;&gt;&lt;?php _e('Term'); ?&gt;&lt;/option&gt;
</span><span class="cx">                         &lt;option value=&quot;author&quot;&lt;?php selected('author', $type) ?&gt;&gt;&lt;?php _e('Author'); ?&gt;&lt;/option&gt;
</span><del>-                        &lt;option value=&quot;tag&quot;&lt;?php selected('tag', $type) ?&gt;&gt;&lt;?php echo _x('Tag', 'Plugin Installer'); ?&gt;&lt;/option&gt;
</del><ins>+                        &lt;option value=&quot;tag&quot;&lt;?php selected('tag', $type) ?&gt;&gt;&lt;?php _ex('Tag', 'Plugin Installer'); ?&gt;&lt;/option&gt;
</ins><span class="cx">                 &lt;/select&gt;
</span><span class="cx">                 &lt;input type=&quot;text&quot; name=&quot;s&quot; value=&quot;&lt;?php echo esc_attr($term) ?&gt;&quot; /&gt;
</span><span class="cx">                 &lt;label class=&quot;screen-reader-text&quot; for=&quot;plugin-search-input&quot;&gt;&lt;?php _e('Search Plugins'); ?&gt;&lt;/label&gt;
</span></span></pre></div>
<a id="trunkwpadminincludestemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/template.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/template.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/includes/template.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -3602,7 +3602,7 @@
</span><span class="cx"> &lt;div id=&quot;screen-options-wrap&quot; class=&quot;hidden&quot;&gt;
</span><span class="cx">         &lt;form id=&quot;adv-settings&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
</span><span class="cx">         &lt;?php if ( isset($wp_meta_boxes[$screen-&gt;id]) ) : ?&gt;
</span><del>-                &lt;h5&gt;&lt;?php echo _x('Show on screen', 'Metaboxes') ?&gt;&lt;/h5&gt;
</del><ins>+                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes') ?&gt;&lt;/h5&gt;
</ins><span class="cx">                 &lt;div class=&quot;metabox-prefs&quot;&gt;
</span><span class="cx">                         &lt;?php meta_box_prefs($screen); ?&gt;
</span><span class="cx">                         &lt;br class=&quot;clear&quot; /&gt;
</span></span></pre></div>
<a id="trunkwpadminincludesthemeinstallphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/theme-install.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/theme-install.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/includes/theme-install.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -156,7 +156,7 @@
</span><span class="cx">         &lt;select        name=&quot;type&quot; id=&quot;typeselector&quot;&gt;
</span><span class="cx">         &lt;option value=&quot;term&quot; &lt;?php selected('term', $type) ?&gt;&gt;&lt;?php _e('Term'); ?&gt;&lt;/option&gt;
</span><span class="cx">         &lt;option value=&quot;author&quot; &lt;?php selected('author', $type) ?&gt;&gt;&lt;?php _e('Author'); ?&gt;&lt;/option&gt;
</span><del>-        &lt;option value=&quot;tag&quot; &lt;?php selected('tag', $type) ?&gt;&gt;&lt;?php echo _x('Tag', 'Theme Installer'); ?&gt;&lt;/option&gt;
</del><ins>+        &lt;option value=&quot;tag&quot; &lt;?php selected('tag', $type) ?&gt;&gt;&lt;?php _ex('Tag', 'Theme Installer'); ?&gt;&lt;/option&gt;
</ins><span class="cx">         &lt;/select&gt;
</span><span class="cx">         &lt;input type=&quot;text&quot; name=&quot;s&quot; size=&quot;30&quot; value=&quot;&lt;?php echo esc_attr($term) ?&gt;&quot; /&gt;
</span><span class="cx">         &lt;input type=&quot;submit&quot; name=&quot;search&quot; value=&quot;&lt;?php esc_attr_e('Search'); ?&gt;&quot; class=&quot;button&quot; /&gt;
</span></span></pre></div>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/ms-sites.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -113,7 +113,7 @@
</span><span class="cx">                                                         &lt;?php } ?&gt;
</span><span class="cx">                                                 &lt;/tr&gt;
</span><span class="cx">                                                 &lt;tr class=&quot;form-field&quot;&gt;
</span><del>-                                                        &lt;th scope=&quot;row&quot;&gt;&lt;?php echo _x( 'Registered', 'site' ) ?&gt;&lt;/th&gt;
</del><ins>+                                                        &lt;th scope=&quot;row&quot;&gt;&lt;?php _ex( 'Registered', 'site' ) ?&gt;&lt;/th&gt;
</ins><span class="cx">                                                         &lt;td&gt;&lt;input name=&quot;blog[registered]&quot; type=&quot;text&quot; id=&quot;blog_registered&quot; value=&quot;&lt;?php echo esc_attr( $details-&gt;registered ) ?&gt;&quot; size=&quot;40&quot; /&gt;&lt;/td&gt;
</span><span class="cx">                                                 &lt;/tr&gt;
</span><span class="cx">                                                 &lt;tr class=&quot;form-field&quot;&gt;
</span><span class="lines">@@ -414,8 +414,8 @@
</span><span class="cx">                         &lt;select name=&quot;action&quot;&gt;
</span><span class="cx">                                 &lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e( 'Bulk Actions' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                                 &lt;option value=&quot;delete&quot;&gt;&lt;?php _e( 'Delete' ); ?&gt;&lt;/option&gt;
</span><del>-                                &lt;option value=&quot;spam&quot;&gt;&lt;?php echo _x( 'Mark as Spam', 'site' ); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php echo _x( 'Not Spam', 'site' ); ?&gt;&lt;/option&gt;
</del><ins>+                                &lt;option value=&quot;spam&quot;&gt;&lt;?php _ex( 'Mark as Spam', 'site' ); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'site' ); ?&gt;&lt;/option&gt;
</ins><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                         &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Apply' ); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
</span><span class="cx">                         &lt;?php wp_nonce_field( 'bulk-ms-sites' ); ?&gt;
</span><span class="lines">@@ -665,8 +665,8 @@
</span><span class="cx">                         &lt;select name=&quot;action2&quot;&gt;
</span><span class="cx">                                 &lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e( 'Bulk Actions' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                                 &lt;option value=&quot;delete&quot;&gt;&lt;?php _e( 'Delete' ); ?&gt;&lt;/option&gt;
</span><del>-                                &lt;option value=&quot;spam&quot;&gt;&lt;?php echo _x( 'Mark as Spam', 'site' ); ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php echo _x( 'Not Spam', 'site' ); ?&gt;&lt;/option&gt;
</del><ins>+                                &lt;option value=&quot;spam&quot;&gt;&lt;?php _ex( 'Mark as Spam', 'site' ); ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'site' ); ?&gt;&lt;/option&gt;
</ins><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                         &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Apply' ); ?&gt;&quot; name=&quot;doaction2&quot; id=&quot;doaction2&quot; class=&quot;button-secondary action&quot; /&gt;
</span><span class="cx">                         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminmsusersphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-users.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-users.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/ms-users.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -130,8 +130,8 @@
</span><span class="cx">                                 &lt;select name=&quot;action&quot;&gt;
</span><span class="cx">                                         &lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e( 'Bulk Actions' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                                         &lt;option value=&quot;delete&quot;&gt;&lt;?php _e( 'Delete' ); ?&gt;&lt;/option&gt;
</span><del>-                                        &lt;option value=&quot;spam&quot;&gt;&lt;?php echo _x( 'Mark as Spam', 'user' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;notspam&quot;&gt;&lt;?php echo _x( 'Not Spam', 'user' ); ?&gt;&lt;/option&gt;
</del><ins>+                                        &lt;option value=&quot;spam&quot;&gt;&lt;?php _ex( 'Mark as Spam', 'user' ); ?&gt;&lt;/option&gt;
+                                        &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'user' ); ?&gt;&lt;/option&gt;
</ins><span class="cx">                                 &lt;/select&gt;
</span><span class="cx">                                 &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Apply' ); ?&gt;&quot; name=&quot;doaction&quot; id=&quot;doaction&quot; class=&quot;button-secondary action&quot; /&gt;
</span><span class="cx">                                 &lt;?php wp_nonce_field( 'bulk-ms-users' ); ?&gt;
</span><span class="lines">@@ -324,8 +324,8 @@
</span><span class="cx">                                 &lt;select name=&quot;action2&quot;&gt;
</span><span class="cx">                                         &lt;option value=&quot;-1&quot; selected=&quot;selected&quot;&gt;&lt;?php _e( 'Bulk Actions' ); ?&gt;&lt;/option&gt;
</span><span class="cx">                                         &lt;option value=&quot;delete&quot;&gt;&lt;?php _e( 'Delete' ); ?&gt;&lt;/option&gt;
</span><del>-                                        &lt;option value=&quot;spam&quot;&gt;&lt;?php echo _x( 'Mark as Spam', 'user' ); ?&gt;&lt;/option&gt;
-                                        &lt;option value=&quot;notspam&quot;&gt;&lt;?php echo _x( 'Not Spam', 'user' ); ?&gt;&lt;/option&gt;
</del><ins>+                                        &lt;option value=&quot;spam&quot;&gt;&lt;?php _ex( 'Mark as Spam', 'user' ); ?&gt;&lt;/option&gt;
+                                        &lt;option value=&quot;notspam&quot;&gt;&lt;?php _ex( 'Not Spam', 'user' ); ?&gt;&lt;/option&gt;
</ins><span class="cx">                                 &lt;/select&gt;
</span><span class="cx">                                 &lt;input type=&quot;submit&quot; value=&quot;&lt;?php esc_attr_e( 'Apply' ); ?&gt;&quot; name=&quot;doaction2&quot; id=&quot;doaction2&quot; class=&quot;button-secondary action&quot; /&gt;
</span><span class="cx">                         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkwpadminthemeeditorphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/theme-editor.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/theme-editor.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/theme-editor.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -172,7 +172,7 @@
</span><span class="cx">                 &lt;li&gt;&lt;a href=&quot;theme-editor.php?file=&lt;?php echo &quot;$template_file&quot;; ?&gt;&amp;amp;theme=&lt;?php echo urlencode($theme) ?&gt;&amp;amp;dir=theme&quot;&gt;&lt;?php echo $filedesc ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><span class="cx"> &lt;?php endwhile; ?&gt;
</span><span class="cx">         &lt;/ul&gt;
</span><del>-        &lt;h3&gt;&lt;?php /* translators: Theme stylesheets in theme editor */ echo _x('Styles', 'Theme stylesheets in theme editor'); ?&gt;&lt;/h3&gt;
</del><ins>+        &lt;h3&gt;&lt;?php /* translators: Theme stylesheets in theme editor */ _ex('Styles', 'Theme stylesheets in theme editor'); ?&gt;&lt;/h3&gt;
</ins><span class="cx">         &lt;ul&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx">         $template_mapping = array();
</span></span></pre></div>
<a id="trunkwpadminuploadphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/upload.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/upload.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-admin/upload.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -363,9 +363,9 @@
</span><span class="cx"> &lt;tr&gt;
</span><span class="cx">         &lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; /&gt;&lt;/th&gt;
</span><span class="cx">         &lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
</span><del>-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ echo _x('Date Added', 'media column name'); ?&gt;&lt;/th&gt;
</del><ins>+        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Media', 'media column name'); ?&gt;&lt;/th&gt;
+        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Author', 'media column name'); ?&gt;&lt;/th&gt;
+        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Date Added', 'media column name'); ?&gt;&lt;/th&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;/thead&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -373,9 +373,9 @@
</span><span class="cx"> &lt;tr&gt;
</span><span class="cx">         &lt;th scope=&quot;col&quot; class=&quot;check-column&quot;&gt;&lt;input type=&quot;checkbox&quot; /&gt;&lt;/th&gt;
</span><span class="cx">         &lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
</span><del>-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?&gt;&lt;/th&gt;
-        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ echo _x('Date Added', 'media column name'); ?&gt;&lt;/th&gt;
</del><ins>+        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Media', 'media column name'); ?&gt;&lt;/th&gt;
+        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Author', 'media column name'); ?&gt;&lt;/th&gt;
+        &lt;th scope=&quot;col&quot;&gt;&lt;?php /* translators: column name in media */ _ex('Date Added', 'media column name'); ?&gt;&lt;/th&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><span class="cx"> &lt;/tfoot&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesl10nphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/l10n.php (14646 => 14647)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/l10n.php        2010-05-14 21:22:14 UTC (rev 14646)
+++ trunk/wp-includes/l10n.php        2010-05-14 21:46:25 UTC (rev 14647)
</span><span class="lines">@@ -190,6 +190,21 @@
</span><span class="cx">         return translate_with_gettext_context( $single, $context, $domain );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * Displays translated string with gettext context
+ * 
+ * @see _x
+ * @since 3.0.0
+ *
+ * @param string $text Text to translate
+ * @param string $context Context information for the translators
+ * @param string $domain Optional. Domain to retrieve the translated text
+ * @return string Translated context string without pipe
+ */
+function _ex( $single, $context, $domain = 'default' ) {
+        echo _x( $single, $context, $domain );
+}
+
</ins><span class="cx"> function esc_attr_x( $single, $context, $domain = 'default' ) {
</span><span class="cx">         return esc_attr( translate_with_gettext_context( $single, $context, $domain ) );
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>