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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Europe/Madrid (GMT+01:00)
Tagged: ATE
This topic contains 7 replies, has 1 voice.
Last updated by Marcel 4 days, 11 hours ago.
Assisted by: Marcel.
Author | Posts |
---|---|
November 18, 2024 at 2:24 pm #16415260 | |
maarten |
Background of the issue: Symptoms: Questions: |
November 18, 2024 at 5:21 pm #16416141 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, Currently, we don't have functionality to exclude specific fields from translation; our system always translates everything by default. However, you can customize this by adding a script to your functions.php file. Here's a helpful example to get you started: Exclude Specific Fields from Automatic Translation. You can adapt it as needed for your specific use case. Best regards, |
November 25, 2024 at 10:49 am #16439223 | |
maarten |
Can you help me with this please? the product title for example? How can i make sure the "description" and "short description" and the "title" don't get overwritten during automatic translation. |
November 25, 2024 at 10:54 am #16439234 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi, The example code I provided ensures these fields are excluded from translation. There’s no overwriting involved, as they are not included in the translation job. Best regards, |
November 25, 2024 at 10:58 am #16439250 | |
maarten |
but the products are still automatic created if i'm correct? so this should solve the issue: add_filter('wpml_tm_job_field_is_translatable', 'testfield', 10, 2); // Haal de originele post-ID op gekoppeld aan de vertaaltaak // Haal het posttype op van de originele post // Controleer of het veld niet vertaald mag worden |
November 25, 2024 at 5:10 pm #16441424 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Yes, the translation process still starts, but some fields are excluded beforehand. The modifications you made to the snippet appear to be correct. However, please note that we cannot provide more in-depth debugging support regarding custom code. Best regards, |
November 29, 2024 at 11:35 am #16459132 | |
maarten |
hello, this snippet failed massivly. I have started automatic translation and the descrption and short description are also translated wich costs me +700 euro's. Since you are the plugin developer, you should be able to help me with this issue. not? |
November 29, 2024 at 11:47 am #16459206 | |
Marcel Supporter
Languages: English (English ) German (Deutsch ) Timezone: Europe/Madrid (GMT+01:00) |
Hi,
I shared an example to help you get started, which can be adapted to your specific use case. It’s always a good practice to test changes like this in a development environment with a small number of products first, ensuring everything works as expected before applying them more broadly. Our plugin is designed to provide predefined solutions. If these don't meet your needs and adjustments are required, custom coding becomes necessary. While we're happy to provide guidance, creating a fully functional custom solution falls outside our support policy. As noted, this specific functionality isn’t currently available, and there are no immediate plans to integrate it. For customizations like this, we recommend reaching out to a certified WPML contractor, who can assist in tailoring a solution for you. You can find a list of contractors here: https://wpml.org/contractors/. That said, if this feature gains more interest from our user community, we may consider it for future updates. Thank you for your understanding! If you have any other questions, feel free to reach out. Best regards, |