Sauter la navigation

Ce sujet est résolu. Voici une description du problème et de la solution.

Problem:
The customer is experiencing issues with automatic translation in WPML. The translations for products and pages are not being processed, and there are no error messages displayed.
TM always showing 12 pending translations
and ACF labels are displaying under TM
Solution:
For ACF labels :

/**
 * Filters out the ACF Field Group Labels packages in the WPML Translation Dashboard.
 *
 * @see https://wpml.org/de/forums/topic/field-group-labels-in-uebersetzungsliste-aber-nicht-uebersetzbar/
 * @see https://onthegosystems.myjetbrains.com/youtrack/issue/acfml-765
 */
add_filter( 'wpml_tm_dashboard_documents', function( $documents ) {
    return array_filter( $documents, function( $doc ) {
        return $doc->translation_element_type !== 'package_acf-field-group';
    } );
} );

For Automatic translation :
At present, WPML’s automatic string translation feature only works for content that matches the default language of the website. If you attempt to use the Translate Everything Automatically mode or send strings for automatic translation that do not match the default language, they will instead be added to the Translations Queue.

For 12 ghost pending translation :
This is a known issue that should be fixed in WPML 4.6.5 version

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

Marqué : ,

Ce sujet contient 28 réponses, a 2 voix.

Dernière mise à jour par nicolasF-24 Il y a 1 année et 5 mois.

Assisté par: Ilyes.

Auteur Articles
juin 2, 2023 à 12:10 pm #13761439

nicolasF-24

All the products are using these fields, can you do this on your side ? I quite don't understand all the process ...
Many thanks !

juin 2, 2023 à 5:37 pm #13763337

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello again,

I will take a look at it with the team as they will have a better idea and get back to you once I find a solution,

Thanks again for your time!

juin 5, 2023 à 9:44 am #13768733

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello,

Thanks for your patience,

we found an even simpler workaround for this, I added this code to your theme's functions.php file and it worked:

/**
 * Filters out the ACF Field Group Labels packages in the WPML Translation Dashboard.
 *
 * @see https://wpml.org/de/forums/topic/field-group-labels-in-uebersetzungsliste-aber-nicht-uebersetzbar/
 * @see <em><u>lien caché</u></em>
 */
add_filter( 'wpml_tm_dashboard_documents', function( $documents ) {
	return array_filter( $documents, function( $doc ) {
		return $doc->translation_element_type !== 'package_acf-field-group';
	} );
} );

I can no longer see the ACF labels under the translation Management,

Best,

juin 6, 2023 à 8:48 am #13776469

nicolasF-24

That's working thanks !

Does they have also a solution for the 12 ghost translations ?

Many thanks !

juin 6, 2023 à 4:12 pm #13780601

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hey again,

For the “ghost” pending translations, I have pinged the tier 2 team in case they have a fix for that,

I still did not have a reply yet, I really appreciate your patience and I will get back to you once I get any updates.

Thanks!

juin 9, 2023 à 5:43 pm #13801561

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello,

I was trying to download a copy of your site so that we can do some tests locally regarding the "ghost" pending translations using Duplicator.

However I go this error : This server cannot complete the build due to host setup constraints, see the error message for more details.
If the error details are not specific consider the options below by clicking each section.

So either your server didn't have enough resources to finish the creation of the package or your it is denying the creation of the package.

Could you please check with your hosting provider and see if you can send us a full copy of your site?

Thanks!

juin 10, 2023 à 8:42 pm #13804011

nicolasF-24

I'm checking with him and come back to you 😉

juin 11, 2023 à 8:44 am #13804695

nicolasF-24

Hi,
So the problem coming from Duplicator and not the hosting ...
We succeed to make the copy with WordPress Migration, here you will find the link to download it : lien caché

If you need some tutoriels : lien caché

Have a good day !

juin 12, 2023 à 8:11 am #13806999

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello,

Thanks for creating the copy,

I will then send this copy to our team, I will get back to you once I get any updates! 🙂

Have a good one,

juin 13, 2023 à 10:52 am #13815969

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello,

The issue is planned to be fixed in future WPML updates, tentatively WPML 4.6.5.

Thank you for your patience!

juin 13, 2023 à 1:46 pm #13817745
nicolasF-24

Many thanks for your answer !

Other question related to automatic translation and CF7, i have on form checkbox labels, and they are not translated at all, for example :

<p class="col-md-6">[select* your-language "Français" "Allemand" "Anglais"]

Remains the same in all languages, even after translations ... Do you have a solution ?

Thanks !

Les nouveaux fils créés par Ilyes et associés à celui-ci sont repris ci-dessous :

https://wpml.org/fr/forums/topic/split-automatic-translation-and-cf7-checkbox/

juin 13, 2023 à 7:41 pm #13819985
nicolasF-24

We also have a problem with automatic translation on our other website gladiatorfit.fr

It's the same admin access as gladiatorfit.ch

In fact the automatic translation is completely stuck and never go ahead ... I tried already all the debug process, but nothing change ...

Many thanks for your help

Les nouveaux fils créés par Ilyes et associés à celui-ci sont repris ci-dessous :

https://wpml.org/fr/forums/topic/split-automatic-translation-is-completely-stuck/

Capture d’écran 2023-06-13 à 21.35.56.png
juin 14, 2023 à 8:54 am #13823139

Ilyes
Supporter

Les langues: Anglais (English ) Français (Français )

Fuseau horaire: Pacific/Easter (GMT-05:00)

Hello,

As part of our support policy, we recommend having one request per ticket, it would be better if we open a new ticket under our support forum as this is a separate request.

You can expect my reply to your automatic translation and CF7 issue here: https://wpml.org/fr/forums/topic/split-automatic-translation-and-cf7-checkbox/

And for automatic translation is completely stuck here : https://wpml.org/fr/forums/topic/split-automatic-translation-is-completely-stuck/

Could you please mark this ticket as resolved if your initial questions were addressed,

Thank you for your understanding 🙂