WordPress.org

Make WordPress Core

Changeset 18922


Ignore:
Timestamp:
10/08/2011 03:14:41 AM (7 years ago)
Author:
azaozz
Message:

Add translation comment, props ocean90, fixes #18881

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r18918 r18922  
    19911991function media_upload_max_image_resize() {
    19921992    $checked = get_user_setting('upload_resize') ? ' checked="true"' : '';
     1993    $a = $end = '';
     1994
     1995    if ( current_user_can( 'manage_options' ) ) {
     1996        $a = '<a href="' . esc_url( admin_url( 'options-media.php' ) ) . '" target="_blank">';
     1997        $end = '</a>';
     1998    }
    19931999?>
    19942000<p class="hide-if-no-js"><label>
    19952001<input name="image_resize" type="checkbox" id="image_resize" value="true"<?php echo $checked; ?> />
    19962002<?php
    1997 if ( current_user_can( 'manage_options' ) )
    1998     printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), '<a href="' . admin_url( 'options-media.php' ) . '" target="_blank">', '</a>', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
    1999 else
    2000     printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), '', '', (int) get_option( 'large_size_w' ), (int) get_option( 'large_size_h' ) );
     2003    /* translators: %1$s is link start tag, %2$s is link end tag, %3$d is width, %4$d is height*/
     2004    printf( __( 'Scale images to match the large size selected in %1$simage options%2$s (%3$d &times; %4$d).' ), $a, $end, (int) get_option( 'large_size_w', '1024' ), (int) get_option( 'large_size_h', '1024' ) );
    20012005?>
    20022006</label></p>
Note: See TracChangeset for help on using the changeset viewer.