Passer au contenu Passer à la barre latérale

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

Problem:
The client is experiencing issues with a large number of strings (almost 3000) appearing after scanning two plugins for translation with WPML. The client wants to translate only front-end strings and avoid translating unnecessary strings, such as admin/dashboard strings, to save on translation costs. Additionally, the client encountered a problem where the translation page remains blank after sending strings to the translation basket.

Solution:
1. To remove untranslated strings in bulk for a chosen domain, we recommend following this guide: Deleting Strings documentation.

2. To capture only the strings that appear on the front-end, use the "Look for strings while pages are rendered" option. Activate this option and visit the front-end pages where the desired strings are displayed. If this method does not capture the strings due to the way they are added to the plugin, a scan may be required. We suggest manually searching for and translating the specific meta data and button texts within String Translation, as these typically amount to only 10-20 strings.

3. If the translation editor is stuck, it may be due to a 1MB limit on the translation job. To resolve this, cancel the translation job by following the steps in this guide: How to Cancel Translation Jobs.

If these solutions do not seem relevant to your situation, please open a new support ticket with us, and provide the URL where the strings you want to translate appear, along with a screenshot of the specific strings. You can open a new ticket here: WPML Support Forum.

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.

Ce sujet contient 5 réponses, a 2 voices.

Dernière mise à jour par Bruno Kos Il y a 1 année et 9 mois.

Assisté par: Bruno Kos.

Auteur Messages
Novembre 21, 2023 à 10:20 pm #14891639

sirineZ

I realized I was missing some strings from my events (the event calendar/pro), mainly meta datas(hours, start, end, organizer, venue, etc..) in the strings retrieved while operating the parameters of Wpml. I tried a first time to re-analyze the 2 concerned plugins and unfortunately, almost 3000 strings appeared. It is a lot of content to sort. Mostly when I don't have much informations to display on my website regarding these plugins. Do you have an idea how I could solve this without having to retrieve those 3000 strings ? I know cleared my WPML installation and tried again hoping to find a decent solution.

Novembre 23, 2023 à 7:39 am #14904041

Bruno Kos
Partisan de WPML depuis 12/2018

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

Fuseau horaire: Europe/Zagreb (GMT+02:00)

Hi,

Thank you for contacting WPML support!

If I understood this right, you want to remove untranslated strings? If so, can you check this?
https://wpml.org/fr/documentation-6/guide-de-demarrage-rapide/string-translation/#deleting-strings

You can do it in a bulk for a chosen domain.

Regards,
Bruno Kos

Novembre 23, 2023 à 11:38 am #14907225

sirineZ

Ok but so as I expected, I have to sort the strings one by one... For example, I only want to translate automatically the strings that will appear on the front-end of the website, I don't need no admin/dashboard translation. It is not very clear what item I need to keep for my automatic translation. I don't want to pay for strings I have zero interest in, it is quite expensive. Can you point out or suggest some stuff I can exclude ?

Novembre 23, 2023 à 2:28 pm #14909051

Bruno Kos
Partisan de WPML depuis 12/2018

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

Fuseau horaire: Europe/Zagreb (GMT+02:00)

You can try with "Look for strings while pages are rendered". So you activate this option and just visit the frontend where the strings that you want to translate appear.

However sometimes this function will not be able to read the page and find the strings, given how they are added into the plugin so a scan will be required.

But note that typically you only need to translate few strings - if you only need to translate meta data and button texts or similar, it may amount to maybe 10-20 strings at most so I suggest you search for these and translate manually within String Translation.

activate option.jpg
Novembre 23, 2023 à 5:54 pm #14910815

sirineZ

The options you recommend didn't seem to work. On the other hand, I am trully confused in the domains strings related to The Events Calendar - there are almost 4000 stuff and I don't have a clue how to determine which is admin (as the options you suggested don't work) and which is front-end and have a lot of work ahead of me so I was thinking I could translate automatically the strings without sorting. It is kind of complicated for me to determine which string corresponds to what because I use Elementor, Elementor Pro, The Events Calendar, Calendar pro and I don't even know what info (an ID ? an element ID ? can you precise how to find the related string?) to retrieve to start sorting the strings I really need. I would obviously rather do it because it would make me spare money on the automatic translation... Anyways, I already tried sorting a little bit, send the strings to the translation basket, had more than 52000 words and then when going to "Translations" - selecting the strings batch I created and click on "Translate" - the page remains blank (see attachment). I am completely lost now. Is it because my batch is too big ? The page keeps loading but nothing ever appears :/

Capture d'écran 2023-11-23 183052.png
Novembre 24, 2023 à 9:19 am #14914825

Bruno Kos
Partisan de WPML depuis 12/2018

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

Fuseau horaire: Europe/Zagreb (GMT+02:00)

Yes, it is possible that translation editor is stuck because currently there is a 1MB limit on the translation job.

Can you cancel it like this?
https://wpml.org/documentation/translating-your-contents/#how-to-cancel-translation-jobs

Perhaps it would be the best if we do the following:
- Send me the URL and logins for your site
- send me the URL where strings that you want to translate appear
- also send me a screenshot to show me strings that you want to translate and I will have a look