Privacy: Make the help hint for Privacy Policy page more translatable and accessible.

Props tobifjellner.
See #43980.

git-svn-id: https://develop.svn.wordpress.org/trunk@43206 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2018-05-09 23:11:29 +00:00
parent 2fd58a997f
commit de1fbae529
2 changed files with 15 additions and 4 deletions

View File

@ -1555,9 +1555,17 @@ final class WP_Privacy_Policy_Content {
<div class="notice notice-warning inline wp-pp-notice">
<p>
<?php
/* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
printf(
__( 'Need help putting together your new Privacy Policy page? %s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
'<a href="' . admin_url( 'tools.php?wp-privacy-policy-guide=1' ) . '" target="_blank">' . __( 'Check out our guide' ) . '</a>' );
__( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
admin_url( 'tools.php?wp-privacy-policy-guide=1' ),
'target="_blank"',
sprintf(
'<span class="screen-reader-text"> %s</span>',
/* translators: accessibility text */
__( '(opens in a new tab)' )
)
);
?>
</p>
</div>

View File

@ -141,9 +141,12 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
<p>
<?php
/* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */
printf(
__( 'Need help putting together your new Privacy Policy page? %s for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
'<a href="' . admin_url( 'tools.php?wp-privacy-policy-guide' ) . '">' . __( 'Check out our guide' ) . '</a>'
__( 'Need help putting together your new Privacy Policy page? <a href="%1$s" %2$s>Check out our guide%3$s</a> for recommendations on what content to include, along with policies suggested by your plugins and theme.' ),
admin_url( 'tools.php?wp-privacy-policy-guide' ),
'',
''
);
?>