Forums / Templates, Stylesheets, Page Layout / CSS buttons works in one language and not other?

CSS buttons works in one language and not other?

Locked

Started by edgecrusher on 5 Feb 2007, 10:53 AM · Views: 1,652

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
5 Feb 2007, 10:53 AM
#1
edgecrusher avatar

edgecrusher

New Zenner

Join Date:
Jan 2006
Posts:
33
Plugin Contributions:
0

CSS buttons works in one language and not other?

Hi,
I'm working on a three language site.
I've activated de CSS buttons, but,

On Categories Product Listing pages or All products, the "Add Selected products to cart" button, only works as CSS button in english.
In the other two languages the scripts renders the Input button as an image.

Anyone knows what could be wrong here?

I've have been hitting and torturing the Developers tool kit, but it is not willing to collaborate with me.

Thanks

**Platinum Natural Dog Food**
Complete dry dog food made out of 70% human grade fresh chicken meat

5 Feb 2007, 4:40 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS buttons works in one language and not other?

I am fairly certian that the text that is used for the css buttons is mostly in the /includes/languages/english/button_names.php for the english representation and uses the defned "alt" text so you need to generate /includes/languages/other_language/button_names.php and translate the text into the target language.

To check this before you do all of these change the text of one and check & look at the view source to insure that it is being drawn from the correct path

Zen-Venom Get Bitten

5 Feb 2007, 5:02 PM
#3
edgecrusher avatar

edgecrusher

New Zenner

Join Date:
Jan 2006
Posts:
33
Plugin Contributions:
0

Re: CSS buttons works in one language and not other?

hey, thanks for your help.
I had those files already, and had checked what you said.
I found the problem.

The ALT text can't be too long, or for some reason, It doesn't render the Css button.

This is the offending line.

define('BUTTON_ADD_PRODUCTS_TO_CART_ALT','Agregar los productos seleccionados a la Cesta');

This text is too long.. I had to shorten the ALT text, and now it works.

No time now to figure out why, gotta go and do the bad cop thing with the developers tool kit to get some more answers...

**Platinum Natural Dog Food**
Complete dry dog food made out of 70% human grade fresh chicken meat