[wp-trac] [WordPress Trac] #63150: Site Editor: "Custom Styles" is not translatable
WordPress Trac
noreply at wordpress.org
Sun Mar 23 12:14:53 UTC 2025
#63150: Site Editor: "Custom Styles" is not translatable
--------------------------+---------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.8
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by SirLouen):
Replying to [comment:4 wildworks]:
> @SirLouen I think we should explore whether we can solve this problem
server-side first, so I submitted a ticket here.
Gutenberg has a ton of PHP files. It's not only frontend.
I'm not versed in Gutenberg but I discovered this with the last patch I
submitted.
This said, in the Gutenberg code there is this line
{{{
'post_title' => 'Custom Styles', // Do not make string translatable, see
https://core.trac.wordpress.org/ticket/54518.
}}}
I think this is why @audrasjb referenced to this ticket:
https://core.trac.wordpress.org/changeset/52280
> This change removes the internationalization of the "Custom Styles"
specific posts as the post title being hardcoded is consistent with
wp_template_part and wp_template post types, and is not publicly visible,
except in the database. Moreover, using consistent "Custom Styles" post
title may make is easier to retrieve the related posts in the database.
So I believe, that translation should be done on display, not on creation.
And this might be done in the Gutenberg plugin repo if I'm not wrong.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63150#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list