Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization of labels/options with WPML #851

Open
tw2113 opened this issue Mar 30, 2022 · 1 comment
Open

Internationalization of labels/options with WPML #851

tw2113 opened this issue Mar 30, 2022 · 1 comment
Labels
i18n Internationalization
Milestone

Comments

@tw2113
Copy link
Member

tw2113 commented Mar 30, 2022

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 tw2113 changed the title Internationalization of labels/options. Internationalization of labels/options with WPML Mar 30, 2022
@tw2113
Copy link
Member Author

tw2113 commented May 11, 2022

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

@tw2113 tw2113 added the i18n Internationalization label May 17, 2022
@tw2113 tw2113 added this to the 1.14.0 milestone Aug 2, 2022
@tw2113 tw2113 modified the milestones: 1.14.0, 2.0.0 Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n Internationalization
Projects
None yet
Development

No branches or pull requests

1 participant