Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    166
    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?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    Root Administrator
    Anyone there?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    191
    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:
    51
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice