This topic has 6 replies, 2 voices, and was last updated 3 months, 2 weeks ago ago by Jack Richardson
Good day, i want to translate some strings in the webshop from english to dutch/ I’ve installed the loco plugin, but somehow this string does not translate. see screenshot
Hello, @maybendeler,
To address the issue you are experiencing, we syncronized the translations of XStore theme and XStore Core plugin in your Loco translate plugin and also inserted the following code into the functions.php file of your child theme, so please, verify if the problem persists:
function n2t_text_strings($translated_text, $text, $domain) {
switch ($translated_text) {
case 'Search Results for: %s':
$translated_text = 'Zoekresultaten voor: %s';
break;
}
return $translated_text;
}
add_filter('gettext', 'n2t_text_strings', 20, 3);
We trust that this adjustment will resolve the issue.
We appreciate your understanding and are here to support you with any additional questions or needs you may have.
Kind regards,
Jack Richardson
The 8Theme Team
Good day unfortuantly the code does not work; the error says; The snippet is deactivated due to an error on line 2:
Cannot redeclare function n2t_text_strings.
Dear @maybendeler,
I hope this message finds you well. We are reaching out to request further information regarding the warning you mentioned about the snippet deactivation. At present, we have not observed this issue on our end.
Additionally, we would like to confirm that the snippet we developed for you is functioning correctly, as it successfully translates text. You can view the performance here: https://prnt.sc/SSGSUg9qD7wp.
Could you kindly provide us with the details of where you encountered the warning? Your assistance in this matter would be greatly appreciated.
Best regards,
Jack Richardson
The 8Theme Team
I see this one is working indeed. However, there are still a lot which do not translate with loco translate. for example the fields in het check-out. see screenshot.
Dear @maybendeler,
We hope this message finds you well. We would like to inform you that the strings for the Checkout page widget can be translated and modified by accessing the appropriate settings. Please visit the following link for a visual guide: https://prnt.sc/5dOx-HwRAaAB.
To make these adjustments, kindly navigate to the checkout page and select ‘Edit with Elementor’. Once there, click to edit the ‘Checkout page’ widget. You will find the settings necessary to set the translations.
Should you require further assistance with translations or encounter any issues, please provide detailed descriptions and screenshots of the specific problems. We are here to guide you through the process of translating these strings effectively.
Best regards,
Jack Richardson
8Theme’s Team
You must be logged in to reply to this topic.Log in/Sign up