Skip to content

Commit

Permalink
Fix Bug #1604 - the error/index.php can't be translate
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Apr 21, 2006
1 parent a0a6424 commit 7c830e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions error/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@
$requesturi = empty($_SERVER['REQUEST_URI']) ? '' : $_SERVER['REQUEST_URI'];

print_header($site->fullname .':Error', $site->fullname .': Error 404', '', 'form.text');
print_simple_box('<p align="center">An unusual error occurred (tried to reach a page that doesn\'t exist).<br />'.s($requesturi).'</p>', 'center');
print_simple_box('<p align="center">'. get_string('pagenotexist', 'error'). '<br />'.s($requesturi).'</p>', 'center');

?>

<center>
<p>If you have time, please let us know what you were trying
to do when the error occurred:
<p><? get_string('pleasereport', 'error'); ?>
<p><form action="<?php echo $CFG->wwwroot ?>/error/index.php" name="form" method="post">
<textarea rows="3" cols="50" name="text"></textarea><br />
<input type="hidden" name="referer" value="<?php p($httpreferer) ?>">
<input type="hidden" name="requested" value="<?php p($requesturi) ?>">
<input type="submit" value="Send this off">
<input type="submit" value="<?php get_string('sendmessage', 'error'); ?>">
</form>
<?php

Expand Down
3 changes: 3 additions & 0 deletions lang/en_utf8/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@
$string['onlyeditown'] = 'You can only edit your own information';
$string['onlyeditingteachers'] = 'Only editing teachers can do that.';
$string['onlyadmins'] = 'Only administrators can do that.';
$string['pagenotexist'] = 'An unusual error occurred (tried to reach a page that doesn\'t exist).';
$string['pleasereport'] = 'If you have time, please let us know what you were trying to do when the error occurred:';
$string['pluginrequirementsnotmet'] = 'Plugin \"$a->pluginname\" ($a->pluginversion) could not be installed. It requires a newer version of Moodle (currently you are using $a->currentmoodle, you need $a->requiremoodle).';
$string['processingstops'] = 'Processing stops here. Remaining records ignored.';
$string['remotedownloadnotallowed'] = 'Download of components to your server isn\'t allowed (allow_url_fopen is disabled).<br /><br />You must download the <a href=\"$a->url\">$a->url</a> file manually, copy it to \"$a->dest\" in your server and unzip it there.';
$string['sendmessage'] = 'Send Message';
$string['restricteduser'] = 'Sorry, but your current account \"$a\" is restricted from doing that.';
$string['sessionerroruser'] = 'Your session has timed out. Please login again.';
$string['sessionerroruser2'] = 'A server error that affects your login session was detected. Please login again or restart your browser.';
Expand Down

0 comments on commit 7c830e3

Please sign in to comment.