This topic has 11 replies, 4 voices, and was last updated 7 months, 3 weeks ago ago by Andrew Mitchell
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
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
I have added the code you gave to the child theme (functions.php). One was translated, the other was not.
Hi @Murad,
Please clear the cache and check now – https://prnt.sc/Cc2wCIEj3UkZ
Best Regards,
The 8Theme Team
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?
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
Some promises do not work with this method, how should I do with the code writing you said?
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
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?
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
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
The issue related to '‘Loco translate does not translate some parts.’' has been successfully resolved, and the topic is now closed for further responses