Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How To Change Button With Language...


engelleo

Recommended Posts

I have designed different buttons for different language, and put them in the images/button folder in different language.

 

when I click the language flag, still the default button in the index page,but the language in the boxes has changed, what happened to me ? how can I code to change the pic with the language automaticly?

for example, new products button change to neue produkt.

 

can sb do me a favor, thx a lot!!

Link to comment
Share on other sites

I have designed different buttons for different language, and put them in the images/button folder in different language.

 

when I click the language flag, still the default button in the index page,but the language in the boxes has changed, what happened to me ? how can I code to change the pic with the language automaticly?

for example, new products button change to neue produkt.

 

can sb do me a favor, thx a lot!!

 

Post a link so we can see, Ralph

Link to comment
Share on other sites

Post a link so we can see, Ralph

 

I didnt upload it , just modified it on my localhost!

 

it should be look like this kind of page

 

http://osc2.template-help.com:8081/14775/

 

when you click the flag of language, for example, germany, the button of homepage or new product on the left column side change to Hauptseite or neue produkte

Link to comment
Share on other sites

Did you clear your browser cache already? Sometimes the old grafixx stay in the cache and as long as you don't clear it they are still displayed, especially since the new ones have the same names as the old ones.

Link to comment
Share on other sites

Did you clear your browser cache already? Sometimes the old grafixx stay in the cache and as long as you don't clear it they are still displayed, especially since the new ones have the same names as the old ones.

 

I have a try to clear the browser cache, but still have the problem..

maybe the problem of path, I think.

how to define a new path for the images that represents the menus.

Link to comment
Share on other sites

Did you replace the images in the right place? Usually they are stored in /includes/languages/xxxx/images/buttons.

 

Don't change the paths, cause it will mess up anything. The path to the images is predefined and used to determine where all other images are too.

 

I changed all the buttons for a recent project and they're working pretty well. So check the directories first, before touching any code.

Link to comment
Share on other sites

Did you replace the images in the right place? Usually they are stored in /includes/languages/xxxx/images/buttons.

 

Don't change the paths, cause it will mess up anything. The path to the images is predefined and used to determine where all other images are too.

 

I changed all the buttons for a recent project and they're working pretty well. So check the directories first, before touching any code.

 

thx for your quick help!

 

like you said, I stored them in the right place /includes/languages/xxxx/images/buttons,

 

by the way I use STS 4 to modify a php.html file. I am really a noob in osC edit, the following is my code, could u plz give me some advice:

 

 

<td style="width:553px"><br style="line-height:3px;">

 

<ahref="index.php?osCsid=ltmqrrretsjg551qsn35fvud16">

<img src="'.tep_image_button('menu1.jpg', home).'" border="0" alt="" width="105" height="47"></a>

 

<a href="products_new.php?osCsid=ltmqrrretsjg551qsn35fvud16">

<img src="'.tep_image_button('menu2.jpg', new pro).'" border="0" alt="" width="126" height="47"></a>

 

<a href="specials.php?osCsid=ltmqrrretsjg551qsn35fvud16">

<img src="'.tep_image_button('menu3.jpg', spe).'" border="0" alt="" width="90" height="47"></a>

 

<a href="account.php?osCsid=ltmqrrretsjg551qsn35fvud16">

<img src="'.tep_image_button('menu4.jpg', my).'" border="0" alt="" width="110" height="47"></a>

<a href="contact_us.php?osCsid=ltmqrrretsjg551qsn35fvud16">

<img src="'.tep_image_button('menu5.jpg', cont).'" border="0" alt="" width="109" height="47"></a>

 

</td>

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...