custom-post-type-ui icon indicating copy to clipboard operation
custom-post-type-ui copied to clipboard

Internationalization of labels/options with WPML

Open tw2113 opened this issue 3 years ago • 1 comments

https://wpml.org/wpml-hook/wpml_register_single_string/

Requires: "WPML String Translation" module

Example:

$value = 'Movie';
do_action( 'wpml_register_single_string', 'my-text-domain', 'Singular Label', $value );

Can we fetch our registered settings, iterate over and push that through to this hook, and have it work, without having to also drop this action throughout the rest of our codebase? Would allow for a compatibility file that we load as needed.

Or, do we just need to run this upon save functions? Is there an unregister equivalent?

tw2113 avatar Mar 30 '22 14:03 tw2113

Could we potentially do something here for WPML in a similar way as what we have in 503-polylang-support ?

tw2113 avatar May 11 '22 02:05 tw2113