You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Link to […]" should not lowercase post type label #49587
In #40378, the string "Link to %s" (e.g. "Link to page") of the "Post Featured Image" block was made translatable. To ensure proper English grammar and because the WordPress API does not include support for lowercase post type labels, the post type's singular name is passed to toLowerCase().
While this works for English, it causes incorrect Grammar for languages that capitalize nouns, e.g. German. There, this string becomes "Link zu seite" which is wrong. It should be "Link zu Seite".
Generally, capitalization should never be changed programmatically. It may work for English, but certainly not German and probably a couple of other languages.
Step-by-step reproduction instructions
Switch the locale to German
Insert the "Post Featured Image" to a page (not post)
Open the block settings
Verify that the setting incorrectly reads "Link zu seite"
Screenshots, screen recording, code snippet
Environment info
WordPress 6.2
no Gutenberg plugin
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Activity