]> dev.renevier.net Git - syj.git/blobdiff - application/models/Path.php
translate default routes title
[syj.git] / application / models / Path.php
index 1041a7f597ef90c22aba793847eeb1f692db07c5..ea87f69e5fb043c5381e5361e357a6577df7e770 100644 (file)
@@ -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 "";
         }