ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

undefined index http accept language in Google translate

October 17, 2013 2:03am

Subscribe [1]
  • #1 / Oct 17, 2013 2:03am

    Julia Yan

    28 posts

    I put website or webpages in to Google translate, then got error message as
    undefined index http accept language

    ————config.php
    $config[‘language’] = ‘english’;

    ————head
    meta name=“language” content=“english”

    ————Test
    if ($_SERVER[‘HTTP_ACCEPT_LANGUAGE’]; ) echo $_SERVER[‘HTTP_ACCEPT_LANGUAGE’];
    else echo “empty”;
    // output: empty

    I could not find any solution about it.
    Thanks for your help you can.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases