Problem with translation in shop elements

This topic has 8 replies, 3 voices, and was last updated 13 hours, 24 minutes ago ago by Rose Tyler

  • Avatar: EE Eric
    EE Eric
    Participant
    December 16, 2024 at 19:08

    Hello there,

    I have a problem like in topic. I already add xstore theme translation to polish and sync it with loco translate, but still i cannot change words like BUY NOW, CHECKOUT, QUICK VIEW, BUY NOW, SUBTOTAL, REMOVE, COUPON CODE, PROCEED TO CHECKOUT, CLEAR SHOPPING CART etc.

    Do you have any idea how to fix it?

    7 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 17, 2024 at 06:19

    Hello, @EE Eric,

    Thank you for reaching out to us with your concerns regarding the translation of your website.

    Please rename https://gyazo.com/ae3dae16c3e5fb3d193c98db38018c84 and https://gyazo.com/2c3fc6320c29e46b710b58e23a6a1fd3 to xstore-pl_PL.po and xstore-core-pl_PL.po

    Afterward, Do not forget to find and translate strings for the XStore theme, Xstore Core plugin, and Woocommerce plugin.

    We hope this helps. Should you require any further assistance, please do not hesitate to reach out. We are here to help you.

    Best Regards,
    8Theme’s Team

    Avatar: EE Eric
    EE Eric
    Participant
    December 17, 2024 at 09:01

    Thanks, for almost every text it works, but now it doesn’t work for:
    1. https://prnt.sc/eVv4fUD1edfQ
    2. https://prnt.sc/WrdidEBYpz_R

    But xstore theme and core have those items translated.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 17, 2024 at 09:24

    Hello, @EE Eric,

    Thank you for your response.

    1/ We have identified an issue with the Loco Translate plugin concerning the translation of certain text strings. To resolve this, we kindly request that you insert the following code snippet into the functions.php file located within your child theme’s directory:

    function n2t_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Clear shopping cart':
                $translated_text = 'Your Text 1';
                break;
            case 'Coupon code':
                $translated_text = 'Your Text 2';
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );

    We trust that this adjustment will address the translation discrepancies you have encountered.

    Best regards,
    The 8Theme Team

    Avatar: EE Eric
    EE Eric
    Participant
    December 17, 2024 at 09:27

    so I should add this code to every single text which isn’t translated?

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    December 17, 2024 at 09:50

    Hello, @EE Eric,

    Please add the following code to translate the text for “Clear shopping cart” and “Coupon code.”

    If you continue to experience issues with other words, kindly provide screenshots highlighting the specific text you wish to change. Additionally, please share your site’s WordPress admin access in the private content area so we can review your settings in detail and assist you further.

    Best regards,
    The 8Theme Team.

    Avatar: EE Eric
    EE Eric
    Participant
    December 17, 2024 at 15:12

    words I want to change: https://we.tl/t-ivioARuVjq

    and in the private content active link to login.

    Content is visible for topic creator and
    support staff only.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 17, 2024 at 16:48

    Hello, @EE Eric,

    Edit page using Elementor – https://prnt.sc/ZrMtRR0YhOex > change texts in settings of elements, for example – https://prnt.sc/JlUNPmC46OXf

    Best regards,
    The 8Theme Team

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

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

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