<?php
-/* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
+/* This file is part of Syj, Copyright (c) 2010-2011 Arnaud Renevier,
and is published under the AGPL license. */
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 "";
}