I18N: Add context and translator comments to `Back to %s` strings.

Fixes #37095.
Built from https://develop.svn.wordpress.org/trunk@37703


git-svn-id: http://core.svn.wordpress.org/trunk@37669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-06-14 21:51:28 +00:00
parent 70984aeb6f
commit 0cdf2d371b
3 changed files with 13 additions and 4 deletions

View File

@ -74,9 +74,15 @@ do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?>
<div id="message" class="updated">
<p><strong><?php echo $message; ?></strong></p>
<?php if ( $wp_http_referer ) { ?>
<p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php printf( __( '&larr; Back to %s' ), $tax->labels->name ); ?></a></p>
<p><a href="<?php echo esc_url( $wp_http_referer ); ?>"><?php
/* translators: %s: taxonomy name */
printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name );
?></a></p>
<?php } else { ?>
<p><a href="<?php echo esc_url( wp_get_referer() ); ?>"><?php printf( __( '&larr; Back to %s' ), $tax->labels->name ); ?></a></p>
<p><a href="<?php echo esc_url( wp_get_referer() ); ?>"><?php
/* translators: %s: taxonomy name */
printf( _x( '&larr; Back to %s', 'admin screen' ), $tax->labels->name );
?></a></p>
<?php } ?>
</div>
<?php endif; ?>

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37702';
$wp_version = '4.6-alpha-37703';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -228,7 +228,10 @@ function login_footer($input_id = '') {
// Don't allow interim logins to navigate away from the page.
if ( ! $interim_login ): ?>
<p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php printf( __( '&larr; Back to %s' ), get_bloginfo( 'title', 'display' ) ); ?></a></p>
<p id="backtoblog"><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php
/* translators: %s: site title */
printf( _x( '&larr; Back to %s', 'site' ), get_bloginfo( 'title', 'display' ) );
?></a></p>
<?php endif; ?>
</div>