From a6d5755af017dd1c141f77d55819220dd00ea6a9 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Tue, 28 Jun 2016 23:23:40 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37902 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/network.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/wp-admin/includes/network.php b/src/wp-admin/includes/network.php index 46570b01e5..d04b4f9a28 100644 --- a/src/wp-admin/includes/network.php +++ b/src/wp-admin/includes/network.php @@ -159,7 +159,7 @@ function network_step1( $errors = false ) { $subdomain_install = true; } else { $subdomain_install = false; - if ( $got_mod_rewrite = got_mod_rewrite() ) { // dangerous assumptions + if ( $got_mod_rewrite = got_mod_rewrite() ) { // dangerous assumptions echo '

' . __( 'Note:' ) . ' '; /* translators: %s: mod_rewrite */ printf( __( 'Please make sure the Apache %s module is installed as it will be used at the end of this installation.' ), @@ -405,10 +405,16 @@ function network_step2( $errors = false ) { ?>

  1. above the line reading /* That’s all, stop editing! Happy blogging. */:' ), + /* translators: 1: wp-config.php 2: location of wp-config file, 3: translated version of "That's all, stop editing! Happy blogging." */ + __( 'Add the following to your %1$s file in %2$s above the line reading %3$s:' ), 'wp-config.php', - '' . $location_of_wp_config . '' + '' . $location_of_wp_config . '', + /* + * translators: This string should only be translated if wp-config-sample.php is localized. + * You can check the localized release package or + * https://i18n.svn.wordpress.org//branches//dist/wp-config-sample.php + */ + '/* ' . __( 'That’s all, stop editing! Happy blogging.' ) . ' */' ); ?>