Make WordPress Core


Ignore:
Timestamp:
10/24/2017 10:50:40 AM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove <code> and <kbd> tags from translatable strings on Settings screens.

Move URLs to separate strings.

Props ramiy.
Fixes #40763.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-writing.php

    r41289 r41986  
    169169<?php if ( 1 == get_option('blog_public') ) : ?>
    170170
    171 <p><label for="ping_sites"><?php _e( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="https://codex.wordpress.org/Update_Services">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ) ?></label></p>
    172 
    173 <textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea>
     171    <p><label for="ping_sites"><?php
     172        printf(
     173            /* translators: %s: Codex URL */
     174            __( 'When you publish a new post, WordPress automatically notifies the following site update services. For more about this, see <a href="%s">Update Services</a> on the Codex. Separate multiple service URLs with line breaks.' ),
     175            __( 'https://codex.wordpress.org/Update_Services' )
     176        );
     177    ?></label></p>
     178
     179    <textarea name="ping_sites" id="ping_sites" class="large-text code" rows="3"><?php echo esc_textarea( get_option('ping_sites') ); ?></textarea>
    174180
    175181<?php else : ?>
    176182
    177     <p><?php printf(__('WordPress is not notifying any <a href="https://codex.wordpress.org/Update_Services">Update Services</a> because of your site&#8217;s <a href="%s">visibility settings</a>.'), 'options-reading.php'); ?></p>
     183    <p><?php
     184        printf(
     185            /* translators: 1: Codex URL, 2: Reading Settings URL */
     186            __( 'WordPress is not notifying any <a href="%1$s">Update Services</a> because of your site&#8217;s <a href="%2$s">visibility settings</a>.' ),
     187            __( 'https://codex.wordpress.org/Update_Services' ),
     188            'options-reading.php'
     189        );
     190    ?></p>
    178191
    179192<?php endif; ?>
    180 <?php } // multisite ?>
     193<?php } // enable_update_services_configuration ?>
    181194
    182195<?php do_settings_sections('writing'); ?>
Note: See TracChangeset for help on using the changeset viewer.