X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=module%2FApplication%2Fview%2Ferror%2F404.phtml;h=3edd37a86f8ba30d010b4dba23816d0f941131d0;hb=88f96187c3782f2359ff9f557b64549d63a360dc;hp=58be921e93cf6bd36b95b7ee0966b7562bfa1604;hpb=00d825e7a507f95e2a3cbde2901547d9d1593412;p=zf2.biz%2Fgalerie.git diff --git a/module/Application/view/error/404.phtml b/module/Application/view/error/404.phtml index 58be921..3edd37a 100644 --- a/module/Application/view/error/404.phtml +++ b/module/Application/view/error/404.phtml @@ -1,4 +1,4 @@ -

A 404 error occurred

+

translate('A 404 error occurred') ?>

message ?>

reason) && $this->reason): ?> @@ -7,19 +7,19 @@ $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; } ?> @@ -31,14 +31,14 @@ switch ($this->reason) { controller) && $this->controller): ?>
-
Controller:
+
translate('Controller') ?>:
escapeHtml($this->controller) ?> 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)) . ')'; } ?>
@@ -48,11 +48,11 @@ if (isset($this->controller_class) exception) && $this->exception): ?> -

Exception:

+

translate('Exception') ?>:

escapeHtml($this->exception->getMessage()) ?>

-

Stack trace

+

translate('Stack trace') ?>:

 exception->getTraceAsString() ?>