|
Hey,
I am working on a polish translation for Magento right now, updating available translation files to the newest released version. I have stumbled upon a problem. Some strings are not being retrieved. E.g. in the right shopping cart box, there is My Cart - 0 item(s) text. In the original en_EN csv file there is a line:
“My Cart - <a href=""%s"">%d item(s)</a>","My Cart - <a href=""%s"">%d item(s)</a>”
which clearly corresponds to
<h4><?=$this->__('My Cart - <a href="%s">%d item(s)</a>', $this->getUrl('checkout/cart'), $this->helper('checkout/cart')->getItemCount())?></h4>
in the template. No mispellings or other errors I can spot. The text however is not replaced, when I change the translated string. No matter what I change. Let’s assume very simple change:
“My Cart - <a href=""%s"">%d item(s)</a>","Koszyk - <a href=""%s"">%d item(s)</a>”
It doesn’t matter if I change that in my pl_PL locale file, or if I change it in en_EN and leave it as an only possible translation (by removing pl_PL from locale directory). Why is that Magento doesn’t retrieve that particular string? I can’t find the possible solution. The problem happens in other places too.
Any help would be appreciated.
Btw, also some strings are not available in translation files (en_EN), whereas they are retrieved using $this->__(’...’). If you would like, I could make a report where that happens to help update translation files.
Best regards,
Mateusz
|