Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Translation trings not being retrieved
 
Mateusz Papiernik
Member
 
Total Posts:  32
Joined:  2008-01-04
 

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

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jonathan Hedrén
Member
 
Total Posts:  67
Joined:  2007-08-31
Sweden
 

I’ve also encountered translation bugs like that. It also seems like strings returned from block-functions don’t get translated…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mateusz Papiernik
Member
 
Total Posts:  32
Joined:  2008-01-04
 

I found that some other problematic strings were not properly escaped (double “"). I have also found on this board, that problems may sometimes happen when translation strings are being duplicated around many CSV files (which in fact in current state happens many times). Unfortunately, I have also found (reading my stuff I tend to think that I like “I have found” ...), that some strings are not being translated, either because they still are not in CSV files, or are there, but still don’t get translated. Woohoo.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jonathan Hedrén
Member
 
Total Posts:  67
Joined:  2007-08-31
Sweden
 

An update: Translations are working fine on our development environments (WinXP + WampServer2.0) but not on or test environment (Redhat Enterprise 5.1 x86 64, PHP 5.25 from REMI repository).

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
52361 users|844 users currently online|105723 forum posts