Index: lib/weblib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v
retrieving revision 1.970.2.135
diff -u -r1.970.2.135 weblib.php
--- lib/weblib.php	2 Apr 2009 23:00:12 -0000	1.970.2.135
+++ lib/weblib.php	4 May 2009 07:13:46 -0000
@@ -4936,7 +4936,7 @@
 
             }
             $str .= ($scriptcount < 1) ? '<script type="text/javascript" src="'.
-                    $CFG->httpswwwroot .'/lib/editor/htmlarea/lang/en.php"></script>'."\n" : '';
+                    $CFG->httpswwwroot .'/lib/editor/htmlarea/lang/en.php?id='.$COURSE->id.'"></script>'."\n" : '';
             $scriptcount++;
 
             if ($height) {    // Usually with legacy calls
Index: lib/editor/htmlarea/lang/en.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/editor/htmlarea/lang/Attic/en.php,v
retrieving revision 1.4
diff -u -r1.4 en.php
--- lib/editor/htmlarea/lang/en.php	15 Nov 2006 20:39:27 -0000	1.4
+++ lib/editor/htmlarea/lang/en.php	4 May 2009 07:13:46 -0000
@@ -10,6 +10,10 @@
     //    ob_start("ob_gzhandler");
     //}
 
+    // use course language
+    $courseid  = optional_param('id', 1, PARAM_INT);
+    course_setup($courseorid);
+
     header("Content-type: application/x-javascript; charset: utf-8");  // Correct MIME type
     header("Last-Modified: " . gmdate("D, d M Y H:i:s", $lastmodified) . " GMT");
     header("Expires: " . gmdate("D, d M Y H:i:s", time() + $lifetime) . " GMT");

