Check Pre-Path Mode language
-
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 modeSome example code that was I testing and puting into header.php
<?php
$strEn = “en”;
$strDe = “de”;$str=”https://www.mysite.com/”;
$strArr=explode(“/”,$str);
$lang_id=$strArr[3];if($lang_id == $strEn ){
echo ‘English’;
}elseif($lang_id == $strDe ){
echo ‘Deutsch’;
}
?>
- The topic ‘Check Pre-Path Mode language’ is closed to new replies.