• marko4286

    (@marko4286)


    Hi,
    I have one question maybe it is simple but I don’t know how to set php code.
    How can I recognize language with Pre-Path Mode mode

    Some example code that was I testing and puting into header.php

    <?php
    $strEn = “en”;
    $strDe = “de”;

    $str=”http://www.mysite.com/&#8221;;

    $strArr=explode(“/”,$str);
    $lang_id=$strArr[3];

    if($lang_id == $strEn ){
    echo ‘English’;
    }elseif($lang_id == $strDe ){
    echo ‘Deutsch’;
    }
    ?>

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

  • The topic ‘Check Pre-Path Mode language’ is closed to new replies.