It only works if i18n class is constructed by giving the id_project
function(string $id_option)
{
if ($this->id_project) {
/** @var bbn\Appui\Project */
$project = new Project($this->db, $this->id_project);
//the repository
$rep = $project->repositoryById($id_option);
//the root of this repositoryu
$path = $project->getRootPath($rep);
return $path;
}
return '';
}