This topic has 12 replies, 4 voices, and was last updated 2 months, 3 weeks ago ago by Andrew Mitchell
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
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
Hi, thank you.
I have more words to translate from the product page, thank you.
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
Thank you for your reply, I have changed to rename but it still does not work…
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
Thank
Hello, @Cor,
We’ve re-created .pot files for the theme and Core plugin. Please check the translations now.
Best regards,
The 8Theme Team
Thanks, ‘SALE’ remained…
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.
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
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
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