X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fmodels%2FPath.php;h=28e5c9021b2d614d4fc2dcd9ed187a7bd09590ee;hb=1f6105289a49079809c2a4677b561bc82c62db88;hp=1041a7f597ef90c22aba793847eeb1f692db07c5;hpb=a64d41557a62ec6051d7fa08d1ba941e089aa5c2;p=syj.git diff --git a/application/models/Path.php b/application/models/Path.php index 1041a7f..28e5c90 100644 --- a/application/models/Path.php +++ b/application/models/Path.php @@ -1,5 +1,5 @@ _title) { return $this->_title; } else if ($this->_id) { - return "journey number " . (string)$this->_id; + $title = $this->getTranslator()->translate("route number %d"); + return str_replace('%d', (string)$this->id, $title); } else { return ""; }