Improve newly added strings for i18n:
* Use a placeholder for the theme name to be able to reorder words. * Uppercase D for "Theme Details" to match existing strings. * Merge two revision date formats. * Add translator comment to strings with placeholders. props obenland. see #31776. git-svn-id: https://develop.svn.wordpress.org/trunk@31905 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dacd36bcaa
commit
4b3cc5c55e
|
@ -222,7 +222,12 @@ foreach ( $themes as $theme ) :
|
|||
<div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
|
||||
|
||||
<?php if ( $theme['active'] ) { ?>
|
||||
<h3 class="theme-name" id="<?php echo $aria_name; ?>"><span><?php _ex( 'Active:', 'theme' ); ?></span> <?php echo $theme['name']; ?></h3>
|
||||
<h3 class="theme-name" id="<?php echo $aria_name; ?>">
|
||||
<?php
|
||||
/* translators: %s: theme name */
|
||||
printf( __( '<span>Active:</span> %s' ), $theme['name'] );
|
||||
?>
|
||||
</h3>
|
||||
<?php } else { ?>
|
||||
<h3 class="theme-name" id="<?php echo $aria_name; ?>"><?php echo $theme['name']; ?></h3>
|
||||
<?php } ?>
|
||||
|
@ -319,7 +324,12 @@ $can_delete = current_user_can( 'delete_themes' );
|
|||
<div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div>
|
||||
|
||||
<# if ( data.active ) { #>
|
||||
<h3 class="theme-name" id="{{ data.id }}-name"><span><?php _ex( 'Active:', 'theme' ); ?></span> {{{ data.name }}}</h3>
|
||||
<h3 class="theme-name" id="{{ data.id }}-name">
|
||||
<?php
|
||||
/* translators: %s: theme name */
|
||||
printf( __( '<span>Active:</span> %s' ), '{{ data.name }}' );
|
||||
?>
|
||||
></h3>
|
||||
<# } else { #>
|
||||
<h3 class="theme-name" id="{{ data.id }}-name">{{{ data.name }}}</h3>
|
||||
<# } #>
|
||||
|
|
|
@ -1213,7 +1213,12 @@ class WP_Customize_Theme_Control extends WP_Customize_Control {
|
|||
<div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.theme.author }}' ); ?></div>
|
||||
|
||||
<# if ( data.theme.active ) { #>
|
||||
<h3 class="theme-name" id="{{ data.theme.id }}-name"><span><?php _ex( 'Previewing:', 'theme' ); ?></span> {{ data.theme.name }}</h3>
|
||||
<h3 class="theme-name" id="{{ data.theme.id }}-name">
|
||||
<?php
|
||||
/* translators: %s: theme name */
|
||||
printf( __( '<span>Previewing:</span> %s' ), '{{ data.theme.name }}' );
|
||||
?>
|
||||
</h3>
|
||||
<# } else { #>
|
||||
<h3 class="theme-name" id="{{ data.theme.id }}-name">{{ data.theme.name }}</h3>
|
||||
<# } #>
|
||||
|
|
|
@ -353,7 +353,7 @@ class WP_Customize_Themes_Section extends WP_Customize_Section {
|
|||
<a href="<?php echo admin_url( 'theme-install.php' ); ?>" target="_top" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a>
|
||||
<?php endif; ?>
|
||||
</h2>
|
||||
<div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme details' ); ?>"></div>
|
||||
<div class="theme-overlay" tabindex="0" role="dialog" aria-label="<?php esc_attr_e( 'Theme Details' ); ?>"></div>
|
||||
<div id="customize-container"></div>
|
||||
<?php if ( 6 < count( $this->controls ) ) : ?>
|
||||
<p><label for="themes-filter">
|
||||
|
|
|
@ -1700,7 +1700,7 @@ function wp_post_revision_title( $revision, $link = true ) {
|
|||
return false;
|
||||
|
||||
/* translators: revision date format, see http://php.net/date */
|
||||
$datef = _x( 'F j, Y @ H:i', 'revision date format');
|
||||
$datef = _x( 'F j, Y @ H:i:s', 'revision date format' );
|
||||
/* translators: 1: date */
|
||||
$autosavef = _x( '%1$s [Autosave]', 'post revision title extra' );
|
||||
/* translators: 1: date */
|
||||
|
|
|
@ -479,7 +479,9 @@ function wp_default_scripts( &$scripts ) {
|
|||
'newPost' => __( 'Title' ),
|
||||
'unexpectedError' => __( 'Sorry, but an unexpected error occurred.' ),
|
||||
'saveAlert' => __( 'The changes you made will be lost if you navigate away from this page.' ),
|
||||
/* translators: %d: nth embed found in a post */
|
||||
'suggestedEmbedAlt' => __( 'Suggested embed #%d' ),
|
||||
/* translators: %d: nth image found in a post */
|
||||
'suggestedImgAlt' => __( 'Suggested image #%d' ),
|
||||
) );
|
||||
|
||||
|
|
|
@ -804,7 +804,8 @@ function register_sidebar($args = array()) {
|
|||
$i = count($wp_registered_sidebars) + 1;
|
||||
|
||||
if ( empty( $args['id'] ) ) {
|
||||
_doing_it_wrong( __FUNCTION__, sprintf( __( 'You should set %s in the arguments array.' ), 'id' ), '4.2.0' );
|
||||
/* translators: %s: the id argument */
|
||||
_doing_it_wrong( __FUNCTION__, sprintf( __( 'You should set %s in the arguments array.' ), '<code>id</code>' ), '4.2.0' );
|
||||
}
|
||||
|
||||
$defaults = array(
|
||||
|
|
Loading…
Reference in New Issue