You can do this very easily through locale file.
The locale file for English is located in app/design/frontend/your_interface/your_theme/locale/en_US/translate.csv and is formatted in the following way:
1. Each SINGLE line represents a translation, therefore before and after each translation, you need an enter.
2. Each SINGLE line of translation is formatted this way: “Base Magento text”, “Your override of Magento text”
So, if the link you want to change in the header is “My Cart” to “Cart”, just enter the following text all in a dedicated SINGLE line:
@ohminu—this works for me some of the time, not all of the time. For example, I can edit my translate.csv like so:
"You have no items in your shopping cart.","You have nothing in your shopping cart."
And it works fine. However, this does not work:
"Be the first to review this product","You like this?"
This second example only works if I go into the original Mage_Review.csv and delete out this line:
"Be the first to review this product","Be the first to review this product"
Obviously, this isn’t a good solution as every time you guys upgrade, I’d have to go back into the original Mage_*.csv files and delete out all relevant language lines.
I guess I’ll submit this as a bug, unless I’m doing something wrong here.
You can do this very easily through locale file.
The locale file for English is located in app/design/frontend/your_interface/your_theme/locale/en_US/translate.csv and is formatted in the following way:
1. Each SINGLE line represents a translation, therefore before and after each translation, you need an enter.
2. Each SINGLE line of translation is formatted this way: “Base Magento text”, “Your override of Magento text”
So, if the link you want to change in the header is “My Cart” to “Cart”, just enter the following text all in a dedicated SINGLE line:
You don’t have to edit the core files, the translation file will let you change/remove the item count (at least with Magento version 1.1.7).
For your example, RubinC:
My Cart (x Items) ==> View Cart (x)
Just enter this in the translation file (both lines):
Is it me??
I’ve tried every combination I can think of to change the “My Cart” text to “My Bag” and nothing so far has worked.
Please, exactly what should I type into column A and what (if anything) should I type in column B of the translate.csv file? Is there something else I need to do?
Alternatively, does anyone know in which file these labels are defined?
This method does work. Although the above mentioned from Thaddeusmt will only work if you have items added to your cart.
All you have to do is just go to app/design/frontend/your_interface/your_theme/local/en_US/translate.csv
Open this up in excel. And just where ever there is a open cell type in My Cart into column “A” and then right next to it in column “B” type in what you want this to turn into. Do the same for My Cart (%s item) & My Cart (%s items) to see this change when items are added to your cart.
i have nearly the same problem. but not with the translation - rather with escaping the strings in the csv-files.
for example i have following string in a core-file:
‘My Wishlist - <a href=\"%s\">%d Item(s)</a>’
neither
“My Wishlist - <a href="%s">%d Item(s)</a>","Some German Text”
nor
‘My Wishlist - <a href="%s">%d Item(s)</a>’,’Some German Text’
is working in the translation :(
some ideas?
edit: solved width 2quoutes in a row
“My Wishlist - <a href=""%s"">%d Item(s)</a>”
The only line in my translate.csv is “Checkout","Check Out”
The template file I’m expecting to see the change in is /app/design/frontend/mysite/default/template/page/template/links.phtml. Is there a certain method that the string needs to run through for this to work? e.g. __(’my text’) or is this template file immune to such cool text transformations?
I had a translate.csv file in /app/design/frontend/mysite/default/locale/en_US, which is apparently being completely ignored. I then created a translate.csv file in /app/local/en_US and it worked. Great documentation.
Examine the files in app/locale/en_US (U.S. English in my case) to see what strings you can translate. I wasn’t getting My Wishlist to translate until I examined Mage_Wishlist.csv and discovered it was looking for %d instead of %s, as My Cart does.
For me, putting the translate.csv file in the locale/en_US folder of my theme worked like a charm.