--- active_translation.batch.inc.orig	2008-06-19 20:31:02.000000000 +0200
+++ active_translation.batch.inc	2009-06-23 16:50:32.000000000 +0200
@@ -1,6 +1,10 @@
 <?php
 // $Id: active_translation.batch.inc,v 1.6 2008/06/19 18:31:02 drewish Exp $
 
+// Type used to be 'active_translation' but that does not fit into the database column
+// so this is what is currently in many people's logs:
+define('ACTIVE_TRANSL_WATCHDOG_TYPE','active_translati');
+
 /**
  * Build a batch to rebuild all the translation information.
  */
@@ -19,7 +23,7 @@
 
 function _active_translation_batch_operation(&$context) {
   if (empty($context['sandbox'])) {
-    watchdog('active_translation', 'Starting to rebuild the active translation table.');
+    watchdog(ACTIVE_TRANSL_WATCHDOG_TYPE, 'Starting to rebuild the active translation table.');
 
     // Initiate multistep processing. Call language_list() and reset its cache.
     $context['sandbox']['languages'] = array_keys(language_list('language', TRUE));
@@ -45,7 +49,7 @@
     // than values.
     db_query('INSERT INTO {active_translation} (atid, '. implode(', ', $fields) .') SELECT DISTINCT(nid), '. implode(', ', $values) .' FROM {node} WHERE tnid = 0 OR tnid IS NULL ORDER BY tnid');
 
-    watchdog('active_translation', 'Created records for untranslated and language neutral nodes.');
+    watchdog(ACTIVE_TRANSL_WATCHDOG_TYPE, 'Created records for untranslated and language neutral nodes.');
   }
 
   // Process the next set of translations.
@@ -54,7 +58,7 @@
   while ($row = db_fetch_object($result)) {
     $node = node_load($row->tnid);
     if (empty($node->nid)) {
-      watchdog('active_translation', 'Could not load the node %nid.', array('%nid' => $row->tnid), WATCHDOG_ERROR);
+      watchdog(ACTIVE_TRANSL_WATCHDOG_TYPE, 'Could not load the node %nid.', array('%nid' => $row->tnid), WATCHDOG_ERROR);
     }
     else {
       $translation = active_translation_recompute($node);
@@ -72,11 +76,11 @@
 
 function _active_translation_batch_finished($success, $results, $operations) {
   if ($success) {
-    watchdog('active_translation', 'Sucessfully rebuilt the active translation table.');
+    watchdog(ACTIVE_TRANSL_WATCHDOG_TYPE, 'Sucessfully rebuilt the active translation table.');
     drupal_set_message(t('The active translation table has rebuilt.'));
   }
   else {
-    watchdog('active_translation', 'There was an error that prevented the active translation table from being properly rebuilt.', array(), WATCHDOG_ERROR);
+    watchdog(ACTIVE_TRANSL_WATCHDOG_TYPE, 'There was an error that prevented the active translation table from being properly rebuilt.', array(), WATCHDOG_ERROR);
     drupal_set_message(t('The active translation table has not been properly rebuilt.'), 'error');
   }
   cache_clear_all();
