Add translation comment, props ocean90, fixes #18881
git-svn-id: http://svn.automattic.com/wordpress/trunk@18922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cce2047bc6
commit
eb792ad204
|
@ -1990,14 +1990,18 @@ function _insert_into_post_button($type) {
|
||||||
*/
|
*/
|
||||||
function media_upload_max_image_resize() {
|
function media_upload_max_image_resize() {
|
||||||
$checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
|
$checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
|
||||||
|
$a = $end = '';
|
||||||
|
|
||||||
|
if ( current_user_can( 'manage_options' ) ) {
|
||||||
|
$a = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">';
|
||||||
|
$end = '</a>';
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<p class="hide-if-no-js"><label>
|
<p class="hide-if-no-js"><label>
|
||||||
<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
|
<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
|
||||||
<?php
|
<?php
|
||||||
if ( current_user_can( 'manage_options' ) )
|
/* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/
|
||||||
printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
|
printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) );
|
||||||
else
|
|
||||||
printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d × %4$d).' ), '', '', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
|
|
||||||
?>
|
?>
|
||||||
</label></p>
|
</label></p>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue