Digerdoo Posted July 15, 2005 Share Posted July 15, 2005 put different header when change language ? :'( Link to comment Share on other sites More sharing options...
♥yesudo Posted July 15, 2005 Share Posted July 15, 2005 Please ignore my post. Your online success is Paramount. Link to comment Share on other sites More sharing options...
Digerdoo Posted July 15, 2005 Author Share Posted July 15, 2005 Please ignore my post. <{POST_SNAPBACK}> ? :blink: Link to comment Share on other sites More sharing options...
wizardsandwars Posted July 15, 2005 Share Posted July 15, 2005 Yes, and infact, very easily. Just create a different header for each language you'd like and put them in the appropriate language directories. Then, in the filenames.php, just prefix the 'header.php' variable with the language directory variable, and the 'header.php' text. You can get a good idea of how to do this at the top of the various php pages in the catalog when they 'require' their cooresponding language file. ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
wizardsandwars Posted July 15, 2005 Share Posted July 15, 2005 Here's an example, I haven't tested it, but I think it should work. define('FILENAME_HEADER', DIR_WS_LANGUAGES . $language . '/header.php'); ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
Digerdoo Posted July 15, 2005 Author Share Posted July 15, 2005 Yes, and infact, very easily. Just create a different header for each language you'd like and put them in the appropriate language directories. Then, in the filenames.php, just prefix the 'header.php' variable with the language directory variable, and the 'header.php' text. You can get a good idea of how to do this at the top of the various php pages in the catalog when they 'require' their cooresponding language file. <{POST_SNAPBACK}> So i put every language page differentkind of header.php file and put this define('FILENAME_HEADER','header.php'); in filenames.php and includes/header.php file i put somekind of code which calling this header.php every different language.. ? Do i put any code in original header.php in includes directory ? :'( Link to comment Share on other sites More sharing options...
Digerdoo Posted July 15, 2005 Author Share Posted July 15, 2005 So i put every language page differentkind of header.php file and put this define('FILENAME_HEADER','header.php'); in filenames.php and includes/header.php file i put somekind of code which calling this header.php every different language.. ? Do i put any code in original header.php in includes directory ? :'( <{POST_SNAPBACK}> Yes i think is now working.. thanks for a tip :thumbsup: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.