Thanks for your assistance Kobra. However, I know which directory the tpl files are under.
Let me explain myself a bit more. I have a custom template I created. This template has a footer. In the footer are hyperlink descriptions in English. I will create a site that will have multiple languages. I have installed the first language pack, Italian. I have tested it and it works fantastic.
However, on my custom footer after the choice of Italian language is selected I still see English hyperlink descriptions in the footer. I need this to be changed to Italian. From this archive: http://www.zen-cart.com/forum/showth...plate+language I realize that I need to create footers and headers (for example) for every language I create. This means, if I have Italian and Russian installed and want the footer and header to be different I have to change each file to tpl_footer_russian.php, etc. I understand this completely.
Here is where 1.3.6 changes from what is in the archive. Let me actually paste the post here so no one has to go and look at the post:
Code:
If you want to have completely different headers for each language, you could try this:
make a different tpl_header.php file for each language and save them as tpl_header_english.php, tpl_header_spanish.php etc
Then in includes/modules/header.php, change this line at the end
Code:
*require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');
to
Code:
*require($template->get_template_dir('tpl_header_' . $_SESSION['language'] . '.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header_' . $_SESSION['language'] . '.php');
Here is where the directory structure changes in 1.3.6: includes/modules/header.php NO SUCH ANIMAL. Only footer.php exists and there is no require statement in that file.
This is where I am getting stuck. Instead I modified the require statement in tpl_main_page.php file under the common directory and created tpl_footer_italian.php. I got a parsing error.
I need each footer and header to be unique for every language. These directions in the archived forum disscussions are outdated. Does anyone know what the current modification is to this customization?
Thank you.
I hope my post is more understandable.