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

Fixes #37095.

git-svn-id: https://develop.svn.wordpress.org/trunk@37703 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2016-06-14 21:50:57 +00:00
parent aea4c0d86a
commit 45d7737eb2
2 changed files with 12 additions and 3 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

@ -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>