sdayan Posted May 10, 2007 Share Posted May 10, 2007 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> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.