[wp-trac] [WordPress Trac] #56216: Further remove code from translatable strings in wp-includes/ms-default-constants.php
WordPress Trac
noreply at wordpress.org
Thu Jul 14 01:58:16 UTC 2022
#56216: Further remove code from translatable strings in wp-includes/ms-default-
constants.php
----------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: I18N | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: multisite |
----------------------------+----------------------------------------
Background: #35994.
[36773] removed some code from a translatable string in `wp-includes/ms-
default-constants.php`, specifically constant names, file name, and a
function name, as these names don't need translation.
However, there is one more string directly below which still includes some
constant names:
{{{
trigger_error( __( '<strong>Conflicting values for the constants VHOST and
SUBDOMAIN_INSTALL.</strong> The value of SUBDOMAIN_INSTALL will be assumed
to be your subdomain configuration setting.' ) . ' ' . $vhost_deprecated,
E_USER_WARNING );
}}}
As `VHOST` or `SUBDOMAIN_INSTALL` don't need translation, this can be
replaced with:
{{{
trigger_error(
sprintf(
/* translators: 1: VHOST, 2: SUBDOMAIN_INSTALL */
__( '<strong>Conflicting values for the constants %1$s and
%2$s.</strong> The value of %2$s will be assumed to be your subdomain
configuration setting.' ),
'<code>VHOST</code>',
'<code>SUBDOMAIN_INSTALL</code>'
) . ' ' . $vhost_deprecated,
E_USER_WARNING
);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56216>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list