diff --git src/wp-admin/includes/class-custom-background.php src/wp-admin/includes/class-custom-background.php
index 49bd29fb0e..dcdfa87b94 100644
|
|
class Custom_Background { |
230 | 230 | <p> |
231 | 231 | <?php |
232 | 232 | printf( |
| 233 | /* translators: 1: Customizer for custom background image URL */ |
233 | 234 | __( 'You can now manage and live-preview Custom Backgrounds in the <a href="%1$s">Customizer</a>.' ), |
234 | 235 | admin_url( 'customize.php?autofocus[control]=background_image' ) |
235 | 236 | ); |
… |
… |
class Custom_Background { |
240 | 241 | |
241 | 242 | <?php if ( ! empty( $this->updated ) ) { ?> |
242 | 243 | <div id="message" class="updated"> |
243 | | <p><?php printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> |
| 244 | <p> |
| 245 | <?php |
| 246 | /* translators: %s: Home URL */ |
| 247 | printf( __( 'Background updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); |
| 248 | ?> |
| 249 | </p> |
244 | 250 | </div> |
245 | 251 | <?php } ?> |
246 | 252 | |
diff --git src/wp-admin/includes/class-custom-image-header.php src/wp-admin/includes/class-custom-image-header.php
index 9a2f652331..9b4ee1ba45 100644
|
|
class Custom_Image_Header { |
118 | 118 | 'id' => 'set-header-text', |
119 | 119 | 'title' => __( 'Header Text' ), |
120 | 120 | 'content' => |
121 | | '<p>' . sprintf( __( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%1$s">General Settings</a> section.' ), admin_url( 'options-general.php' ) ) . '<p>' . |
| 121 | '<p>' . sprintf( |
| 122 | /* translators: 1: General settings URL */ |
| 123 | __( 'For most themes, the header text is your Site Title and Tagline, as defined in the <a href="%1$s">General Settings</a> section.' ), |
| 124 | admin_url( 'options-general.php' ) |
| 125 | ) . |
| 126 | '</p>' . |
122 | 127 | '<p>' . __( 'In the Header Text section of this page, you can choose whether to display this text or hide it. You can also choose a color for the text by clicking the Select Color button and either typing in a legitimate HTML hex value, e.g. “#ff0000” for red, or by choosing a color using the color picker.' ) . '</p>' . |
123 | 128 | '<p>' . __( 'Don’t forget to click “Save Changes” when you’re done!' ) . '</p>', |
124 | 129 | ) |
… |
… |
class Custom_Image_Header { |
474 | 479 | <p> |
475 | 480 | <?php |
476 | 481 | printf( |
| 482 | /* translators: 1: Customizer for custom image header URL */ |
477 | 483 | __( 'You can now manage and live-preview Custom Header in the <a href="%1$s">Customizer</a>.' ), |
478 | 484 | admin_url( 'customize.php?autofocus[control]=header_image' ) |
479 | 485 | ); |
… |
… |
class Custom_Image_Header { |
484 | 490 | |
485 | 491 | <?php if ( ! empty( $this->updated ) ) { ?> |
486 | 492 | <div id="message" class="updated"> |
487 | | <p><?php printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); ?></p> |
| 493 | <p> |
| 494 | <?php |
| 495 | /* translators: %s: Home URL */ |
| 496 | printf( __( 'Header updated. <a href="%s">Visit your site</a> to see how it looks.' ), home_url( '/' ) ); |
| 497 | ?> |
| 498 | </p> |
488 | 499 | </div> |
489 | 500 | <?php } ?> |
490 | 501 | |
… |
… |
class Custom_Image_Header { |
540 | 551 | <p><?php _e( 'You can select an image to be shown at the top of your site by uploading from your computer or choosing from your media library. After selecting an image you will be able to crop it.' ); ?><br /> |
541 | 552 | <?php |
542 | 553 | if ( ! current_theme_supports( 'custom-header', 'flex-height' ) && ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
| 554 | /* translators: 1: Custom header width, 2: Custom header height */ |
543 | 555 | printf( __( 'Images of exactly <strong>%1$d × %2$d pixels</strong> will be used as-is.' ) . '<br />', get_theme_support( 'custom-header', 'width' ), get_theme_support( 'custom-header', 'height' ) ); |
544 | 556 | } elseif ( current_theme_supports( 'custom-header', 'flex-height' ) ) { |
545 | 557 | if ( ! current_theme_supports( 'custom-header', 'flex-width' ) ) { |
… |
… |
class Custom_Image_Header { |
722 | 734 | |
723 | 735 | echo '<input type="text" name="text-color" id="text-color" value="' . esc_attr( $header_textcolor ) . '"' . $default_color_attr . ' />'; |
724 | 736 | if ( $default_color ) { |
| 737 | /* translators: %s: Default text color */ |
725 | 738 | echo ' <span class="description hide-if-js">' . sprintf( _x( 'Default: %s', 'color' ), esc_html( $default_color ) ) . '</span>'; |
726 | 739 | } |
727 | 740 | ?> |
diff --git src/wp-admin/includes/class-wp-posts-list-table.php src/wp-admin/includes/class-wp-posts-list-table.php
index 9be84ae2e5..9ae929aaa5 100644
|
|
class WP_Posts_List_Table extends WP_List_Table { |
305 | 305 | ); |
306 | 306 | |
307 | 307 | $mine_inner_html = sprintf( |
| 308 | /* translators: %s: User posts count */ |
308 | 309 | _nx( |
309 | 310 | 'Mine <span class="count">(%s)</span>', |
310 | 311 | 'Mine <span class="count">(%s)</span>', |
… |
… |
class WP_Posts_List_Table extends WP_List_Table { |
325 | 326 | } |
326 | 327 | |
327 | 328 | $all_inner_html = sprintf( |
| 329 | /* translators: %s: Total posts */ |
328 | 330 | _nx( |
329 | 331 | 'All <span class="count">(%s)</span>', |
330 | 332 | 'All <span class="count">(%s)</span>', |
… |
… |
class WP_Posts_List_Table extends WP_List_Table { |
374 | 376 | ); |
375 | 377 | |
376 | 378 | $sticky_inner_html = sprintf( |
| 379 | /* translators: %s: Sticky posts count */ |
377 | 380 | _nx( |
378 | 381 | 'Sticky <span class="count">(%s)</span>', |
379 | 382 | 'Sticky <span class="count">(%s)</span>', |
… |
… |
class WP_Posts_List_Table extends WP_List_Table { |
917 | 920 | if ( current_user_can( 'edit_post', $post->ID ) ) : |
918 | 921 | ?> |
919 | 922 | <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"> |
920 | | <?php printf( __( 'Select %s' ), _draft_or_post_title() ); ?> |
| 923 | <?php |
| 924 | /* translators: %s: Post title */ |
| 925 | printf( __( 'Select %s' ), _draft_or_post_title() ); |
| 926 | ?> |
921 | 927 | </label> |
922 | 928 | <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> |
923 | 929 | <div class="locked-indicator"> |
… |
… |
class WP_Posts_List_Table extends WP_List_Table { |
993 | 999 | if ( $lock_holder ) { |
994 | 1000 | $lock_holder = get_userdata( $lock_holder ); |
995 | 1001 | $locked_avatar = get_avatar( $lock_holder->ID, 18 ); |
| 1002 | /* translators: %s: Display name */ |
996 | 1003 | $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) ); |
997 | 1004 | } else { |
998 | 1005 | $locked_avatar = ''; |
… |
… |
class WP_Posts_List_Table extends WP_List_Table { |
1066 | 1073 | $time_diff = time() - $time; |
1067 | 1074 | |
1068 | 1075 | if ( $time_diff > 0 && $time_diff < DAY_IN_SECONDS ) { |
| 1076 | /* translators: %s: Time of last modification */ |
1069 | 1077 | $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) ); |
1070 | 1078 | } else { |
1071 | 1079 | $h_time = mysql2date( __( 'Y/m/d' ), $m_time ); |
diff --git src/wp-admin/includes/class-wp-privacy-policy-content.php src/wp-admin/includes/class-wp-privacy-policy-content.php
index 6e823d6692..3e3c3fec0f 100644
|
|
final class WP_Privacy_Policy_Content { |
386 | 386 | if ( ! empty( $section['removed'] ) ) { |
387 | 387 | $class = ' text-removed'; |
388 | 388 | $date = date_i18n( $date_format, $section['removed'] ); |
| 389 | /* translators: %s: Removed date */ |
389 | 390 | $meta = sprintf( __( 'Removed %s.' ), $date ); |
390 | 391 | |
391 | 392 | $removed = __( 'You deactivated this plugin on %s and may no longer need this policy.' ); |
… |
… |
final class WP_Privacy_Policy_Content { |
393 | 394 | } elseif ( ! empty( $section['updated'] ) ) { |
394 | 395 | $class = ' text-updated'; |
395 | 396 | $date = date_i18n( $date_format, $section['updated'] ); |
| 397 | /* translators: %s: Updated date */ |
396 | 398 | $meta = sprintf( __( 'Updated %s.' ), $date ); |
397 | 399 | } |
398 | 400 | |
… |
… |
final class WP_Privacy_Policy_Content { |
417 | 419 | $content .= '<div class="privacy-text-actions">'; |
418 | 420 | $content .= '<button type="button" class="privacy-text-copy button">'; |
419 | 421 | $content .= $copy; |
| 422 | /* translators: %s: Plugin name */ |
420 | 423 | $content .= '<span class="screen-reader-text">' . sprintf( __( 'Copy suggested policy text from %s.' ), $plugin_name ) . '</span>'; |
421 | 424 | $content .= '</button>'; |
422 | 425 | $content .= '</div>'; |
diff --git src/wp-admin/includes/class-wp-themes-list-table.php src/wp-admin/includes/class-wp-themes-list-table.php
index 5fc1496008..209865e131 100644
|
|
class WP_Themes_List_Table extends WP_List_Table { |
97 | 97 | $blog_id = get_current_blog_id(); |
98 | 98 | if ( is_multisite() ) { |
99 | 99 | if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) { |
| 100 | /* translators: 1: Site themes URL, 2: Site theme installer URL */ |
100 | 101 | printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ), network_admin_url( 'theme-install.php' ) ); |
101 | 102 | |
102 | 103 | return; |
103 | 104 | } elseif ( current_user_can( 'manage_network_themes' ) ) { |
| 105 | /* translators: 1: Site themes URL */ |
104 | 106 | printf( __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> more themes.' ), network_admin_url( 'site-themes.php?id=' . $blog_id ) ); |
105 | 107 | |
106 | 108 | return; |
… |
… |
class WP_Themes_List_Table extends WP_List_Table { |
108 | 110 | // Else, fallthrough. install_themes doesn't help if you can't enable it. |
109 | 111 | } else { |
110 | 112 | if ( current_user_can( 'install_themes' ) ) { |
| 113 | /* translators: %s: Themes URL */ |
111 | 114 | printf( __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ), admin_url( 'theme-install.php' ) ); |
112 | 115 | |
113 | 116 | return; |
114 | 117 | } |
115 | 118 | } |
116 | 119 | // Fallthrough. |
| 120 | /* translators: %s: Site name */ |
117 | 121 | printf( __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ), get_site_option( 'site_name' ) ); |
118 | 122 | } |
119 | 123 | |
… |
… |
class WP_Themes_List_Table extends WP_List_Table { |
187 | 191 | |
188 | 192 | $actions = array(); |
189 | 193 | $actions['activate'] = '<a href="' . $activate_link . '" class="activatelink" title="' |
| 194 | /* translators: %s: Theme name */ |
190 | 195 | . esc_attr( sprintf( __( 'Activate “%s”' ), $title ) ) . '">' . __( 'Activate' ) . '</a>'; |
191 | 196 | |
192 | 197 | if ( current_user_can( 'edit_theme_options' ) && current_user_can( 'customize' ) ) { |
… |
… |
class WP_Themes_List_Table extends WP_List_Table { |
196 | 201 | |
197 | 202 | if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) { |
198 | 203 | $actions['delete'] = '<a class="submitdelete deletion" href="' . wp_nonce_url( 'themes.php?action=delete&stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ) |
| 204 | /* translators: %s: Theme name */ |
199 | 205 | . '" onclick="' . "return confirm( '" . esc_js( sprintf( __( "You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete." ), $title ) ) |
200 | 206 | . "' );" . '">' . __( 'Delete' ) . '</a>'; |
201 | 207 | } |
… |
… |
class WP_Themes_List_Table extends WP_List_Table { |
223 | 229 | </a> |
224 | 230 | |
225 | 231 | <h3><?php echo $title; ?></h3> |
226 | | <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div> |
| 232 | <div class="theme-author"> |
| 233 | <?php |
| 234 | /* translators: %s: Theme author */ |
| 235 | printf( __( 'By %s' ), $author ); |
| 236 | ?> |
| 237 | </div> |
227 | 238 | <div class="action-links"> |
228 | 239 | <ul> |
229 | 240 | <?php foreach ( $actions as $action ) : ?> |
diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
index d45f1e2477..2f0f76848e 100644
|
|
function wp_dashboard_right_now() { |
269 | 269 | $num_posts = wp_count_posts( $post_type ); |
270 | 270 | if ( $num_posts && $num_posts->publish ) { |
271 | 271 | if ( 'post' == $post_type ) { |
| 272 | /* translators: %s: Number of posts */ |
272 | 273 | $text = _n( '%s Post', '%s Posts', $num_posts->publish ); |
273 | 274 | } else { |
| 275 | /* translators: %s: Number of pages */ |
274 | 276 | $text = _n( '%s Page', '%s Pages', $num_posts->publish ); |
275 | 277 | } |
276 | 278 | $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); |
… |
… |
function wp_dashboard_right_now() { |
285 | 287 | // Comments |
286 | 288 | $num_comm = wp_count_comments(); |
287 | 289 | if ( $num_comm && ( $num_comm->approved || $num_comm->moderated ) ) { |
| 290 | /* translators: %s: Number of approved comments */ |
288 | 291 | $text = sprintf( _n( '%s Comment', '%s Comments', $num_comm->approved ), number_format_i18n( $num_comm->approved ) ); |
289 | 292 | ?> |
290 | 293 | <li class="comment-count"><a href="edit-comments.php"><?php echo $text; ?></a></li> |
… |
… |
function wp_dashboard_browser_nag() { |
1495 | 1498 | |
1496 | 1499 | if ( $response ) { |
1497 | 1500 | if ( $response['insecure'] ) { |
1498 | | /* translators: %s: browser name and link */ |
1499 | 1501 | $msg = sprintf( |
| 1502 | /* translators: %s: browser name and link */ |
1500 | 1503 | __( "It looks like you're using an insecure version of %s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ), |
1501 | 1504 | sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) ) |
1502 | 1505 | ); |
1503 | 1506 | } else { |
1504 | | /* translators: %s: browser name and link */ |
1505 | 1507 | $msg = sprintf( |
| 1508 | /* translators: %s: browser name and link */ |
1506 | 1509 | __( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ), |
1507 | 1510 | sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) ) |
1508 | 1511 | ); |
… |
… |
function wp_dashboard_browser_nag() { |
1523 | 1526 | $browsehappy = add_query_arg( 'locale', $locale, $browsehappy ); |
1524 | 1527 | } |
1525 | 1528 | |
| 1529 | /* translators: 1: Browser update URL, 2: Browser name, 3: Browse Happy URL */ |
1526 | 1530 | $notice .= '<p>' . sprintf( __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '</p>'; |
1527 | 1531 | $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss" aria-label="' . esc_attr__( 'Dismiss the browser warning panel' ) . '">' . __( 'Dismiss' ) . '</a></p>'; |
1528 | 1532 | $notice .= '<div class="clear"></div>'; |
… |
… |
function wp_welcome_panel() { |
1697 | 1701 | <a class="button button-primary button-hero hide-if-customize" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Customize Your Site' ); ?></a> |
1698 | 1702 | <?php if ( current_user_can( 'install_themes' ) || ( current_user_can( 'switch_themes' ) && count( wp_get_themes( array( 'allowed' => true ) ) ) > 1 ) ) : ?> |
1699 | 1703 | <?php $themes_link = current_user_can( 'customize' ) ? add_query_arg( 'autofocus[panel]', 'themes', admin_url( 'customize.php' ) ) : admin_url( 'themes.php' ); ?> |
1700 | | <p class="hide-if-no-customize"><?php printf( __( 'or, <a href="%s">change your theme completely</a>' ), $themes_link ); ?></p> |
| 1704 | <p class="hide-if-no-customize"> |
| 1705 | <?php |
| 1706 | /* translators: %s: Themes URL */ |
| 1707 | printf( __( 'or, <a href="%s">change your theme completely</a>' ), $themes_link ); |
| 1708 | ?> |
| 1709 | </p> |
1701 | 1710 | <?php endif; ?> |
1702 | 1711 | </div> |
1703 | 1712 | <div class="welcome-panel-column"> |
… |
… |
function wp_welcome_panel() { |
1725 | 1734 | if ( current_theme_supports( 'widgets' ) || current_theme_supports( 'menus' ) ) : |
1726 | 1735 | if ( current_theme_supports( 'widgets' ) && current_theme_supports( 'menus' ) ) { |
1727 | 1736 | $widgets_menus_link = sprintf( |
| 1737 | /* translators: 1: Widgets URL, 2: Navigation menus URL */ |
1728 | 1738 | __( 'Manage <a href="%1$s">widgets</a> or <a href="%2$s">menus</a>' ), |
1729 | 1739 | admin_url( 'widgets.php' ), |
1730 | 1740 | admin_url( 'nav-menus.php' ) |