Multiple language menu

Discussion in 'HTML & Website Design' started by Dee2007, Jul 5, 2008.

  1. #1
    Hi, I need to create a menu that is in both English and another language, I know I can create graphics and do it that way, but do you know of another way?

    Thanks

    Dee
     
    Dee2007, Jul 5, 2008 IP
  2. Dee2007

    Dee2007 Active Member

    Messages:
    1,185
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    88
    #2
    Hi, well quite a views, but no replies so I'm guessing it's not going to be possible, I was hoping for something I could create and the client could edit the text into their language maybe via the JS file, as it is needed in both languages:confused:

    Anyone?

    thanks

    Dee
     
    Dee2007, Jul 8, 2008 IP
  3. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #3
    CSS background-position, store one part of the image at the top, the other at the bottom, then contain it in a <li> with fixed width and height as a background image, and have the client change background-position from top to bottom to change the language.

    Check out this image:
    [​IMG]

    Then check out what to do with it:
    http://bezdredge.net/Examples/CSS_Rollovers/

    And thats how you do images like that. But after typing all that out and rereading your post, thats not what you want, so can you explain in more detail. Like you want a menu that goes:

    [Hello/Bonjour]


    In that case...just make it like that. Or if you want 2 different menus entirely, store one in one HTML file like so:

    English.html
    
    <ul>
        <li>Hello</li>
    <ul>
    
    Code (markup):
    Then in another file:

    French.html
    
    <ul>
        <li>Bonjuor</li>
    <ul>
    Code (markup):

    Then use PHP or SSI to add that to where you want, and have you client change it. Follow this guide if you want to do that: http://forums.digitalpoint.com/showthread.php?p=2145250
     
    blueparukia, Jul 8, 2008 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You can also have everyone in the same menu every page, with each language name in that language, and to protect against Windows users with nasty Windows charsets, cover with the image... see http://www.sketchplanet.com (I did the little English/Japanese/Korean menu : ) The site builder actually wrote out the language names in those languages, but since even my own Windows machine could not read Japanese or Korean characters, s/he protected users with an image too. I could see the letters on my Linux machine but not the Windows machine here at work-- even with a UTF-8 charset!
     
    Stomme poes, Jul 8, 2008 IP