Make WordPress Core


Ignore:
Timestamp:
09/15/2021 11:47:56 AM (3 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add a translator comment to clarify the "Block HTML" string in the Block widget settings form.

The string refers to HTML code of the block, not an option that blocks HTML.

Follow-up to [50995].

Props Amieiro, NekoJonez, knutsp, johnbillion, namith.jawahar, SergeyBiryukov.
Fixes #54110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/widgets/class-wp-widget-block.php

    r51414 r51814  
    203203        ?>
    204204        <p>
    205             <label for="<?php echo $this->get_field_id( 'content' ); ?>"><?php echo __( 'Block HTML:' ); ?></label>
     205            <label for="<?php echo $this->get_field_id( 'content' ); ?>">
     206                <?php
     207                /* translators: HTML code of the block, not an option that blocks HTML. */
     208                _e( 'Block HTML:' );
     209                ?>
     210            </label>
    206211            <textarea id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" rows="6" cols="50" class="widefat code"><?php echo esc_textarea( $instance['content'] ); ?></textarea>
    207212        </p>
Note: See TracChangeset for help on using the changeset viewer.