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

  • Resolved kissja74

    (@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)

    http://wordpress.org/extend/plugins/mlanguage/

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

    (@sirlon)

    check mlanguage.php line 83

    add
    $s = $_GET[your_param];

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

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

    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.