I have problems translating parts of the text with Loco Translate

This topic has 12 replies, 4 voices, and was last updated 1 months, 2 weeks ago ago by Andrew Mitchell

  • Avatar: Corrado_Lucherini
    Cor
    Participant
    September 25, 2024 at 22:28

    Hello, I cannot translate some parts of the ecommerce site.
    I have tried Loco Translate, followed your tutorial, synchronised several times. I have deleted and repeated the operations countless times.

    Thanks

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    11 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    September 26, 2024 at 05:30

    Hello, @Cor,

    Thank you for contacting us and for using XStore.

    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: Corrado_Lucherini
    Cor
    Participant
    September 26, 2024 at 10:54

    Hi, thank you.
    I have more words to translate from the product page, thank you.

    Files is visible for topic creator and
    support staff only.
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    September 26, 2024 at 11:45

    Hello, @Cor,

    Thank you for your response.

    Please rename xstore-it.po ( https://imgur.com/GtHZuOi ) to xstore-it_IT.po, and xstore-core-it.po ( https://imgur.com/u9phqHo ) to xstore-core-it_IT.po.

    Afterward, Translate/change the mentioned string in the XStore theme and core plugin language files and save settings.

    We hope this helps. Should you require further assistance, please do not hesitate to contact us.

    Best regards,
    The 8Theme Team

    Avatar: Corrado_Lucherini
    Cor
    Participant
    September 26, 2024 at 12:09

    Thank you for your reply, I have changed to rename but it still does not work…

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 26, 2024 at 12:51

    Hello, @Cor,

    Please provide FTP access.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Best regards,
    The 8Theme Team

    Avatar: Corrado_Lucherini
    Cor
    Participant
    September 26, 2024 at 14:39

    Thank

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 26, 2024 at 15:59

    Hello, @Cor,

    We’ve re-created .pot files for the theme and Core plugin. Please check the translations now.

    Best regards,
    The 8Theme Team

    Avatar: Corrado_Lucherini
    Cor
    Participant
    September 26, 2024 at 16:56

    Thanks, ‘SALE’ remained…

    Files is visible for topic creator and
    support staff only.
    Avatar: Corrado_Lucherini
    Cor
    Participant
    September 27, 2024 at 15:55

    OK I managed to solve it by writing a code in javascript in the meantime to take back the CSS…

    Thank you very much anyway for your assistance son all the other previous posts.

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 27, 2024 at 15:55

    Dear Cor,

    We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.

    Click here to rate now: https://themeforest.net/downloads

    Thank you sincerely for your ongoing support!

    Best Regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 27, 2024 at 15:56

    Hello, Cor,

    Thank you for bringing this to our attention. We have corrected the translation for ‘SALE’. Please review the changes at your earliest convenience.

    Best Regards,

    The 8Theme Team

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

The issue related to '‘I have problems translating parts of the text with Loco Translate’' has been successfully resolved, and the topic is now closed for further responses

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.