Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 3
Way to change “My Account” “Checkout” etc, links? 
 
andrewmaier
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2008-01-13
 

Any way to change the actual text that links to these abilities and/or delete some of them? I just wants three links in the top right:

“Help”
“Account”
“Cart”

If nothing so obvious, I can always make my own block that creates them my way....

-A

 
Magento Community Magento Community
Magento Community
Magento Community
 
NueBe
Member
 
Total Posts:  65
Joined:  2007-09-30
Tres Cantos - Madrid - Spain
 

dont delete, only define css like display:none in the tag you need. or use visibility:hidden depends you want

 
Magento Community Magento Community
Magento Community
Magento Community
 
finch8243
Sr. Member
 
Total Posts:  79
Joined:  2007-08-31
 

@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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
finch8243
Sr. Member
 
Total Posts:  79
Joined:  2007-08-31
 

Looks like others have noticed this—it’s already in the bug system:
http://www.magentocommerce.com/bug-tracking/issue?issue=1982

 
Magento Community Magento Community
Magento Community
Magento Community
 
RubinC
Jr. Member
 
Total Posts:  11
Joined:  2008-10-11
 
ohminu - 27 January 2008 09:56 PM

Hello andrewmaier.

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:

"My Cart""Cart"

As to having the list of links you mentioned, first you will need to consolidate the links to one, and there’s already been a thread about this here: http://www.magentocommerce.com/boards/viewthread/1212/

Thats works only when the cart is empty. And is there a way to remove the word items from the My Cart (x Items) ==> View Cart (x)?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Voot
Sr. Member
 
Total Posts:  261
Joined:  2008-03-20
Long Beach, CA
 

You can do this but you’ll have to edit the core files. Go to app > code > core > Mage > Checkout > Block > Links.php

Notice around lines 47, that’s where you can remove the (# items) or change the text “My Cart” to whatever you want.

$text $this->__('My Cart (%s item)'$count);
            
elseif( $count {
                $text 
$this->__('My Cart (%s items)'$count);
            
else {
                $text 
$this->__('My Cart');
 
Magento Community Magento Community
Magento Community
Magento Community
 
thaddeusmt
Member
 
Avatar
Total Posts:  33
Joined:  2009-02-02
Bozeman, MT
 

@RubinC and Vutha

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):

“My Cart (%s item)”, “View Cart ( %s )”
“My Cart (%s items)”, “View Cart ( %s )”

 
Magento Community Magento Community
Magento Community
Magento Community
 
keymex
Jr. Member
 
Total Posts:  2
Joined:  2009-02-11
 

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Cole Geissinger
Sr. Member
 
Avatar
Total Posts:  174
Joined:  2008-12-23
Northern California
 

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
doctorlogos
Sr. Member
 
Avatar
Total Posts:  178
Joined:  2008-05-06
 

Same problem here,

I want to keep mi app/locale folders intact, due to next upgrades.

So I’m translating my theme this way: app/design/frontend/default/mytheme/locale/translate.csv

Some elements, like “My Wishlist” don’t work. And I tried all the posibilities:

“Wishlist”,"Favoritos"
“%s’s Wishlist","Favoritos de %s”
“My Wishlist”,"Favoritos"
“My Wishlist (%d item)","Favoritos (%d)”
“My Wishlist (%d items)","Favoritos (%d)”

And so on.

It is a bug?

 
Magento Community Magento Community
Magento Community
Magento Community
 
pp303
Jr. Member
 
Total Posts:  13
Joined:  2009-02-22
 

first of all.... hello! i am the new one wink

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 wink
“My Wishlist - <a href=""%s"">%d Item(s)</a>”

 
Magento Community Magento Community
Magento Community
Magento Community
 
tilzinger
Sr. Member
 
Total Posts:  126
Joined:  2007-12-27
 

This isn’t working for me :/

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? smile

I’m using version 1.2.1.2

 
Magento Community Magento Community
Magento Community
Magento Community
 
Poltex
Jr. Member
 
Total Posts:  14
Joined:  2009-03-02
 

The translate.csv solutions is working for me.

Just for the record.
If your locale is set other than en-US. You should create a folder of you locale code, and put the translate.csv in that folder.

In my case, my country selection is Indonesia, so I create “id_ID” folder inside the locale folder and put the translate.csv in it.

cheers,

 
Magento Community Magento Community
Magento Community
Magento Community
 
tilzinger
Sr. Member
 
Total Posts:  126
Joined:  2007-12-27
 

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
DougInAtHome
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2008-11-30
Reno, NV USA
 

Just to add to this helpful thread:

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.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Hucke_Media_de
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2008-10-16
 

We experience same issues with german translations:

Example:
Content of file app/design/frontend/blank/theme/locale/de_DE/translate.csv :
“My Wishlist”,"Merkzettel"
But Link “My Wishlist” in top menu doesn’t change from “Meine Wunschliste” to “Merkzettel”.

This might be a fix:
1) Copy app/code/core/Mage/Core/Model/Translate.php to app/code/local/Mage/Core/Model/Translate.php
2) Change Line 112
from
public function init($area, $forceReload = false)
to
public function init($area, $forceReload = true)
Now it works.

BUT this might have unwanted side effects!
Does it possibly disable translation chache at all?
We did not dive deeper into it because we don’t have the time before Christmas holiday.

We will sure look deeper into it next year wink Maybe some else is faster?
Or someone from core-team might answer right away if this can be a valid solution to that problem in regard of caching issues.

With best wishes for Christmas

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 3