WebDevStudios / WebDevStudios/custom-post-type-ui

Internationalization of labels/options with WPML

Open
#851 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

i18n
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.