From 5e840c755ed8540a00d0f43cc4c03cabc9573e88 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Dec 2019 21:25:14 +0000 Subject: [PATCH] I18N: Replace file names in translatable strings on Permalink Settings screen with placeholders. Props ramiy. Fixes #48863. git-svn-id: https://develop.svn.wordpress.org/trunk@46957 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-permalink.php | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/options-permalink.php b/src/wp-admin/options-permalink.php index 2b6e08101c..11ae50f0c9 100644 --- a/src/wp-admin/options-permalink.php +++ b/src/wp-admin/options-permalink.php @@ -151,12 +151,24 @@ if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) if ( $iis7_permalinks ) { if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) { - $message = __( 'You should update your web.config now.' ); + $message = sprintf( + /* translators: %s: web.config */ + __( 'You should update your %s file now.' ), + 'web.config' + ); } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) { - $message = __( 'Permalink structure updated. Remove write access on web.config file now!' ); + $message = sprintf( + /* translators: %s: web.config */ + __( 'Permalink structure updated. Remove write access on %s file now!' ), + 'web.config' + ); } } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) { - $message = __( 'You should update your .htaccess now.' ); + $message = sprintf( + /* translators: %s: .htaccess */ + __( 'You should update your %s file now.' ), + '.htaccess' + ); } if ( ! get_settings_errors() ) {