Ticket #10738: add-new-context.diff
| File add-new-context.diff, 6.3 KB (added by , 17 years ago) |
|---|
-
wp-includes/l10n.php
207 207 return esc_attr( translate_with_gettext_context( $single, $context, $domain ) ); 208 208 } 209 209 210 function esc_html_x( $single, $context, $domain = 'default' ) { 211 return esc_html( translate_with_gettext_context( $single, $context, $domain ) ); 212 } 213 210 214 function __ngettext() { 211 215 _deprecated_function( __FUNCTION__, '2.8', '_n()' ); 212 216 $args = func_get_args(); -
wp-admin/users.php
239 239 240 240 <div class="wrap"> 241 241 <?php screen_icon(); ?> 242 <h2><?php echo esc_html( $title ); ?> <a href="user-new.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a> <?php242 <h2><?php echo esc_html( $title ); ?> <a href="user-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'user'); ?></a> <?php 243 243 if ( isset($_GET['usersearch']) && $_GET['usersearch'] ) 244 244 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $_GET['usersearch'] ) ); ?> 245 245 </h2> -
wp-admin/includes/media.php
1597 1597 <?php _e('Sort Order:'); ?> 1598 1598 <a href="#" id="asc"><?php _e('Ascending'); ?></a> | 1599 1599 <a href="#" id="desc"><?php _e('Descending'); ?></a> | 1600 <a href="#" id="clear"><?php _e('Clear'); ?></a>1600 <a href="#" id="clear"><?php echo _x('Clear', 'verb'); ?></a> 1601 1601 </div> 1602 1602 <form enctype="multipart/form-data" method="post" action="<?php echo esc_attr($form_action_url); ?>" class="media-upload-form validate" id="gallery-form"> 1603 1603 <?php wp_nonce_field('media-form'); ?> -
wp-admin/upload.php
195 195 196 196 <div class="wrap"> 197 197 <?php screen_icon(); ?> 198 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a> <?php198 <h2><?php echo esc_html( $title ); ?> <a href="media-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> <?php 199 199 if ( isset($_GET['s']) && $_GET['s'] ) 200 200 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?> 201 201 </h2> -
wp-admin/menu.php
70 70 $menu[60] = array( __('Appearance'), 'switch_themes', 'themes.php', '', 'menu-top', 'menu-appearance', 'div' ); 71 71 $submenu['themes.php'][5] = array(__('Themes'), 'switch_themes', 'themes.php'); 72 72 $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php'); 73 $submenu['themes.php'][15] = array(_ _('Add New Themes'), 'install_themes', 'theme-install.php');73 $submenu['themes.php'][15] = array(_x('Add New', 'theme'), 'install_themes', 'theme-install.php'); 74 74 75 75 $update_plugins = get_transient( 'update_plugins' ); 76 76 $update_count = 0; … … 91 91 if ( current_user_can('edit_users') ) { 92 92 $_wp_real_parent_file['profile.php'] = 'users.php'; // Back-compat for plugins adding submenus to profile.php. 93 93 $submenu['users.php'][5] = array(__('Authors & Users'), 'edit_users', 'users.php'); 94 $submenu['users.php'][10] = array(_ _('Add New'), 'create_users', 'user-new.php');94 $submenu['users.php'][10] = array(_x('Add New', 'user'), 'create_users', 'user-new.php'); 95 95 $submenu['users.php'][15] = array(__('Your Profile'), 'read', 'profile.php'); 96 96 } else { 97 97 $_wp_real_parent_file['users.php'] = 'profile.php'; -
wp-admin/plugins.php
270 270 271 271 <div class="wrap"> 272 272 <?php screen_icon(); ?> 273 <h2><?php echo esc_html( $title ); ?> <a href="plugin-install.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a></h2>273 <h2><?php echo esc_html( $title ); ?> <a href="plugin-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a></h2> 274 274 275 275 <?php 276 276 -
wp-admin/edit.php
134 134 135 135 <div class="wrap"> 136 136 <?php screen_icon(); ?> 137 <h2><?php echo esc_html( $title ); ?> <a href="post-new.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a> <?php137 <h2><?php echo esc_html( $title ); ?> <a href="post-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'post'); ?></a> <?php 138 138 if ( isset($_GET['s']) && $_GET['s'] ) 139 139 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?> 140 140 </h2> -
wp-admin/edit-pages.php
138 138 139 139 <div class="wrap"> 140 140 <?php screen_icon(); ?> 141 <h2><?php echo esc_html( $title ); ?> <a href="page-new.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a> <?php141 <h2><?php echo esc_html( $title ); ?> <a href="page-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'page'); ?></a> <?php 142 142 if ( isset($_GET['s']) && $_GET['s'] ) 143 143 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?> 144 144 </h2> -
wp-admin/themes.php
127 127 128 128 <div class="wrap"> 129 129 <?php screen_icon(); ?> 130 <h2><?php echo esc_html( $title ); ?> <a href="theme-install.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a></h2>130 <h2><?php echo esc_html( $title ); ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a></h2> 131 131 132 132 <h3><?php _e('Current Theme'); ?></h3> 133 133 <div id="current-theme">