ZendのBootstrap.phpで、Zendの変換関数を使用して変換したいルートがいくつか定義されています。
$trans = new Zend_View_Helper_Translate();
$router->addRoute(
'myroute',
new Zend_Controller_Router_Route(':lang/'.$trans->translate('mytitle').'/',
array(
'module' => 'default',
'controller' => 'index',
'action' => 'statistics'
)
)
);
ヘルパー自体は機能しているように見えますが(例外やエラーはスローされません)、言語ファイルで定義されている実際の翻訳ではなく、常にmytitleを返します(チェックした-言語ファイルはビューで機能します)。
Bootstrap.phpファイルで変換関数を機能させるにはどうすればよいですか?