[Resolved] Counter widget not translating properly
This thread is resolved. Here is a description of the problem and solution.
Problem:
Elementor widget not translating properly is the Counter widget. I see the 'prefix' field in the ATE but the 'ending_number' and 'suffix' fields are no where to be found.
Solution: in : wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/class-wpml-elementor-translatable-nodes.php Change from:
It just took a long while for the translated images to show, but these appear to be working now, thank you!!
Another Elementor widget not translating properly is the Counter widget. I see the 'prefix' field in the ATE but the 'ending_number' and 'suffix' fields are no where to be found.
Sorry, your Website login credentials are removed when you marked your previous ticket as resolved. Could you share it here again so that I could check on it?
This makes the suffix show up, but the number doesn't. That field is 'ending_number' but even if I add that to the custom XML configuration, it still doesn't show in the ATE.
Our 2nd Tier Support checked, and they mentioned that including numbers in a translation job is incorrect. So the proper workflow for that would be to use a translation editor and adjust the translation manually with the Elementor's editor.
WPML can translate numbers but usually for shortcode related such as the ID parameter.
Translating numbers on an Elementor module is not available and for your case, the "Counter" widget, you can use this workaround below.
However, it is not recommended since every update will replace the workaround code. But if you insist, you can try the following.
in : wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/class-wpml-elementor-translatable-nodes.php Change from: