Fix Bug #1604 - the error/index.php can't be translate
This commit is contained in:
+3
-4
@@ -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
|
||||
|
||||
|
||||
@@ -44,9 +44,12 @@ $string['notavailable'] = 'That is not currently available';
|
||||
$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.';
|
||||
|
||||
Reference in New Issue
Block a user