Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wang Bin

    (@ouhinit)

    Hello ones
    You can customize, you can
    However, this plugin does not support such a response.

    Thread Starter ones

    (@ones)

    Wang Bin wrote:

    Hello ones
    You can customize, you can
    However, this plugin does not support such a response

    But how i cna customize it? WItch htaccess? In mine server witch web.confing? Or how? I need to customize it..

    I’m coding embryo but I guess you should edit ps-multi-languages.php. There is this code in the file.

    function get_multilingual_request_uri($url ,  $lang ){
    
    		if ( preg_match( '|\?lang='. $lang .'|' , $url) ||  preg_match( '|&lang='. $lang .'|' , $url ) ){
    			return $url;
    		}elseif( preg_match( '|\?lang=[\w]{2}|' , $url) ){
    			return preg_replace('|(\?)lang=([\w]{2})|' , "$1lang=" . $lang , $url);
    		}elseif( preg_match( '|&lang=[\w]{2}|' , $url) ){
    			return preg_replace('|(&)lang=([\w]{2})|' , "$1lang=" . $lang , $url);
    		}else{
    			if ( preg_match('|\?[\w]+=|', $url, $m )){
    				return $url . '&lang=' . $lang;
    			}else{
    				return $url . '?lang=' . $lang;

    Thread Starter ones

    (@ones)

    Yes i find this and i edit that, but nothing happen. It’s don’t help to edit that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Links..’ is closed to new replies.