qrs
qrs

Reputation: 177

Why does Magento CSV translation file seem to work only sporadically?

How come this line doesn't translate in translate.csv file? The translate.csv file is located in the correct place and works most of the time but on a few places like below it doesn't work. How come it works sometimes and sometimes it doesn't?

My csv file is in UTF-8 in the app\design\frontend\spanish\default\locale\es_ES directory.

<div class="block" id="creare-container">
          <div class="block-title"> <strong><span><?php echo $this->__('Need it Quick?') ?></span></strong> </div>

This module doesn't have and translation module csv in the app\locale directory either.

Thanks

Upvotes: 0

Views: 6163

Answers (4)

Gerard de Visser
Gerard de Visser

Reputation: 8050

Some strings are translated at multiple files from app/locale, like "Add to Cart" (Mage_Catalog.csv, Mage_Sales.csv, Mage_Checkout.csv). This can cause troubles with overwriting them in your theme translate.csv file.

In these cases it will be helpfull to specify which translation file from app/locale should be overwritten in your translate.csv file, e.g.:

"Mage_Catalog::Add to Cart","Translation"

Upvotes: 1

Krishnendu Sarkar
Krishnendu Sarkar

Reputation: 67

you have to write exact the same thing what you have write within php tag.. just copy that exact thing, put it in your tr

Upvotes: 1

Martin
Martin

Reputation: 2673

In the echo you have Small letters:

$this->__('Need it Quick?')

You need to use the same to the translation CSV file

just change a line in CSV file from: "NEED IT QUICK?","NEED IT RÁPIDO?"

to: "Need it Quick?","NEED IT RÁPIDO?"

Upvotes: 1

qrs
qrs

Reputation: 177

This is not really an answer but I didn't have room.

I have my cache disabled. Here is the line in my CSV file:

"NEED IT QUICK?","NEED IT RÁPIDO?"

it's exactly the same as the the ones that work. Here is the whole file, not much in it because I was having to add special code for the html entities until I found i had to save it in UTF-8 :) so I was redoing it correctly. Anyway here it is:

"Most Viewed Items","Artículos Mas Vistos"
"Your Billing Information","Tu información de facturación"
"Special Angels","Angels Especiales"
"NEED IT QUICK?","NEED IT RÁPIDO?"

Actually, the Most Viewed Items doesn't translate either. I've changed the wording too just to test it in case there was some conflict.

Upvotes: 0

Related Questions