X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fmodels%2FPath.php;h=ea87f69e5fb043c5381e5361e357a6577df7e770;hp=1041a7f597ef90c22aba793847eeb1f692db07c5;hb=fae3dfd40cdd8813e8c142fa3f25eb4934ec2015;hpb=a64d41557a62ec6051d7fa08d1ba941e089aa5c2 diff --git a/application/models/Path.php b/application/models/Path.php index 1041a7f..ea87f69 100644 --- a/application/models/Path.php +++ b/application/models/Path.php @@ -58,7 +58,8 @@ class Syj_Model_Path extends Syj_Model_Generic if ($this->_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 ""; }