Translate search bar from english to dutch

This topic has 6 replies, 2 voices, and was last updated 2 weeks, 2 days ago ago by Jack Richardson

  • Avatar: maybendeler
    maybendeler
    Participant
    September 3, 2024 at 11:20

    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

    Files is visible for topic creator and
    support staff only.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 3, 2024 at 15:26

    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

    Avatar: maybendeler
    maybendeler
    Participant
    September 4, 2024 at 07:51

    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.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 4, 2024 at 10:16

    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

    Avatar: maybendeler
    maybendeler
    Participant
    September 4, 2024 at 13:03

    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.

    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    September 4, 2024 at 13:46

    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

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.