How to translate shopping cart (0 item) etc? I managed to translate the shopping cart part with the translate inline but not the item part.
9 answers
Hi Kalle,
I am not entirely sure about the issue you mentioned. I would be best if you could send me your site url and illustration screenshort. I will help to debug.
Please attach this link to PM.
Best Regards,
Ziven.
That is located in /app/design/frontend/default/jm_book/template/page/html/jmtoolbar.phtml.
Item and items can be found in the following codes:
Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' items)';
} else {
echo '('.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' item)';
}
Hi Kalle,
Please try change to the code
Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' '.$this->__('items');
} else {
echo '('.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' '.$this->__('item');
}
and add the translate to the file csv in \app\design\frontend\default\jm_book\locate
Best Regard,
Ziven.
I accidentally didn’t post the code properly. They are in link elements. I tried what you suggested and it broke the toolbar. Here is the code:
echo '(<a class="gotocart" href="'.Mage::getUrl("checkout/cart").'">'.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' Items</a>)';
} else {
echo '(<a class="gotocart" href="'.Mage::getUrl("checkout/cart").'">'.Mage::getSingleton('checkout/session')->getQuote()->getItemsSummaryQty().' Item</a>)';
} ?>
Hi Kalle,
The site http://sarjakuvakeskus.fi/kauppa/ right?
I can’t go to the FTP for try fix it.
Please resend to me.
Best Regards,
Ziven.
Hi Kalle,
Just wonder if your issue has been solved or not? I see the item have been translate.
Best Regards,
Ziven.
Hi Kalle,
It is great to know that you solve the issue. Please let us know if you need any further assistance!
Lara