The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Website in two languages......

Discussion in 'General Discussion' started by big_bull, May 16, 2007.

  1. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hello,

    My clients wnats website in english as well as greek what steps to be followed to set up this because he has no problem when accessing the site in english version?
     
  2. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Anyone there?
     
  3. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Could you explain a bit more? Why would people not be able to access the site in English? Do you mean that they can't read it because they don't speak English? If they can't access the site in English they're not going to be able to access it in Greek, either. Language doesn't have anything to do with physical access.
     
  4. dotancohen

    dotancohen Member

    Joined:
    Aug 18, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Haifa
    You can use php to parse the language_accept http header, or even the user's IP address, to determine what language to send to the user. Make sure that you provide an override option, though.

    You can see an example of language_accept parsing at:
    http://dotancohen.com

    Change your browser language to Hebrew and you will get the Hebrew content.

    Note that this has nothing to do with Cpanel. I recommend that you hang out at Devshed or Sitepoint to learn php.
     
Loading...

Share This Page