[wp-trac] [WordPress Trac] #52047: Twenty Twenty-One: Remove untranslatable post type names
WordPress Trac
noreply at wordpress.org
Thu Dec 17 07:01:38 UTC 2020
#52047: Twenty Twenty-One: Remove untranslatable post type names
----------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6.1
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
----------------------------+---------------------
Comment (by aristath):
The post-type label itself is translatable... Just not in the theme
itself. I'll use WooCommerce products for this example but the same goes
for any plugin that registers a post-type.
If WooCommerce registers the `product` post-type then the label for that
post-type is translatable in WooCommerce since it gets added with a label
`__( 'Products', 'woocommerce' )`.
So the theme just re-uses the label registered. If that label is
translated then it will show as translated.
The fact that the post-type label is untranslatable ''in the theme''
doesn't mean that the post-type label is untranslatable... It just needs
to be translated in the plugin that adds it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52047#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list