Forums / Addon Language Packs / How to customize all menu to support multi-lang?

How to customize all menu to support multi-lang?

Views: 1,767

Results 1 to 3 of 3
19 Nov 2011, 12:27 PM
#1
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

How to customize all menu to support multi-lang?

Hi folks,

My websitehas two languages, I am wondering how do I make all the menus be switched to its language when user switch language, currently if you click on Chinese, only a few menus are changed, others remain English. The unchanged menus are created from my ezpages and I added them to the menu by modifying the tpl_header.php, code is below, the reason I have to do this is because the ezpages won't show up in the header by simply indicating them in Admin->ezpages setting its order:

<div id="navMainWrapper">
<div id="navMain">
    <ul class="back">
   <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> | </li>
    <li><a href="index.php?main_page=page&id=2">Ready to Serve</a> | </li>
    <li><a href="index.php?main_page=page&id=3">Dietary Supplements</a> | </li>    
    <li><a href="index.php?main_page=page&id=4">Life Concept Beverage</a> | </li>  
    <li><a href="index.php?main_page=page&id=5">Gift Box</a> | </li>
    <li><a href="index.php?main_page=page&id=6">Cash Voucher</a> | </li>     
<li><a href="index.php?main_page=page&id=1">Location</a> | </li>  

Thank you very much for your help.

19 Nov 2011, 1:33 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How to customize all menu to support multi-lang?

There is an EZ Page MULTI-LANGUAGE support module. You need to install that to get your EZpages to behave properly for additional languages.

20 years a Zencart User

19 Nov 2011, 1:57 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to customize all menu to support multi-lang?

And then you will have to replace your hand-coded text in the menu with constants which you define in language files.

Ready to Serve

would become

<?php echo HEADER_LINK_READY_TO_SERVE ;?>

or whatever you want to call it - just be clear and consistent.