Loco translate does not translate some parts.

This topic has 11 replies, 4 voices, and was last updated 7 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: Murad
    Murad
    Participant
    March 31, 2024 at 17:43

    1) Loco translate does not translate some parts. Can you look at this issue?

    2 parts not translated
    1) Save my name, email, and website in this browser for the next time I comment.
    2) Page

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    10 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    April 1, 2024 at 08:10

    Hi @Murad,

    We hope this message finds you well.

    Should you encounter any difficulties with the Loco Translate plugin, you have the alternative option of inserting the code snippet provided below into the functions.php file located within your child theme directory:

    
    function n2t_text_strings( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Save my name, email, and website in this browser for the next time I comment.' :
                $translated_text = 'Növbəti dəfə şərh yazmağım üçün, adımı, elektron poçtumu bu brauzerə qeyd edin.';
                break;
            case ' – Page %s' :
                $translated_text = ' – Səhifə %s';
                break;
        }
        return $translated_text;
    }
    add_filter( 'gettext', 'n2t_text_strings', 20, 3 );
    

    We trust that these instructions will be of assistance to you. Should you require any further support, please do not hesitate to reach out.

    Best Regards,
    The 8Theme Team

    Avatar: Murad
    Murad
    Participant
    April 1, 2024 at 11:36

    I have added the code you gave to the child theme (functions.php). One was translated, the other was not.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 1, 2024 at 12:13

    Hi @Murad,

    Please clear the cache and check now – https://prnt.sc/Cc2wCIEj3UkZ

    Best Regards,
    The 8Theme Team

    Avatar: Murad
    Murad
    Participant
    April 1, 2024 at 14:10

    Yes, it has been translated. Irelide what do I need to do to do such translation processes myself. For example, there is a new untranslatable word, what will I need to do to translate it?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 1, 2024 at 14:29

    Hi @Murad,

    You’re welcome!

    Go to Loco Translate > Plugins > edit translation of WooCommerce > find and translate strings; edit translation of XStore Core plugin. Loco Translate > Themes > XStore theme > edit the translation.

    Best Regards,
    The 8Theme Team

    Avatar: Murad
    Murad
    Participant
    April 1, 2024 at 14:34

    Some promises do not work with this method, how should I do with the code writing you said?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 1, 2024 at 15:43

    Hi @Murad,

    We hope this message finds you well.

    We are currently facing a challenge with the translation functionality for the phrase “Save my name, email, and website in this browser for the next time I comment.” You have the option to either retain the existing code or remove it, after which we can investigate the cause of the translation issue.

    Please inform us of your decision at your earliest convenience. In order to delve into the problem and provide a solution, we would require FTP access.

    We appreciate your cooperation and look forward to your prompt response.

    Best Regards,
    The 8Theme Team

    Avatar: Murad
    Murad
    Participant
    April 1, 2024 at 16:09

    Actually, none of them had any problems, I added the code you gave and both results were achieved. What I want to ask is how can I do the translation myself by writing code?

    Files is visible for topic creator and
    support staff only.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 1, 2024 at 16:17

    Hi @Murad,

    Thank you for your prompt response.

    We would like to inform you that our theme has been designed in such a way that writing code is not a necessity, as translation through Loco Translate is significantly simpler. Writing code can be complex and dependent on various factors, so we suggest that you reach out to us if you encounter any difficulties with the translation process.

    However, if you are still interested in writing code for translation purposes, we kindly ask that you first refer to the WordPress documentation about this, as it is a fairly common inquiry and our theme does not impose any special restrictions in this regard.

    Should you require further assistance, please do not hesitate to contact us.

    Best Regards,
    The 8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    April 1, 2024 at 16:46

    Dear Murad,

    Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?

    Click here to share your insights: https://themeforest.net/downloads

    Your support fuels our journey, and we appreciate it more than words can express.

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Loco translate does not translate some parts.’' 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.