This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is facing two issues with their variable, virtual, and downloadable products on a multilingual website. The first issue involves the German translations of product attribute labels not appearing on the frontend, despite being translated and synchronized. The second issue concerns the handling of different downloadable files for product variations across different language versions, where file URLs are overwritten upon synchronization.
Solution:
For the first issue, we recommend checking if the theme update resolves the problem, as sometimes theme conflicts can affect translations. If the issue persists, the client might consider using a custom filter in the functions.php file as a temporary workaround:
add_filter('woocommerce_attribute_label', function($label, $name, $product) {<br /> if (!defined('ICL_LANGUAGE_CODE') || ICL_LANGUAGE_CODE !== 'de') {<br /> return $label;<br /> }<br /> $translations = [<br /> 'pa_tsvyat' => 'Farbe',<br /> 'pa_vazrast' => 'Alter',<br /> ];<br /> return $translations[$name] ?? $label;<br />}, 20, 3);For the second issue, ensure that the WPML Translation Editor settings are configured to display all links. Make a minor update to the original language content to refresh the translation job, allowing the file URLs to be editable in the translation editor.
Please note that these solutions might become outdated or may not directly address your specific case. If these steps do not resolve your issues, 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 problems persist, 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.
This topic contains 17 replies, has 0 voices.
Last updated by 1 month, 4 weeks ago.
Assisted by: Shekhar Bhandari.

