-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Internationalization (i18n)Issues or PRs related to internationalization effortsIssues or PRs related to internationalization efforts[Block] Post Featured ImageAffects the Post Featured Image BlockAffects the Post Featured Image Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
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
- 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.
Yes
Metadata
Metadata
Assignees
Labels
Internationalization (i18n)Issues or PRs related to internationalization effortsIssues or PRs related to internationalization efforts[Block] Post Featured ImageAffects the Post Featured Image BlockAffects the Post Featured Image Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
