mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-14743 offer a link to the English help file. Merged from 1.9 stable
This commit is contained in:
parent
e05c43f2b6
commit
9dc1fb4dde
22
help.php
22
help.php
@ -161,7 +161,27 @@ if (!$helpfound) {
|
||||
|
||||
// End of page.
|
||||
close_window_button();
|
||||
echo '<p class="helpindex"><a href="help.php?file=index.html">'. get_string('helpindex') .'</a></p>';
|
||||
echo '<p class="helpindex"><a href="help.php?file=index.html">'. get_string('helpindex') .'</a>';
|
||||
|
||||
// Offer a link to the alternative help file language
|
||||
if (($helpfound) and (((current_language() != 'en_utf8') and $lang != 'en_utf8') or ($forcelang === 'en_utf8'))) {
|
||||
$linklang = "{$CFG->wwwroot}/help.php?";
|
||||
$linklang .= !empty($module) ? "module=$module&" : '';
|
||||
$linklang .= !empty($file) ? "file=$file&" : '';
|
||||
$linklang .= !empty($skiplocal) ? "skiplocal=$skiplocal&" : '';
|
||||
|
||||
if (empty($forcelang) or $forcelang === current_language()) {
|
||||
$nextlang = 'en_utf8';
|
||||
$nextlangname = 'English';
|
||||
} else {
|
||||
$nextlang = current_language();
|
||||
$nextlangname = get_string('thislanguage');
|
||||
}
|
||||
|
||||
$linklang .= "forcelang=$nextlang";
|
||||
echo "<br /><a href=\"$linklang\">" . get_string('showthishelpinlanguage', 'moodle', $nextlangname) . '</a>';
|
||||
}
|
||||
echo '</p>';
|
||||
|
||||
$CFG->docroot = ''; // We don't want a doc link here
|
||||
print_footer('none');
|
||||
|
@ -1423,6 +1423,7 @@ $string['showrecent'] = 'Show recent activity';
|
||||
$string['showreports'] = 'Show activity reports';
|
||||
$string['showsettings'] = 'Show settings';
|
||||
$string['showtheselogs'] = 'Show these logs';
|
||||
$string['showthishelpinlanguage'] = 'Show this help in language: $a';
|
||||
$string['showtopicfromothers'] = 'Show topic from others';
|
||||
$string['showweekfromothers'] = 'Show week from others';
|
||||
$string['since'] = 'Since';
|
||||
|
Loading…
x
Reference in New Issue
Block a user