Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    290
    Plugin Contributions
    0

    help question 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:

    PHP Code:
    <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.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,262
    Plugin Contributions
    3

    Default 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.
    19 years a Zencart User

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

 

 

Similar Threads

  1. v151 How To Customize Categories-Tabs Menu?
    By erix in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Sep 2012, 08:00 PM
  2. How to support multi-language display?
    By wilsonshen in forum General Questions
    Replies: 0
    Last Post: 15 Jun 2010, 12:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR