I18N: Add context to some plugin and theme strings for consistency.
Props ramiy, audrasjb. Fixes #50710. Built from https://develop.svn.wordpress.org/trunk@48520 git-svn-id: http://core.svn.wordpress.org/trunk@48282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
82ce41ff51
commit
e4ce35dd11
|
@ -156,7 +156,7 @@ if ( empty( $importers ) ) {
|
|||
esc_attr( $plugin_slug ),
|
||||
esc_attr( $data[0] ),
|
||||
/* translators: %s: Importer name. */
|
||||
esc_attr( sprintf( __( 'Install %s now' ), $data[0] ) ),
|
||||
esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $data[0] ) ),
|
||||
__( 'Install Now' )
|
||||
);
|
||||
} else {
|
||||
|
|
|
@ -528,7 +528,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
|||
esc_attr( $plugin['slug'] ),
|
||||
esc_url( $status['url'] ),
|
||||
/* translators: %s: Plugin name and version. */
|
||||
esc_attr( sprintf( __( 'Install %s now' ), $name ) ),
|
||||
esc_attr( sprintf( _x( 'Install %s now', 'plugin' ), $name ) ),
|
||||
esc_attr( $name ),
|
||||
__( 'Install Now' )
|
||||
);
|
||||
|
@ -550,7 +550,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table {
|
|||
esc_attr( $plugin['slug'] ),
|
||||
esc_url( $status['url'] ),
|
||||
/* translators: %s: Plugin name and version. */
|
||||
esc_attr( sprintf( __( 'Update %s now' ), $name ) ),
|
||||
esc_attr( sprintf( _x( 'Update %s now', 'plugin' ), $name ) ),
|
||||
esc_attr( $name ),
|
||||
__( 'Update Now' )
|
||||
);
|
||||
|
|
|
@ -323,7 +323,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
|||
'<a class="install-now" href="%s" title="%s">%s</a>',
|
||||
esc_url( wp_nonce_url( $install_url, 'install-theme_' . $theme->slug ) ),
|
||||
/* translators: %s: Theme name. */
|
||||
esc_attr( sprintf( __( 'Install %s' ), $name ) ),
|
||||
esc_attr( sprintf( _x( 'Install %s', 'theme' ), $name ) ),
|
||||
__( 'Install Now' )
|
||||
);
|
||||
break;
|
||||
|
|
|
@ -1379,7 +1379,7 @@ function wp_dashboard_plugins_output( $rss, $args = array() ) {
|
|||
echo '<li class="dashboard-news-plugin"><span>' . __( 'Popular Plugin' ) . ':</span> ' . esc_html( $raw_title ) .
|
||||
' <a href="' . $ilink . '" class="thickbox open-plugin-details-modal" aria-label="' .
|
||||
/* translators: %s: Plugin name. */
|
||||
esc_attr( sprintf( __( 'Install %s' ), $raw_title ) ) . '">(' . __( 'Install' ) . ')</a></li>';
|
||||
esc_attr( sprintf( _x( 'Install %s', 'plugin' ), $raw_title ) ) . '">(' . __( 'Install' ) . ')</a></li>';
|
||||
|
||||
$feed->__destruct();
|
||||
unset( $feed );
|
||||
|
|
|
@ -240,7 +240,7 @@ function get_theme_update_available( $theme ) {
|
|||
sprintf(
|
||||
'aria-label="%s" id="update-theme" data-slug="%s"',
|
||||
/* translators: %s: Theme name. */
|
||||
esc_attr( sprintf( __( 'Update %s now' ), $theme_name ) ),
|
||||
esc_attr( sprintf( _x( 'Update %s now', 'theme' ), $theme_name ) ),
|
||||
$stylesheet
|
||||
)
|
||||
);
|
||||
|
|
|
@ -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'] ) )
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -813,8 +813,8 @@
|
|||
'aria-label',
|
||||
sprintf(
|
||||
/* translators: %s: Plugin name. */
|
||||
_x( 'Install %s now', 'plugin' ),
|
||||
pluginName
|
||||
_x( 'Install %s now', 'plugin' ),
|
||||
pluginName
|
||||
)
|
||||
)
|
||||
.text( __( 'Install Now' ) );
|
||||
|
|
|
@ -323,14 +323,14 @@ if ( $tab ) {
|
|||
<# if ( data.compatible_wp && data.compatible_php ) { #>
|
||||
<?php
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( __( 'Install %s' ), '{{ data.name }}' );
|
||||
$aria_label = sprintf( _x( 'Install %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>
|
||||
<button class="button preview install-theme-preview"><?php _e( 'Preview' ); ?></button>
|
||||
<# } else { #>
|
||||
<?php
|
||||
/* translators: %s: Theme name. */
|
||||
$aria_label = sprintf( __( 'Cannot Install %s' ), '{{ data.name }}' );
|
||||
$aria_label = sprintf( _x( 'Cannot Install %s', 'theme' ), '{{ data.name }}' );
|
||||
?>
|
||||
<a class="button button-primary disabled" data-name="{{ data.name }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _ex( 'Cannot Install', 'theme' ); ?></a>
|
||||
<button class="button disabled"><?php _e( 'Preview' ); ?></button>
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-beta2-48519';
|
||||
$wp_version = '5.5-beta2-48520';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue