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
This commit is contained in:
Sergey Biryukov 2019-12-13 21:25:14 +00:00
parent b7b29ddfc9
commit 5e840c755e

View File

@ -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.' ),
'<code>web.config</code>'
);
} 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!' ),
'<code>web.config</code>'
);
}
} 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.' ),
'<code>.htaccess</code>'
);
}
if ( ! get_settings_errors() ) {