Make WordPress Core

Changeset 48447


Ignore:
Timestamp:
07/12/2020 10:32:57 AM (4 years ago)
Author:
SergeyBiryukov
Message:

I18N: Move the "WordPress Backups" support URL to its own translatable string.

Follow-up to [48390].

See #9757.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-plugin-installer-skin.php

    r48446 r48447  
    283283        if ( $can_update ) {
    284284            if ( $this->is_downgrading ) {
    285                 $warning = __( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to <a href="https://wordpress.org/support/article/wordpress-backups/">backup your database and files</a> first.' );
     285                $warning = sprintf(
     286                    /* translators: %s: Documentation URL. */
     287                    __( 'You are uploading an older version of a current plugin. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
     288                    __( 'https://wordpress.org/support/article/wordpress-backups/' )
     289                );
    286290            } else {
    287                 $warning = __( 'You are updating a plugin. Be sure to <a href="https://wordpress.org/support/article/wordpress-backups/">backup your database and files</a> first.' );
     291                $warning = sprintf(
     292                    /* translators: %s: Documentation URL. */
     293                    __( 'You are updating a plugin. Be sure to <a href="%s">back up your database and files</a> first.' ),
     294                    __( 'https://wordpress.org/support/article/wordpress-backups/' )
     295                );
    288296            }
    289297
  • trunk/src/wp-admin/includes/class-theme-installer-skin.php

    r48446 r48447  
    312312        if ( $can_update ) {
    313313            if ( $this->is_downgrading ) {
    314                 $warning = __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to <a href="https://wordpress.org/support/article/wordpress-backups/">backup your database and files</a> first.' );
     314                $warning = sprintf(
     315                    /* translators: %s: Documentation URL. */
     316                    __( 'You are uploading an older version of a current theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
     317                    __( 'https://wordpress.org/support/article/wordpress-backups/' )
     318                );
    315319            } else {
    316                 $warning = __( 'You are updating a theme. Be sure to <a href="https://wordpress.org/support/article/wordpress-backups/">backup your database and files</a> first.' );
     320                $warning = sprintf(
     321                    /* translators: %s: Documentation URL. */
     322                    __( 'You are updating a theme. Be sure to <a href="%s">back up your database and files</a> first.' ),
     323                    __( 'https://wordpress.org/support/article/wordpress-backups/' )
     324                );
    317325            }
    318326
  • trunk/src/wp-admin/update-core.php

    r48287 r48447  
    248248    if ( isset( $updates[0]->version ) && version_compare( $updates[0]->version, $wp_version, '>' ) ) {
    249249        echo '<div class="notice notice-warning"><p>';
    250         _e( '<strong>Important:</strong> Before updating, please <a href="https://wordpress.org/support/article/wordpress-backups/">back up your database and files</a>. For help with updates, visit the <a href="https://wordpress.org/support/article/updating-wordpress/">Updating WordPress</a> documentation page.' );
     250        printf(
     251            /* translators: 1: Documentation on WordPress backups, 2: Documentation on updating WordPress. */
     252            __( '<strong>Important:</strong> Before updating, please <a href="%1$s">back up your database and files</a>. For help with updates, visit the <a href="%2$s">Updating WordPress</a> documentation page.' ),
     253            __( 'https://wordpress.org/support/article/wordpress-backups/' ),
     254            __( 'https://wordpress.org/support/article/updating-wordpress/' )
     255        );
    251256        echo '</p></div>';
    252257
Note: See TracChangeset for help on using the changeset viewer.