projects
/
zf2.biz
/
galerie.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial translation setup
[zf2.biz/galerie.git]
/
module
/
Application
/
view
/
error
/
404.phtml
diff --git
a/module/Application/view/error/404.phtml
b/module/Application/view/error/404.phtml
index
58be921
..
3edd37a
100644
(file)
--- a/
module/Application/view/error/404.phtml
+++ b/
module/Application/view/error/404.phtml
@@
-1,4
+1,4
@@
-<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): ?>
<h2><?php echo $this->message ?></h2>
<?php if (isset($this->reason) && $this->reason): ?>
@@
-7,19
+7,19
@@
$reasonMessage= '';
switch ($this->reason) {
case 'error-controller-cannot-dispatch':
$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':
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':
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':
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:
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;
}
?>
break;
}
?>
@@
-31,14
+31,14
@@
switch ($this->reason) {
<?php if (isset($this->controller) && $this->controller): ?>
<dl>
<?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
<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
) {
&& $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>
}
?>
</dd>
@@
-48,11
+48,11
@@
if (isset($this->controller_class)
<?php if (isset($this->exception) && $this->exception): ?>
<?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>
<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() ?>
<pre>
<?php echo $this->exception->getTraceAsString() ?>