Index: modules/comment/comment.install
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.install,v
retrieving revision 1.49
diff -u -p -r1.49 comment.install
--- modules/comment/comment.install	15 Oct 2009 12:44:34 -0000	1.49
+++ modules/comment/comment.install	15 Oct 2009 20:50:22 -0000
@@ -263,7 +263,14 @@ function comment_schema() {
         'length' => 255,
         'not null' => FALSE,
         'description' => "The comment author's home page address from the comment form, if user is anonymous, and the 'Anonymous users may/must leave their contact information' setting is turned on.",
-      )
+      ),
+      'language' => array(
+        'description' => 'The {languages}.language of this comment.',
+        'type' => 'varchar',
+        'length' => 12,
+        'not null' => TRUE,
+        'default' => '',
+      ),
     ),
     'indexes' => array(
       'comment_status_pid' => array('pid', 'status'),
Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.787
diff -u -p -r1.787 comment.module
--- modules/comment/comment.module	15 Oct 2009 16:18:45 -0000	1.787
+++ modules/comment/comment.module	15 Oct 2009 20:52:44 -0000
@@ -1248,7 +1248,7 @@ function comment_access($op, $comment) {
  *   A comment object.
  */
 function comment_save($comment) {
-  global $user;
+  global $user, $language;
 
   $defaults =  array(
     'mail' => '',
@@ -1365,6 +1365,7 @@ function comment_save($comment) {
         'name' => $comment->name,
         'mail' => $comment->mail,
         'homepage' => $comment->homepage,
+        'language' => $language->language,
       ))
       ->execute();
 
