diff --git a/helper.php b/helper.php index a362d2f..26755f6 100644 --- a/helper.php +++ b/helper.php @@ -94,10 +94,10 @@ function getBrowserLang() { function buildTransID($lng, $idpart) { global $conf; if($lng) { - $link = ':' . $this->tns . $lng . ':' . $idpart; + $link = ':' . $this->tns . $lng . ':' . preg_replace("/^{$this->tns}/", "", $idpart); $name = $lng; } else { - $link = ':' . $this->tns . $idpart; + $link = ':' . $this->tns . preg_replace("/^{$this->tns}/", "", $idpart); $name = $this->realLC(''); } return array($link, $name);