[wp-trac] [WordPress Trac] #55405: i18n: Use a placeholder instead of 'Template' in a message in WP_Theme::__construct()
WordPress Trac
noreply at wordpress.org
Wed Mar 16 19:21:47 UTC 2022
#55405: i18n: Use a placeholder instead of 'Template' in a message in
WP_Theme::__construct()
----------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: Themes | Version:
Severity: normal | Keywords: needs-patch good-first-bug
Focuses: |
----------------------------+----------------------------------------
There is an error message in `WP_Theme::__construct()`:
> `Template is missing. Standalone themes need to have a %1$s or %2$s
template file. <a href="%3$s">Child themes</a> need to have a Template
header in the %4$s stylesheet.`
Since the `Template` word here is literal and is not meant to be
translated, it should be moved out of the translatable string and replaced
with a placeholder, similar to `index.php` or `style.css` in the same
string.
When working on a patch, please note that the translator comment above the
string should be updated too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55405>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list