Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Current Language ..how to determine ???


sdayan

Recommended Posts

Hi i am trying to make something very simple, trying to change the button pictures depending the languages ... How do i check the Current language to know wich sets of button to display. Below is my code ...

 

Please help me ...

 

    <table cellspacing=0 cellpadding=0>
              <tr><td height=7></td></tr>
		    <?php  if($language = "french"){?>
              <tr><td><a href=<?=tep_href_link('index.php')?>><img src=includes/laguages/french/images/buttons/m11_fr.gif width=206 height=27 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('account.php')?>><img src=includes/laguages/french/images/m12_fr.gif width=206 height=28 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('products_new.php')?>><img src=includes/laguages/french/images/m13_fr.gif width=206 height=27 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('shopping_cart.php')?>><img src=includes/laguages/french/images/m14_fr.gif width=206 height=27 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('checkout_shipping.php')?>><img src=includes/laguages/french/images/m15_fr.gif width=206 height=27 border=0></a></td></tr>
              <?php }else{?>
		   <tr><td><a href=<?=tep_href_link('index.php')?>><img src=images/m11.gif width=206 height=27 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('account.php')?>><img src=images/m12.gif width=206 height=28 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('products_new.php')?>><img src=images/m13.gif width=206 height=27 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m14.gif width=206 height=27 border=0></a></td></tr>
              <tr><td><a href=<?=tep_href_link('checkout_shipping.php')?>><img src=images/m15.gif width=206 height=27 border=0></a></td></tr>
		   <? }?>

		   <tr><td height=4></td></tr>
             </table>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...