Make WordPress Core


Ignore:
Timestamp:
12/13/2019 09:25:14 PM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace file names in translatable strings on Permalink Settings screen with placeholders.

Props ramiy.
Fixes #48863.

File:
1 edited

Legend:

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

    r45932 r46957  
    152152    if ( $iis7_permalinks ) {
    153153        if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) {
    154             $message = __( 'You should update your web.config now.' );
     154            $message = sprintf(
     155                /* translators: %s: web.config */
     156                __( 'You should update your %s file now.' ),
     157                '<code>web.config</code>'
     158            );
    155159        } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) {
    156             $message = __( 'Permalink structure updated. Remove write access on web.config file now!' );
     160            $message = sprintf(
     161                /* translators: %s: web.config */
     162                __( 'Permalink structure updated. Remove write access on %s file now!' ),
     163                '<code>web.config</code>'
     164            );
    157165        }
    158166    } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) {
    159         $message = __( 'You should update your .htaccess now.' );
     167        $message = sprintf(
     168            /* translators: %s: .htaccess */
     169            __( 'You should update your %s file now.' ),
     170            '<code>.htaccess</code>'
     171        );
    160172    }
    161173
Note: See TracChangeset for help on using the changeset viewer.