This thread is resolved. Here is a description of the problem and solution.
Problem:
The client was unable to find and translate strings from the Ultimate GDPR & CCPA plugin using WPML.
Solution:
1. We recommended following the guides to find strings that don't appear on the String Translation page:
- Ultimate GDPR & CCPA translation guide
- Finding strings in WPML documentation
2. We provided a workaround for a fatal error that occurred, which was resolved by following a solution from another support ticket.
3. We advised the client to add Gettext functions to the code to make the strings available for translation, as per the WPML documentation:
Enabling text translation for themes not compatible with WPML
If the solution provided is not relevant due to being outdated or not applicable to your case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Documentation request
This topic contains 8 replies, has 2 voices.
Last updated by Carlos Rojas 8 months, 1 week ago.
Assisted by: Carlos Rojas.
Author | Posts |
---|---|
March 21, 2024 at 10:22 am | |
erkkiM |
Translate strings from Ultimate GDPR & CCPA |
March 21, 2024 at 10:55 am | |
March 21, 2024 at 11:14 am #15435853 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, Is it possible to deactivate all plugins and activate a default WordPress theme to double-check if the issue disappears? If the above is not possible, then could you create a staging site with a copy of the live site? |
March 22, 2024 at 6:00 am #15438775 | |
erkkiM |
its open ticket... |
March 22, 2024 at 7:31 am #15438870 | |
erkkiM |
Also here is file you can translate it manually but its not what im looking for. <?php /** function ct_tcf_custom_translations($translations) { /** $my_custom_translations['en'] = [ /** return $my_custom_translations; Buz i have also sites what use more then one language and to translate it via this is not good. |
March 22, 2024 at 9:45 am #15439644 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Hi there, I'm sorry but I don't understand your messages. Could you elaborate a little more? |
March 22, 2024 at 10:34 am #15439835 | |
erkkiM |
The code what i shared before is from GDPR and i need to add it to function.php but this dont resolve my problem. Did you get my test site info? |
March 22, 2024 at 10:43 am #15439855 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
I understand that you need to translate the code in this message: https://wpml.org/forums/topic/translate-strings-from-ultimate-gdpr-ccpa/#post-15438870 If the above is correct then you will need to add the Gettext functions to make the strings available for translation: https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/ If what I understood is incorrect, then I kindly ask you to walk me through it so I can understanding it correctly 🙂 |
March 23, 2024 at 9:43 am #15442992 | |
erkkiM |
But by any chance i cant translate it as i do other translations? via strings? |
March 25, 2024 at 10:32 am #15445766 | |
Carlos Rojas Supporter
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+01:00) |
Yes, you will be able to translate these strings via String Translation once you use the Gettext functions as described in the links I shared on my previous message. |