From 540e4b5eddc20088aac8f19a346580f88f8a82e1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 30 Oct 2015 01:07:11 +0000 Subject: [PATCH] Don't use `` in translatable strings in `wp-admin/includes/class-wp-plugins-list-table.php`. Add translator commments. Props ramiy. Fixes #34498. git-svn-id: https://develop.svn.wordpress.org/trunk@35440 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-plugins-list-table.php | 16 +++++++++++++--- 1 file changed, 13 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 43dcc6ea5a..ea64b88fb6 100644 --- a/src/wp-admin/includes/class-wp-plugins-list-table.php +++ b/src/wp-admin/includes/class-wp-plugins-list-table.php @@ -448,9 +448,15 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( 'recently_activated' == $status ) { submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); } elseif ( 'top' === $which && 'mustuse' === $status ) { - echo '

' . sprintf( __( 'Files in the %s directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '

'; + /* translators: %s: mu-plugins directory name */ + echo '

' . sprintf( __( 'Files in the %s directory are executed automatically.' ), + '' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '' + ) . '

'; } elseif ( 'top' === $which && 'dropins' === $status ) { - echo '

' . sprintf( __( 'Drop-ins are advanced plugins in the %s directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '

'; + /* translators: %s: wp-content directory name */ + echo '

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

'; } echo ''; } @@ -522,7 +528,11 @@ class WP_Plugins_List_Table extends WP_List_Table { $description = '

' . $dropins[ $plugin_file ][0] . '

'; } else { $is_active = false; - $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __('Inactive:') . ' ' . sprintf( __( 'Requires %s in wp-config.php.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '

'; + $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __( 'Inactive:' ) . ' ' . + /* translators: %s: drop-in constant name */ + sprintf( __( 'Requires %s in wp-config.php.' ), + "define('" . $dropins[ $plugin_file ][1] . "', true);" + ) . '

'; } if ( $plugin_data['Description'] ) $description .= '

' . $plugin_data['Description'] . '

';