"Link to […]" should not lowercase post type label #49587
Labels
[Block] Post Featured Image
Affects the Post Featured Image Block
Internationalization (i18n)
Issues or PRs related to internationalization efforts
[Type] Bug
An existing feature does not function as intended
Description
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
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.
Yes
The text was updated successfully, but these errors were encountered: