Moving the text of an error message from the script to the template where it can be translated. Partial fix for bug 1153.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
parent
492759e5f2
commit
04d2b672f6
2 changed files with 21 additions and 8 deletions
|
@ -2,11 +2,25 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
</head>
|
||||
<body>
|
||||
<!--TMPL_INCLUDE NAME="masthead.inc" -->
|
||||
<!--TMPL_INCLUDE NAME="navigation.inc" -->
|
||||
<div id="doc3" class="yui-t7">
|
||||
<div id="bd">
|
||||
<!-- TMPL_INCLUDE name="masthead.inc" -->
|
||||
|
||||
<div id="yui-g">
|
||||
<div class="container">
|
||||
<div id="kohaerror">
|
||||
<div class="dialog message">
|
||||
<h3>An Error has Occurred</h3>
|
||||
<!-- TMPL_IF NAME="noadminemail" -->
|
||||
<p>An error occurred when sending your message to the administrator. Please visit the library to update your personal details. </p>
|
||||
<p><a href="/cgi-bin/koha/opac-user.pl">Return to your summary.</a></p>
|
||||
<!-- TMPL_ELSE -->
|
||||
<p><!-- TMPL_VAR NAME="errormessage" --></p>
|
||||
<!-- /TMPL_IF -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<h3>An Error has Occurred</h3><!-- TMPL_VAR NAME="errormessage" --></div>
|
||||
</body>
|
||||
</html>
|
||||
<!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->
|
||||
|
|
|
@ -73,8 +73,7 @@ if ( $updateemailaddress eq '' ) {
|
|||
);
|
||||
|
||||
$template->param(
|
||||
errormessage => 'KohaAdminEmailAddress system preference
|
||||
is not set. Please visit the library to update your user record'
|
||||
noadminemail => 1,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
Loading…
Reference in a new issue