I18N: Add context to some plugin and theme strings for consistency.

Props ramiy, audrasjb.
Fixes #50710.

git-svn-id: https://develop.svn.wordpress.org/trunk@48520 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2020-07-20 23:12:33 +00:00
parent 364759ecb2
commit 5674e7e085
8 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -509,7 +509,7 @@ function wp_plugin_update_row( $file, $plugin_data ) {
sprintf(
'class="update-link" aria-label="%s"',
/* translators: %s: Plugin name. */
esc_attr( sprintf( __( 'Update %s now' ), $plugin_name ) )
esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $plugin_name ) )
)
);
} else {
@@ -694,7 +694,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
sprintf(
'class="update-link" aria-label="%s"',
/* translators: %s: Theme name. */
esc_attr( sprintf( __( 'Update %s now' ), $theme['Name'] ) )
esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme['Name'] ) )
)
);
}