WebDevStudios / WebDevStudios/custom-post-type-ui
Internationalization of labels/options with WPML
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 641
- Forks
- 139
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how registered settings are stored and how the save functions are reached, then read the WPML String Translation registration-hook documentation linked in the issue. Compare registering strings during setup with registering them on save, and determine whether WPML provides an unregister operation. Done means the integration approach and compatibility-file scope are decided without requiring scattered hooks throughout the codebase.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- internationalization
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100