Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

change flash header with language change


karinha

Recommended Posts

Posted

Hi,

 

I don't know what to do in order to change my Flash header with the change of language. I uploaded both Flash headers one in French and one in English. I copied the header.php file and did one for French and one for English (header_en.php/header_fr.php). But now I don't know what php query I have to put in the header.php file in order for the right header to pop up. I tried all kinds of funky queries in header.php; like:

 

if ($languages_id == 'fr')

require(DIR_WS_INCLUDES . 'header_fr.php');

else if ($languages_id == 'en')

require(DIR_WS_INCLUDES . 'header_en.php');

 

Or do i just have to put some extra code in all the files in the language section? But what and where???

 

I have to admit I am very new to this and I don't really know what I am doing...

 

could somebody guide me through this?

 

Thanks for your help in advance!

 

Karin

Posted

I also tried this code in the index.php file:

<!-- header //-->

<?php if ($language_id = 'fr')

require(DIR_WS_INCLUDES . 'header_fr.php');

else if ($language_id = 'en')

require(DIR_WS_INCLUDES . 'header_en.php');

?>

<!-- header_eof //-->

 

Nothing happens? what am i doing wrong?

Posted

Ok guys I found a solution. I supposes that's not the fastest and not the smartest one, but it works. i just deleted all the header commands in the files and added a header command in each language file instead: require(DIR_WS_INCLUDES . 'header.php'); for default (English) in the English files and: require(DIR_WS_INCLUDES . 'header_fr.php'); in the French files.

 

:-"

Archived

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

×
×
  • Create New...