Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2011
    Location
    Toronto, Ontario, Canada
    Posts
    278
    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
    Hertfordshire, UK
    Posts
    9,954
    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.
    Our latest project is Pet Tags.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,831
    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. Multi-Vendor Support
    By blucollarguy in forum General Questions
    Replies: 63
    Last Post: 19 Oct 2009, 11:45 AM

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
  •