Index: help.php =================================================================== RCS file: /cvsroot/moodle/moodle/help.php,v retrieving revision 1.40.2.3 diff -u -r1.40.2.3 help.php --- help.php 19 Jan 2008 21:57:13 -0000 1.40.2.3 +++ help.php 23 Apr 2008 10:02:15 -0000 @@ -127,7 +127,25 @@ // End of page. close_window_button(); -echo '

'. get_string('helpindex') .'

'; +echo '

'. get_string('helpindex') .''; + +if (current_language() != 'en_utf8') { + $linklang = '/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'; + } else { + $nextlang = current_language(); + } + + $linklang .= "forcelang=$nextlang"; + list($nextlang,) = explode('_', $nextlang); + echo "
$nextlang"; +} +echo '

'; $CFG->docroot = ''; // We don't want a doc link here print_footer('none');