WebDevStudios / custom-post-type-ui

Admin UI settings for creating custom post types and taxonomies in WordPress
https://webdevstudios.com
GNU General Public License v2.0
626 stars 144 forks source link

Individual CPT UIs i18n #686

Open Panzermaus opened 6 years ago

Panzermaus commented 6 years ago

Hello!

The i18n of plugin's own UI is perfect, but UI of each particular CPT is rendered by WP itself. And AFAICS inside WP labels are never __()-wrapped. The last chance for this is just before passing them to WP at custom-post-type-ui.php, lines 342 343 519 520 881.

Perhaps you'll find it useful.

tw2113 commented 6 years ago

The biggest issue with most of those spots is the fact that the __() functions and all its variations aren't meant to parse PHP variables. Because of that, we don't have a great solution for internationalization of user-provided values/labels/etc. Adding to the struggles is that we store everything in the database.