This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago ago by Robert Hall
Hello,
I installed Legenda theme with WMPL – already translated default.po file to Polish (website is going to be in 3 languages) – sadly there are some spots that are untranslated and not in default.po file. I mainly mean “items for” in cart – i found that it is in woo.php file of the theme but website will be in 3 languages so i need the option to translate it via translations not code change.
I hope you’ll be able to help.
Hello,
Please provide us with wp-admin and FTP credentials in Private Content.
Regards,
Robert Hall
Sure thing
I’ve replaced the following code in \wp-content\themes\legenda\framework\woo.php file on line 938
<span class="badge-number"><?php echo $woocommerce->cart->cart_contents_count; _e(' items for', ETHEME_DOMAIN);?></span>
with
<span class="badge-number">
<?php echo $woocommerce->cart->cart_contents_count; ?> <?php echo ($woocommerce->cart->cart_contents_count != 1) ? __('items', ETHEME_DOMAIN) : __('item', ETHEME_DOMAIN) ; ?></span> <span class="for-label"><?php _e('for', ETHEME_DOMAIN) ?></span>
</span>
Also this will be fixed in the next theme update. Please check the translation now.
Regards,
Robert Hall
Thank You very much. Works perfectly now.
You’re welcome!
Regards,
Robert Hall
You must be logged in to reply to this topic.Log in/Sign up