-<h1>A 404 error occurred</h1>
+<h1><?php echo $this->translate('A 404 error occurred') ?></h1>
<h2><?php echo $this->message ?></h2>
<?php if (isset($this->reason) && $this->reason): ?>
$reasonMessage= '';
switch ($this->reason) {
case 'error-controller-cannot-dispatch':
- $reasonMessage = 'The requested controller was unable to dispatch the request.';
+ $reasonMessage = $this->translate('The requested controller was unable to dispatch the request.');
break;
case 'error-controller-not-found':
- $reasonMessage = 'The requested controller could not be mapped to an existing controller class.';
+ $reasonMessage = $this->translate('The requested controller could not be mapped to an existing controller class.');
break;
case 'error-controller-invalid':
- $reasonMessage = 'The requested controller was not dispatchable.';
+ $reasonMessage = $this->translate('The requested controller was not dispatchable.');
break;
case 'error-router-no-match':
- $reasonMessage = 'The requested URL could not be matched by routing.';
+ $reasonMessage = $this->translate('The requested URL could not be matched by routing.');
break;
default:
- $reasonMessage = 'We cannot determine at this time why a 404 was generated.';
+ $reasonMessage = $this->translate('We cannot determine at this time why a 404 was generated.');
break;
}
?>
<?php if (isset($this->controller) && $this->controller): ?>
<dl>
- <dt>Controller:</dt>
+ <dt><?php echo $this->translate('Controller') ?>:</dt>
<dd><?php echo $this->escapeHtml($this->controller) ?>
<?php
-if (isset($this->controller_class)
+if (isset($this->controller_class)
&& $this->controller_class
&& $this->controller_class != $this->controller
) {
- echo " (resolves to " . $this->escapeHtml($this->controller_class) . ")";
+ echo '(' . sprintf($this->translate('resolves to %s'), $this->escapeHtml($this->controller_class)) . ')';
}
?>
</dd>
<?php if (isset($this->exception) && $this->exception): ?>
-<h2>Exception:</h2>
+<h2><?php echo $this->translate('Exception') ?>:</h2>
<p><b><?php echo $this->escapeHtml($this->exception->getMessage()) ?></b></p>
-<h3>Stack trace</h3>
+<h3><?php echo $this->translate('Stack trace') ?>:</h3>
<pre>
<?php echo $this->exception->getTraceAsString() ?>