Make WordPress Core


Ignore:
Timestamp:
06/28/2016 11:23:40 PM (9 years ago)
Author:
ocean90
Message:

I18N: Make "That's all, stop editing! Happy blogging." translatable.

The string is used during the network installation process to inform the user about where to store additional configuration data. Since the wp-config.php file can be translated the string should be too.

Props julesaus.
Fixes #36945.

File:
1 edited

Legend:

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

    r37674 r37902  
    160160    } else {
    161161        $subdomain_install = false;
    162         if ( $got_mod_rewrite = got_mod_rewrite() ) { // dangerous assumptions 
     162        if ( $got_mod_rewrite = got_mod_rewrite() ) { // dangerous assumptions
    163163            echo '<div class="updated inline"><p><strong>' . __( 'Note:' ) . '</strong> ';
    164164            /* translators: %s: mod_rewrite */
     
    406406        <ol>
    407407            <li><p><?php printf(
    408                 /* translators: 1: wp-config.php 2: location of wp-config file */
    409                 __( 'Add the following to your %1$s file in %2$s <strong>above</strong> the line reading <code>/* That&#8217;s all, stop editing! Happy blogging. */</code>:' ),
     408                /* translators: 1: wp-config.php 2: location of wp-config file, 3: translated version of "That's all, stop editing! Happy blogging." */
     409                __( 'Add the following to your %1$s file in %2$s <strong>above</strong> the line reading %3$s:' ),
    410410                '<code>wp-config.php</code>',
    411                 '<code>' . $location_of_wp_config . '</code>'
     411                '<code>' . $location_of_wp_config . '</code>',
     412                /*
     413                 * translators: This string should only be translated if wp-config-sample.php is localized.
     414                 * You can check the localized release package or
     415                 * https://i18n.svn.wordpress.org/<locale code>/branches/<wp version>/dist/wp-config-sample.php
     416                 */
     417                '<code>/* ' . __( 'That&#8217;s all, stop editing! Happy blogging.' ) . ' */</code>'
    412418            ); ?></p>
    413419                <textarea class="code" readonly="readonly" cols="100" rows="7">
Note: See TracChangeset for help on using the changeset viewer.