I appreciate response of @Low. Thank you sir. As I have many pages where I cannot use {last_segment_category_id}
or {segment_[n+1]_category_id}
. I needed some quick hack in LowSeg2Cat extension to make it compatible with Transctibe module.
I open extension file via FTP and alter line number 372 from:
if ($this->settings['ignore_pagination'] == 'y')
{
// Get rid of possible pagination segment at the end
$this->uri->uri_string = preg_replace('#/[PC]\d+$#', '', $this->uri->uri_string);
}
To:
if ($this->settings['ignore_pagination'] == 'y')
{
// Get rid of possible pagination segment at the end
$this->uri->uri_string = preg_replace('#/[PC]\d+$#', '', $this->uri->uri_string);
}
/*Hack edit by MUFI to work with Transcribe module START*/
$prefix = array('en/', 'nl/', 'de/');
for ($i=0; $i < count($prefix); $i++)
{
if (substr($this->uri->uri_string, 0, strlen($prefix[$i])) == $prefix[$i]) {
$this->uri->uri_string = substr($this->uri->uri_string, strlen($prefix[$i]));
}
}
/*Hack edit by MUFI to work with Transcribe module END*/
Where $prefix
is an array of the Language abbreviation you are using in your site.
(I am still waiting for any solution that not make me open the plugin file and alter it.)