- Status
- Resolved
- Resolved in
- WPML String Translation 2.5.4
Overview of the issue
In some cases, when a string coming from a page builder is updated, the old version of the string is still showing in the Translation Editor.
Workaround
This issue will be fixed in next version of WPML String Translation. In the meantime, you can use the following patch.
In the ../wpml-string-translation/classes/page-builders/class-wpml-pb-string-translation.php file, on line 103, replace:
if ( ! $this->is_job_in_progress( $job_id ) ) {
With:
if ( ! $job_id || ! $this->is_job_in_progress( $job_id ) ) {
For existing translation jobs with duplicated fields, please follow the steps bellow (after adding the patch):
1. Go to the editing screen of the page that features the strings in question.
2. Make sure no translation jobs are currently “in progress”.
3. If a job is in progress, complete it first.
4. Go back to the page editing screen and click on Update.
5. Open the translation editor again and the duplicated fields should be removed.