Support » Plugin: mLanguage » [Plugin: mLanguage] set language from url

  • Resolved kissja74


    Hi, I’d like to make a small modify in your plugin but no success. I’d like to be able to set the displayed language also from url (with $_GET ), but I can’t find the right place for this in your code.
    I admit that I’m a lame, I simply can’t find where you get the cookie’s value πŸ™‚

    Any help would be appreciated.

    (WP 3.1 ML 1.5.6)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Alexander Rauscha


    check mlanguage.php line 83

    $s = $_GET[your_param];

    if($_COOKIE["WPmlang"]) $s = substr($_COOKIE["WPmlang"], 0, 2);

    and delete the cookie code in mlanguge.js on line 53 + 54

    Thread Starter kissja74


    okay, i’m officially lame πŸ™

    i did the same but it didn’t work till now when i recognized that in the url i put the param after a “?” instead of “&”… sometimes i’m so dumb πŸ™

    for the titles i did the same at function mlang_title ( for the title there is a $c ) and now it works like a charm πŸ™‚

    thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: mLanguage] set language from url’ is closed to new replies.