From 9b19f2eea458a0e61d8e84b5f1a57ab14ce115ba Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Thu, 10 Jan 2019 10:45:13 +0000 Subject: [PATCH] I18n: Add missing translator comments in `wp-admin/includes/class-wp-plugins-list-table.php`. Fixes #45898. git-svn-id: https://develop.svn.wordpress.org/trunk@44541 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-plugins-list-table.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/class-wp-plugins-list-table.php b/src/wp-admin/includes/class-wp-plugins-list-table.php index e28a4aa1fc..a07945a973 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -348,6 +348,7 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( ! empty( $_REQUEST['s'] ) ) { $s = esc_html( wp_unslash( $_REQUEST['s'] ) ); + /* translators: %s: plugin search term */ printf( __( 'No plugins found for “%s”.' ), $s ); // We assume that somebody who can install plugins in multisite is experienced enough to not need this helper link. @@ -428,21 +429,27 @@ class WP_Plugins_List_Table extends WP_List_Table { switch ( $type ) { case 'all': + /* translators: %s: plugin count */ $text = _nx( 'All (%s)', 'All (%s)', $count, 'plugins' ); break; case 'active': + /* translators: %s: plugin count */ $text = _n( 'Active (%s)', 'Active (%s)', $count ); break; case 'recently_activated': + /* translators: %s: plugin count */ $text = _n( 'Recently Active (%s)', 'Recently Active (%s)', $count ); break; case 'inactive': + /* translators: %s: plugin count */ $text = _n( 'Inactive (%s)', 'Inactive (%s)', $count ); break; case 'mustuse': + /* translators: %s: plugin count */ $text = _n( 'Must-Use (%s)', 'Must-Use (%s)', $count ); break; case 'dropins': + /* translators: %s: plugin count */ $text = _n( 'Drop-ins (%s)', 'Drop-ins (%s)', $count ); break; case 'paused': @@ -450,6 +457,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $text = _n( 'Paused (%s)', 'Paused (%s)', $count ); break; case 'upgrade': + /* translators: %s: plugin count */ $text = _n( 'Update Available (%s)', 'Update Available (%s)', $count ); break; } @@ -526,14 +534,14 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( 'recently_activated' == $status ) { submit_button( __( 'Clear List' ), '', 'clear-recent-list', false ); } elseif ( 'top' === $which && 'mustuse' === $status ) { - /* translators: %s: mu-plugins directory name */ echo '

' . sprintf( + /* translators: %s: mu-plugins directory name */ __( 'Files in the %s directory are executed automatically.' ), '' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '' ) . '

'; } elseif ( 'top' === $which && 'dropins' === $status ) { - /* translators: %s: wp-content directory name */ echo '

' . sprintf( + /* translators: %s: wp-content directory name */ __( 'Drop-ins are advanced plugins in the %s directory that replace WordPress functionality when present.' ), '' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '' ) . '

'; @@ -611,8 +619,8 @@ class WP_Plugins_List_Table extends WP_List_Table { } else { $is_active = false; $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __( 'Inactive:' ) . ' ' . - /* translators: 1: drop-in constant name, 2: wp-config.php */ sprintf( + /* translators: 1: drop-in constant name, 2: wp-config.php */ __( 'Requires %1$s in %2$s file.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);", 'wp-config.php' @@ -770,6 +778,7 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( $restrict_network_active || $restrict_network_only || in_array( $status, array( 'mustuse', 'dropins' ) ) ) { $checkbox = ''; } else { + /* translators: %s: plugin name */ $checkbox = "' . ""; } @@ -822,6 +831,7 @@ class WP_Plugins_List_Table extends WP_List_Table { $plugin_meta = array(); if ( ! empty( $plugin_data['Version'] ) ) { + /* translators: %s: plugin version number */ $plugin_meta[] = sprintf( __( 'Version %s' ), $plugin_data['Version'] ); } if ( ! empty( $plugin_data['Author'] ) ) { @@ -829,6 +839,7 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( ! empty( $plugin_data['AuthorURI'] ) ) { $author = '' . $plugin_data['Author'] . ''; } + /* translators: %s: plugin version number */ $plugin_meta[] = sprintf( __( 'By %s' ), $author ); } @@ -842,6 +853,7 @@ class WP_Plugins_List_Table extends WP_List_Table { '&TB_iframe=true&width=600&height=550' ) ), + /* translators: %s: plugin name */ esc_attr( sprintf( __( 'More information about %s' ), $plugin_name ) ), esc_attr( $plugin_name ), __( 'View details' )