Index: xmlsitemap_taxonomy/xmlsitemap_taxonomy.info
===================================================================
RCS file: xmlsitemap_taxonomy/xmlsitemap_taxonomy.info
diff -N xmlsitemap_taxonomy/xmlsitemap_taxonomy.info
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ xmlsitemap_taxonomy/xmlsitemap_taxonomy.info	6 May 2009 20:08:01 -0000
@@ -0,0 +1,7 @@
+; $Id: $
+name = XML sitemap taxonomy
+description = Add taxonomy term links to the sitemap.
+package = XML sitemap
+dependencies[] = xmlsitemap
+dependencies[] = xmlsitemap_node
+core = "6.x"
Index: xmlsitemap_taxonomy/xmlsitemap_taxonomy.install
===================================================================
RCS file: xmlsitemap_taxonomy/xmlsitemap_taxonomy.install
diff -N xmlsitemap_taxonomy/xmlsitemap_taxonomy.install
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ xmlsitemap_taxonomy/xmlsitemap_taxonomy.install	6 May 2009 20:08:01 -0000
@@ -0,0 +1,367 @@
+<?php
+// $Id: $
+
+/**
+ * @file
+ * Installation file for XML sitemap taxonomy.
+ */
+
+/*****************************************************************************
+ * Drupal hooks.
+ ****************************************************************************/
+
+/**
+ * Implementation of hook_enable().
+ */
+function xmlsitemap_taxonomy_enable() {
+  xmlsitemap_flag_sitemap();
+}
+
+/**
+ * Implementation of hook_disable().
+ */
+function xmlsitemap_taxonomy_disable() {
+  xmlsitemap_flag_sitemap();
+}
+
+/**
+ * Implementation of hook_schema().
+ */
+function xmlsitemap_taxonomy_schema() {
+  $schema['xmlsitemap_term'] = array(
+    'description' => 'The base table for xmlsitemap_taxonomy.',
+    'fields' => array(
+      'tid' => array(
+        'description' => 'The vocabulary term ID.',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'vid' => array(
+        'description' => 'The vocabulary ID.',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'changed' => array(
+        'description' => 'The Unix timestamp of the last change.',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'previously_changed' => array(
+        'description' => 'The Unix timestamp of the previous change.',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'priority_override' => array(
+        'description' => 'The priority of the term in the sitemap.',
+        'type' => 'float',
+        'not null' => TRUE,
+        'default' => -2.0,
+      ),
+    ),
+    'primary key' => array('tid'),
+  );
+  return $schema;
+}
+
+/**
+ * Implementation of hook_install().
+ */
+function xmlsitemap_taxonomy_install() {
+  drupal_install_schema('xmlsitemap_taxonomy');
+  db_query("UPDATE {system} SET weight = 10 WHERE name = 'xmlsitemap_taxonomy'");
+}
+
+/**
+ * Implementation of hook_update_N().
+ * Updates the SQL tables.
+ */
+function xmlsitemap_taxonomy_update_6000() {
+  $ret = array();
+  if (db_table_exists('xmlsitemap_term')) {
+    if (db_column_exists('xmlsitemap_term', 'pid')) {
+      $result = array();
+      @db_drop_index($result, 'xmlsitemap_term', 'pid');
+      if ($result[0]['success']) {
+        $ret[] = $result[0];
+      }
+      db_drop_field($ret, 'xmlsitemap_term', 'pid');
+    }
+    $result = array();
+    @db_drop_primary_key($result, 'xmlsitemap_term');
+    if ($result[0]['success']) {
+      $ret[] = $result[0];
+    }
+    if (db_column_exists('xmlsitemap_term', 'tid')) {
+      db_change_field($ret, 'xmlsitemap_term', 'tid', 'tid',
+        array(
+          'description' => 'The vocabulary term ID.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        ),
+        array('primary key' => array('tid'))
+      );
+    }
+    else {
+      db_add_field($ret, 'xmlsitemap_term', 'tid',
+        array(
+          'description' => 'The vocabulary term ID.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        ),
+        array('primary key' => array('tid'))
+      );
+    }
+    if (!db_column_exists('xmlsitemap_term', 'vid')) {
+      db_add_field($ret, 'xmlsitemap_term', 'vid',
+        array(
+          'description' => 'The vocabulary ID.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        )
+      );
+    }
+    if (db_column_exists('xmlsitemap_term', 'last_changed')) {
+      db_change_field($ret, 'xmlsitemap_term', 'last_changed', 'changed',
+        array(
+          'description' => 'The Unix timestamp of the last change.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        )
+      );
+    }
+    else {
+      if (!db_column_exists('xmlsitemap_term', 'changed')) {
+        db_add_field($ret, 'xmlsitemap_term', 'changed',
+          array(
+            'description' => 'The Unix timestamp of the last change.',
+            'type' => 'int',
+            'unsigned' => TRUE,
+            'not null' => TRUE,
+            'default' => 0,
+          )
+        );
+      }
+      else {
+        db_change_field($ret, 'xmlsitemap_term', 'changed', 'changed',
+          array(
+            'description' => 'The Unix timestamp of the last change.',
+            'type' => 'int',
+            'unsigned' => TRUE,
+            'not null' => TRUE,
+            'default' => 0,
+          )
+        );
+      }
+    }
+    if (!db_column_exists('xmlsitemap_term', 'previously_changed')) {
+      db_add_field($ret, 'xmlsitemap_term', 'previously_changed',
+        array(
+          'description' => 'The Unix timestamp of the previous change.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        )
+      );
+    }
+    else {
+      db_change_field($ret, 'xmlsitemap_term', 'previously_changed', 'previously_changed',
+        array(
+          'description' => 'The Unix timestamp of the previous change.',
+          'type' => 'int',
+          'unsigned' => TRUE,
+          'not null' => TRUE,
+          'default' => 0,
+        )
+      );
+    }
+    $ret[] = update_sql("UPDATE {xmlsitemap_term}
+      SET priority_override = -2.0
+      WHERE priority_override IS NULL"
+    );
+    db_change_field($ret, 'xmlsitemap_term', 'priority_override', 'priority_override',
+      array(
+        'description' => 'The priority of the term in the sitemap.',
+        'type' => 'float',
+        'not null' => TRUE,
+        'default' => -2.0,
+      )
+    );
+  }
+  else {
+    db_create_table($ret, 'xmlsitemap_term',
+      array(
+        'description' => 'The base table for xmlsitemap_taxonomy.',
+        'fields' => array(
+          'tid' => array(
+            'description' => 'The vocabulary term ID.',
+            'type' => 'int',
+            'unsigned' => TRUE,
+            'not null' => TRUE,
+            'default' => 0,
+           ),
+           'vid' => array(
+            'description' => 'The vocabulary ID.',
+            'type' => 'int',
+            'unsigned' => TRUE,
+            'not null' => TRUE,
+            'default' => 0,
+           ),
+           'changed' => array(
+             'description' => 'The Unix timestamp of the last change.',
+             'type' => 'int',
+             'unsigned' => TRUE,
+             'not null' => TRUE,
+             'default' => 0,
+           ),
+           'previously_changed' => array(
+             'description' => 'The Unix timestamp of the previous change.',
+             'type' => 'int',
+             'unsigned' => TRUE,
+             'not null' => TRUE,
+             'default' => 0,
+           ),
+           'priority_override' => array(
+             'description' => 'The priority of the term in the sitemap.',
+             'type' => 'float',
+             'not null' => TRUE,
+             'default' => -2.0,
+           ),
+        ),
+        'primary key' => array('tid'),
+      )
+    );
+  }
+  return $ret;
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6100() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6101() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6102() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6103() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6104() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6105() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6106() {
+  $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'xmlsitemap_taxonomy'");
+  return $ret;
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6107() {
+  return xmlsitemap_taxonomy_update_6000();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6108() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6109() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6110() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function xmlsitemap_taxonomy_update_6111() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ *
+ */
+function xmlsitemap_taxonomy_update_6112() {
+  return array();
+}
+
+/**
+ * Implementation of hook_update_N().
+ *
+ */
+function xmlsitemap_taxonomy_update_6113() {
+  $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'xmlsitemap\_term\_%'");
+  while ($row = db_fetch_object($result)) {
+    $new_name = preg_replace('/_term_/', '_taxonomy_', $row->name;
+    $ret[] = update_sql("UPDATE {variable} set name = '$new_name' WHERE name LIKE 'xmlsitemap\_taxonomy\_%'");
+  }
+  return $ret;
+}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function xmlsitemap_taxonomy_uninstall() {
+  drupal_uninstall_schema('xmlsitemap_taxonomy');
+  db_query("DELETE FROM {variable} WHERE name LIKE 'xmlsitemap\_taxonomy\_%'");
+}
+
Index: xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
===================================================================
RCS file: xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
diff -N xmlsitemap_taxonomy/xmlsitemap_taxonomy.module
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ xmlsitemap_taxonomy/xmlsitemap_taxonomy.module	6 May 2009 20:08:01 -0000
@@ -0,0 +1,380 @@
+<?php
+// $Id: $
+
+/**
+ * @file
+ * Adds terms to the sitemap.
+ */
+
+/**
+ * @addtogroup xmlsitemap
+ * @{
+ */
+
+/*****************************************************************************
+ * Drupal hooks.
+ ****************************************************************************/
+
+/**
+ * Implementation of hook_cron().
+ */
+function xmlsitemap_taxonomy_cron() {
+  if (($limit = variable_get('xmlsitemap_taxonomy_cron_limit', 100)) != -1) {
+    $sql = "SELECT t.* FROM {term_data} t
+      LEFT JOIN {xmlsitemap_term} xt ON xt.tid = t.tid
+      WHERE xt.tid IS NULL";
+    $result = db_query_range($sql, 0, $limit);
+    while ($term = db_fetch_object($result)) {
+      $row = new stdClass();
+      $row->tid = $term->tid;
+      $row->vid = $term->vid;
+      $row->changed = XMLSITEMAP_TIME;
+      drupal_write_record('xmlsitemap_term', $row);
+    }
+  }
+}
+
+/**
+ * Implementation of hook_form_FORM_ID_alter().
+ */
+function xmlsitemap_taxonomy_form_taxonomy_form_term_alter(&$form, &$from_state) {
+  $priority = db_result(db_query("SELECT priority_override
+    FROM {xmlsitemap_term}
+    WHERE tid = %d", $form['tid']['#value'])
+  );
+  if ($priority === FALSE) {
+    $priority = -2.0;
+  }
+  $options = xmlsitemap_priority_options('both');
+  $default = variable_get('xmlsitemap_taxonomy_vocabulary_priority_'. $form['vid']['#value'], '0.5');
+  if (!isset($form['xmlsitemap'])) {
+    $form['xmlsitemap'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('XML sitemap'),
+      '#collapsible' => TRUE,
+    );
+  }
+  $form['xmlsitemap']['xmlsitemap_taxonomy_priority'] = array(
+    '#type' => 'select',
+    '#title' => t('Priority'),
+    '#description' => t('The default priority is %priority.', array('%priority' => $options[$default])),
+    '#default_value' => $priority,
+    '#options' => $options,
+  );
+  $form['submit']['#weight'] = isset($form['submit']['#weight']) ? $form['submit']['#weight'] + 1 : 1;
+  $form['delete']['#weight'] = isset($form['delete']['#weight']) ? $form['delete']['#weight'] + 1 : 1;
+}
+
+/**
+ * Implementation of hook_form_FORM_ID_alter().
+ */
+function xmlsitemap_taxonomy_form_taxonomy_form_vocabulary_alter(&$form, &$from_state) {
+  $form['xmlsitemap'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('XML sitemap'),
+    '#collapsible' => TRUE,
+  );
+  $form['xmlsitemap']['xmlsitemap_taxonomy_vocabulary_priority'] = array(
+    '#type' => 'select',
+    '#title' => t('Priority'),
+    '#description' => t('This will be the default priority of terms in this vocabulary.'),
+    '#default_value' => variable_get('xmlsitemap_taxonomy_vocabulary_priority_'. $form['vid']['#value'], 0.5),
+    '#options' => xmlsitemap_priority_options('exclude'),
+  );
+  $form['submit']['#weight'] = isset($form['submit']['#weight']) ? $form['submit']['#weight'] + 1 : 1;
+  $form['delete']['#weight'] = isset($form['delete']['#weight']) ? $form['delete']['#weight'] + 1 : 1;
+}
+
+/**
+ * Implementation of hook_form_FORM_ID_alter().
+ */
+function xmlsitemap_taxonomy_form_xmlsitemap_settings_alter(&$form, &$from_state) {
+  $options = xmlsitemap_priority_options();
+  $form['xmlsitemap_taxonomy'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Taxonomy terms settings'),
+    '#description' => t('The settings for the taxonomy terms to include in the sitemap.'),
+    '#collapsible' => TRUE,
+    '#weight' => 2,
+  );
+  $form['xmlsitemap_taxonomy']['xmlsitemap_taxonomy_node_priority'] = array(
+    '#type' => 'select',
+    '#title' => t('Terms use priority adjustment'),
+    '#description' => t("This number will be added to the priority of vocabulary term which is used by 100 nodes; for the other terms, the number is calculated proportionally to the number of nodes. This doesn't apply for terms that are used for just one node, nor for the vocabulary terms  for which the priority is overriden."),
+    '#default_value' => variable_get('xmlsitemap_taxonomy_node_priority', 0.2),
+    '#options' => $options,
+  );
+  $form['xmlsitemap_taxonomy']['xmlsitemap_taxonomy_cron_limit'] = array(
+    '#type' => 'select',
+    '#title' => t('Cron limit'),
+    '#description' => t('The number of taxonomy terms that are updated in each pass of a <a href="@cron">cron maintenance task</a>.', array('@cron' => url('admin/reports/status'))),
+    '#default_value' => variable_get('xmlsitemap_taxonomy_cron_limit', 100),
+    '#options' => xmlsitemap_cron_options(),
+  );
+}
+
+/**
+ * Implementation of hook_node_operations().
+ */
+function xmlsitemap_taxonomy_node_operations() {
+  $operations = array(
+    'xmlsitemap_add_terms' => array(
+      'label' => t('Add the vocabulary terms of the selected posts to the XML sitemap'),
+      'callback' => '_xmlsitemap_taxonomy_priority_operations',
+      'callback arguments' => array('priority' => 0.5),
+    ),
+    'xmlsitemap_change_terms_priority' => array(
+      'label' => t('Change the XML sitemap priority of the selected posts vocabulary terms to default'),
+      'callback' => '_xmlsitemap_taxonomy_priority_operations',
+      'callback arguments' => array('priority' => -2.0),
+    ),
+    'xmlsitemap_remove_terms' => array(
+      'label' => t('Remove the vocabulary terms of the selected posts from the XML sitemap'),
+      'callback' => '_xmlsitemap_taxonomy_priority_operations',
+      'callback arguments' => array('priority' => -1.0),
+    ),
+  );
+  return $operations;
+}
+
+/**
+ * Implementation of hook_nodeapi().
+ */
+function xmlsitemap_taxonomy_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
+  switch ($op) {
+    case 'update':
+      $terms = taxonomy_node_get_terms($node);
+      foreach ($terms as $term) {
+        $result = db_fetch_object(db_query("SELECT tid, changed, previously_changed, priority_override
+          FROM {xmlsitemap_term}
+          WHERE tid = %d", $term->tid));
+        if ($result === FALSE) {
+          $row = new stdClass();
+          $row->tid = $term->tid;
+          $row->vid = $term->vid;
+          $row->changed = $node->changed;
+          $row->previously_changed = $node->created;
+        }
+        else {
+          $row = $result;
+          if ($row->changed < $node->changed) {
+            $row->previously_changed = $row->changed;
+            $row->changed = $node->changed;
+          }
+        }
+        drupal_write_record('xmlsitemap_term', $row, $result === FALSE ? NULL : 'tid');
+        xmlsitemap_flag_sitemap();
+      }
+      break;
+  }
+}
+
+/**
+ * Implementation of hook_taxonomy().
+ */
+
+function xmlsitemap_taxonomy_taxonomy($op, $type, $array = NULL) {
+  if ($type == 'vocabulary') {
+    switch ($op) {
+      case 'delete':
+        db_query("DELETE FROM {xmlsitemap_term} WHERE vid = %d", $array['vid']);
+        variable_del('xmlsitemap_taxonomy_vocabulary_priority_'. $array['vid']);
+        xmlsitemap_flag_sitemap();
+        break;
+      case 'insert':
+      case 'update':
+        if (isset($array['vid'])) {
+          if (variable_get('xmlsitemap_taxonomy_vocabulary_priority_'. $array['vid'], 0.5) != $array['xmlsitemap_taxonomy_vocabulary_priority']) {
+            variable_set('xmlsitemap_taxonomy_vocabulary_priority_'. $array['vid'], $array['xmlsitemap_taxonomy_vocabulary_priority']);
+            xmlsitemap_flag_sitemap();
+          }
+        }
+        break;
+    }
+  }
+  else {
+    switch ($op) {
+      case 'delete':
+        db_query("DELETE FROM {xmlsitemap_term} WHERE tid = %d", $array['tid']);
+        break;
+      case 'insert':
+        if (isset($array['tid']) && isset($array['vid'])) {
+          $row = new stdClass();
+          $row->tid = $array['tid'];
+          $row->vid = $array['vid'];
+          $row->changed = XMLSITEMAP_TIME;
+          $row->priority_override = isset($array['xmlsitemap_taxonomy_priority']) ? $array['xmlsitemap_taxonomy_priority'] : -2.0;
+          drupal_write_record('xmlsitemap_term', $row);
+        }
+        break;
+      case 'update':
+        $result = db_fetch_object(db_query("SELECT tid, vid, changed, previously_changed, priority_override
+          FROM {xmlsitemap_term}
+          WHERE tid = %d", $array['tid'])
+        );
+        if ($result === FALSE) {
+          $row = new stdClass();
+          $row->tid = $array['tid'];
+          $row->vid = $array['vid'];
+          $row->changed = XMLSITEMAP_TIME;
+          $row->priority_override = isset($array['xmlsitemap_taxonomy_priority']) ? $array['xmlsitemap_taxonomy_priority'] : -2.0;
+        }
+        else {
+          $row = $result;
+          if (isset($array['xmlsitemap_taxonomy_priority'])) {
+            $row->priority_override = $array['xmlsitemap_taxonomy_priority'];
+          }
+        }
+        drupal_write_record('xmlsitemap_term', $row, $result === FALSE ? NULL : 'tid');
+        break;
+    }
+    xmlsitemap_flag_sitemap();
+  }
+}
+
+/**
+ * Implementation of hook_xmlsitemap_description().
+ */
+function xmlsitemap_taxonomy_xmlsitemap_description() {
+  return '<dt>'. t('XML sitemap term') .'</dt>'.
+    '<dd>'. t('The module adds <a href="@terms">taxonomy terms</a> (categories) to the sitemap. You can change the default priority when you add or edit a vocabulary, and you can override the default priority when you add or edit individual terms.', array('@terms' => url('admin/content/taxonomy'))) .'</dd>';
+}
+
+/**
+ * Implementation of hook_xmlsitemap_links().
+ */
+function xmlsitemap_taxonomy_xmlsitemap_links() {
+  $result = db_query(
+    db_rewrite_sql(
+      "SELECT t.tid, t.vid, v.module, xt.changed, xt.previously_changed, xt.priority_override
+        FROM {term_data} t
+        LEFT JOIN {vocabulary} v ON t.vid = v.vid
+        LEFT JOIN {xmlsitemap_term} xt ON t.tid = xt.tid",
+      't', 'tid'
+    )
+  );
+  $row = new stdClass();
+  $row->module = 'xmlsitemap_taxonomy';
+  $row->type = 'taxonomy';
+  while ($term = db_fetch_object($result)) {
+    if ($term->module == 'forum') {
+      $row->loc = 'forum/'. $term->tid;
+    }
+    else {
+      $row->loc = taxonomy_taxonomy_path($term);
+    }
+    $row->id = $term->tid;
+    $row->changed = $term->changed;
+    $row->changefreq = max(XMLSITEMAP_TIME - $term->changed, empty($term->previously_changed) ? 0 : $term->changed - $term->previously_changed);
+    if ($term->priority_override != -2.0) {
+      $priority = $term->priority_override;
+    }
+    elseif (($priority = variable_get('xmlsitemap_taxonomy_vocabulary_priority_'. $term->vid, 0.5)) != -1.0) {
+      $count = (integer) db_result(db_query("SELECT COUNT(vid) FROM {term_node} WHERE tid = %d", $term->tid));
+      if ($count > 1) {
+        $priority += variable_get('xmlsitemap_taxonomy_node_priority', 0.2) * $count / 100;
+      }
+    }
+    if (!isset($priority)) {
+      $priority = -1.0;
+    }
+    $row->priority = ($priority == -1) ? $priority : min(max(round($priority, 1), 0.0), 1.0);
+    $old_row = db_fetch_object(db_query("SELECT lid, type, priority FROM {xmlsitemap} WHERE loc = '%s'", $row->loc));
+    if ($old_row === FALSE) {
+      drupal_write_record('xmlsitemap', $row);
+    }
+    elseif ($old_row->type = 'taxonomy' && $old_row->priority != $row->priority) {
+      $row->lid = $old_row->lid;
+      drupal_write_record('xmlsitemap', $row, 'lid');
+    }
+  }
+}
+
+/*****************************************************************************
+ * Private functions - node operation callbacks.
+ ****************************************************************************/
+
+/**
+ * Node operations callback.
+ */
+function _xmlsitemap_taxonomy_priority_operations($nodes, $priority) {
+  if (count($nodes)) {
+    $batch = array(
+      'operations' => array(
+        array('_xmlsitemap_taxonomy_batch_process', array($nodes, $priority))
+      ),
+      'finished' => 'xmlsitemap_batch_operations_finished',
+      'title' => t('Processing'),
+      'progress_message' => '',
+      'error_message' => t('The update has encountered an error.'),
+    );
+    batch_set($batch);
+  }
+}
+
+/*****************************************************************************
+ * Private functions - batch operation callbacks.
+ ****************************************************************************/
+
+/**
+ * Node operations batch process callback.
+ */
+function _xmlsitemap_taxonomy_batch_process($nodes, $priority, &$context) {
+  if (!isset($context['sandbox']['progress'])) {
+    $context['sandbox']['progress'] = 0;
+    $context['sandbox']['max'] = count($nodes);
+    $context['sandbox']['nodes'] = $nodes;
+    $context['sandbox']['terms'] = array();
+  }
+  if (empty($context['sandbox']['terms'])) {
+    $nid = array_shift($context['sandbox']['nodes']);
+    if ($node = node_load($nid)) {
+      $context['sandbox']['terms'] = taxonomy_node_get_terms($node);
+      $context['sandbox']['node'] = $node;
+    }
+  }
+  $term = array_shift($context['sandbox']['terms']);
+  if (isset($term)) {
+    $node = $context['sandbox']['node'];
+    $result = db_fetch_object(db_query("SELECT tid, vid, changed, previously_changed, priority_override
+      FROM {xmlsitemap_term}
+      WHERE tid = %d", $term->tid)
+    );
+    if ($result === FALSE) {
+      $row = new stdClass();
+      $row->tid = $term->tid;
+      $row->vid = $term->vid;
+      $row->changed = $node->changed;
+      $row->previously_changed = $node->created;
+    }
+    else {
+      $row = $result;
+      if ($node->changed > $row->changed) {
+        $row->previously_changed = $row->changed;
+        $row->changed = $node->changed;
+      }
+    }
+    $row->priority_override = $priority;
+    drupal_write_record('xmlsitemap_term', $row, $result === FALSE ? NULL : 'tid');
+  }
+  if (empty($context['sandbox']['terms'])) {
+    $context['sandbox']['progress']++;
+    if (!empty($context['sandbox']['node'])) {
+      $node = $context['sandbox']['node'];
+      $context['results'][] = l($node->title, 'node/'. $node->nid);
+      if (count($context['results']) > 6) {
+        array_shift($context['results']);
+      }
+    }
+  }
+  if ($context['sandbox']['progress'] != $context['sandbox']['max']) {
+    $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
+  }
+  else {
+    xmlsitemap_flag_sitemap();
+  }
+}
+
+/**
+ * @} End of "addtogroup xmlsitemap".
+ */
Index: xmlsitemap_taxonomy/translations/fr.po
===================================================================
RCS file: xmlsitemap_taxonomy/translations/fr.po
diff -N xmlsitemap_taxonomy/translations/fr.po
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ xmlsitemap_taxonomy/translations/fr.po	6 May 2009 20:08:01 -0000
@@ -0,0 +1,106 @@
+# $Id: fr.po,v 1.1.2.1 2009/04/01 09:38:25 slybud Exp $
+#
+# French translation of Drupal (general)
+# Copyright YEAR NAME <EMAIL@ADDRESS>
+# Generated from files:
+#  xmlsitemap.module,v 1.1.2.56 2009/03/18 21:22:29 kiam
+#  xmlsitemap_node.module,v 1.19.2.81 2009/03/23 14:00:46 kiam
+#  xmlsitemap_term.module,v 1.11.2.43 2009/03/19 13:19:50 kiam
+#  xmlsitemap_engines.module,v 1.5.2.19 2009/02/15 00:36:18 kiam
+#  xmlsitemap.install,v 1.1.2.30 2009/03/14 18:52:18 kiam
+#  xmlsitemap.info,v 1.1.2.2 2009/03/08 23:47:46 kiam
+#  xmlsitemap_engines.info,v 1.2.2.1 2009/03/08 23:47:46 kiam
+#  xmlsitemap_file.info,v 1.1.4.3 2008/11/28 19:11:58 kiam
+#  xmlsitemap_helper.info,v 1.1.2.1 2009/03/08 23:47:46 kiam
+#  xmlsitemap_menu.install,v 1.1.4.26 2009/03/11 16:01:08 kiam
+#  xmlsitemap_menu.info,v 1.1.4.3 2009/03/08 23:47:47 kiam
+#  xmlsitemap_node.info,v 1.2.2.1 2009/03/08 23:47:48 kiam
+#  xmlsitemap_term.info,v 1.2.2.1 2009/02/19 16:15:46 kiam
+#  xmlsitemap_user.info,v 1.2.2.1 2009/03/08 23:47:48 kiam
+#  xmlsitemap_file.module,v 1.1.4.35 2009/03/19 13:19:56 kiam
+#  xmlsitemap_helper.module,v 1.1.2.4 2009/03/18 21:04:15 kiam
+#  xmlsitemap_helper.install.inc,v 1.1.2.1 2009/03/08 23:47:47 kiam
+#  xmlsitemap_user.module,v 1.12.2.58 2009/03/19 13:19:42 kiam
+#  xmlsitemap_menu.module,v 1.1.4.29 2009/03/23 13:51:26 kiam
+#  xmlsitemap_node.install,v 1.9.2.46 2009/03/11 16:01:03 kiam
+#  xmlsitemap_user.install,v 1.6.2.43 2009/03/11 16:00:59 kiam
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: French Translation for xmlsitemap_term drupal6 module\n"
+"POT-Creation-Date: 2009-04-01 11:08+0200\n"
+"PO-Revision-Date: 2009-04-01 11:11+0100\n"
+"Last-Translator: Sylvain Moreau <sylvain.moreau@ows.fr>\n"
+"Language-Team: Sylvain Moreau, OWS <sylvain.moreau@ows.fr>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n>1);\n"
+"X-Poedit-Language: French\n"
+"X-Poedit-Country: FRANCE\n"
+
+#: xmlsitemap_term.module:36;53
+msgid "XML site map"
+msgstr "Plan du site XML"
+
+#: xmlsitemap_term.module:42;58
+msgid "Priority"
+msgstr "Priorité"
+
+#: xmlsitemap_term.module:43
+msgid "The default priority is %priority."
+msgstr "La priorité par défaut est %priority."
+
+#: xmlsitemap_term.module:59
+msgid "This will be the default priority of terms in this vocabulary."
+msgstr "Ce sera la priorité par défaut des termes de ce vocabulaire."
+
+#: xmlsitemap_term.module:92
+msgid "Add the vocabulary terms of the selected posts to the XML site map"
+msgstr "Ajouter les termes de vocabulaire des publications sélectionnées au plan du site XML"
+
+#: xmlsitemap_term.module:97
+msgid "Change the XML site map priority of the selected posts vocabulary terms to default"
+msgstr "Modifier à la valeur par défaut la priorité dans le plan du site XML des termes de vocabulaire des publications sélectionnées"
+
+#: xmlsitemap_term.module:102
+msgid "Remove the vocabulary terms of the selected posts from the XML site map"
+msgstr "Supprimer les termes de vocabulaire des publications sélectionnées du plan de site XML"
+
+#: xmlsitemap_term.module:208
+#: xmlsitemap_term.info:0
+msgid "XML Sitemap: Term"
+msgstr "XML Sitemap : Terme"
+
+#: xmlsitemap_term.module:209
+msgid "The module adds <a href=\"@terms\">taxonomy terms</a> (categories) to the site map. You can change the default priority when you add or edit a vocabulary, and you can override the default priority when you add or edit individual terms."
+msgstr "Le module ajoute les <a href=\"@terms\">termes de taxonomie</a> (catégories) au plan du site. Vous pouvez modifier la priorité par défaut lors de l'ajout ou de l'édition d'un vocabulaire, ou vous pouvez remplacer la priorité par défaut lors de l'ajout ou de l'édition d'un terme."
+
+#: xmlsitemap_term.module:265
+msgid "Term ratio weight - nodes"
+msgstr "Poids du ratio par terme - noeuds"
+
+#: xmlsitemap_term.module:266
+msgid "This number will be added to the priority of vocabulary term which is used by 100 nodes; for the other terms, the number is calculated proportionally to the number of nodes. This doesn't apply for terms that are used for just one node, nor for the vocabulary terms  for which the priority is overriden."
+msgstr "Ce nombre sera ajouté à la priorité du terme de vocabulaire utilisé par 100 noeuds; pour les autres termes, le nombre est calculé proportionnellement aux nombres de noeuds. Ceci ne s'applique pas aux termes utilisés seulement par un noeud, ni pour les termes de vocabulaire pour lesquels la priorité est déjà remplacée."
+
+#: xmlsitemap_term.module:287
+msgid "Processing"
+msgstr "Exécution"
+
+#: xmlsitemap_term.module:289
+msgid "The update has encountered an error."
+msgstr "La mise à jour a échoué."
+
+#: xmlsitemap_term.module:0
+msgid "xmlsitemap_term"
+msgstr "xmlsitemap_term"
+
+#: xmlsitemap_term.info:0
+msgid "Adds taxonomy terms to the site map."
+msgstr "Ajouter des termes de taxonomie au plan du site."
+
+#: xmlsitemap_term.info:0
+msgid "XML Sitemap"
+msgstr "XML Sitemap"
+
Index: xmlsitemap_taxonomy/translations/xmlsitemap_taxonomy.pot
===================================================================
RCS file: xmlsitemap_taxonomy/translations/xmlsitemap_taxonomy.pot
diff -N xmlsitemap_taxonomy/translations/xmlsitemap_taxonomy.pot
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ xmlsitemap_taxonomy/translations/xmlsitemap_taxonomy.pot	6 May 2009 20:08:01 -0000
@@ -0,0 +1,85 @@
+# $Id: $
+#
+# LANGUAGE translation of Drupal (general)
+# Copyright YEAR NAME <EMAIL@ADDRESS>
+# Generated from files:
+#  xmlsitemap_taxonomy.module,v 1.11.2.51 2009/04/24 18:25:54 kiam
+#  xmlsitemap_taxonomy.info,v 1.2.2.3 2009/04/24 18:33:44 kiam
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"POT-Creation-Date: 2009-04-26 00:56+0200\n"
+"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
+"Last-Translator: NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
+
+#: xmlsitemap_taxonomy.module:55;76
+msgid "XML site map"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:61;81
+msgid "Priority"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:62
+msgid "The default priority is %priority."
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:82
+msgid "This will be the default priority of terms in this vocabulary."
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:97
+msgid "Term ratio weight - nodes"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:98
+msgid "This number will be added to the priority of vocabulary term which is used by 100 nodes; for the other terms, the number is calculated proportionally to the number of nodes. This doesn't apply for terms that are used for just one node, nor for the vocabulary terms  for which the priority is overriden."
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:110
+msgid "Add the vocabulary terms of the selected posts to the XML site map"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:115
+msgid "Change the XML site map priority of the selected posts vocabulary terms to default"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:120
+msgid "Remove the vocabulary terms of the selected posts from the XML site map"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:227 xmlsitemap_taxonomy.info:0
+msgid "XML Sitemap: Term"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:228
+msgid "The module adds <a href=\"@terms\">taxonomy terms</a> (categories) to the site map. You can change the default priority when you add or edit a vocabulary, and you can override the default priority when you add or edit individual terms."
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:290
+msgid "Processing"
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:292
+msgid "The update has encountered an error."
+msgstr ""
+
+#: xmlsitemap_taxonomy.module:0
+msgid "xmlsitemap_taxonomy"
+msgstr ""
+
+#: xmlsitemap_taxonomy.info:0
+msgid "Adds taxonomy terms to the site map."
+msgstr ""
+
+#: xmlsitemap_taxonomy.info:0
+msgid "XML Sitemap"
+msgstr ""
+
Index: xmlsitemap_term/xmlsitemap_term.info
===================================================================
RCS file: xmlsitemap_term/xmlsitemap_term.info
diff -N xmlsitemap_term/xmlsitemap_term.info
--- xmlsitemap_term/xmlsitemap_term.info	5 May 2009 21:53:44 -0000	1.2.2.4
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,6 +0,0 @@
-; $Id: xmlsitemap_term.info,v 1.2.2.4 2009/05/05 21:53:44 earnie Exp $
-name = XML sitemap term
-description = Add taxonomy term links to the sitemap.
-package = XML sitemap
-dependencies[] = xmlsitemap_node
-core = "6.x"
Index: xmlsitemap_term/xmlsitemap_term.install
===================================================================
RCS file: xmlsitemap_term/xmlsitemap_term.install
diff -N xmlsitemap_term/xmlsitemap_term.install
--- xmlsitemap_term/xmlsitemap_term.install	6 May 2009 18:59:02 -0000	1.5.2.45
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,354 +0,0 @@
-<?php
-// $Id: xmlsitemap_term.install,v 1.5.2.45 2009/05/06 18:59:02 earnie Exp $
-
-/**
- * @file
- * Installation file for XML sitemap term.
- */
-
-/*****************************************************************************
- * Drupal hooks.
- ****************************************************************************/
-
-/**
- * Implementation of hook_enable().
- */
-function xmlsitemap_term_enable() {
-  xmlsitemap_flag_sitemap();
-}
-
-/**
- * Implementation of hook_disable().
- */
-function xmlsitemap_term_disable() {
-  xmlsitemap_flag_sitemap();
-}
-
-/**
- * Implementation of hook_schema().
- */
-function xmlsitemap_term_schema() {
-  $schema['xmlsitemap_term'] = array(
-    'description' => 'The base table for xmlsitemap_term.',
-    'fields' => array(
-      'tid' => array(
-        'description' => 'The vocabulary term ID.',
-        'type' => 'int',
-        'unsigned' => TRUE,
-        'not null' => TRUE,
-        'default' => 0,
-      ),
-      'vid' => array(
-        'description' => 'The vocabulary ID.',
-        'type' => 'int',
-        'unsigned' => TRUE,
-        'not null' => TRUE,
-        'default' => 0,
-      ),
-      'changed' => array(
-        'description' => 'The Unix timestamp of the last change.',
-        'type' => 'int',
-        'unsigned' => TRUE,
-        'not null' => TRUE,
-        'default' => 0,
-      ),
-      'previously_changed' => array(
-        'description' => 'The Unix timestamp of the previous change.',
-        'type' => 'int',
-        'unsigned' => TRUE,
-        'not null' => TRUE,
-        'default' => 0,
-      ),
-      'priority_override' => array(
-        'description' => 'The priority of the term in the sitemap.',
-        'type' => 'float',
-        'not null' => TRUE,
-        'default' => -2.0,
-      ),
-    ),
-    'primary key' => array('tid'),
-  );
-  return $schema;
-}
-
-/**
- * Implementation of hook_install().
- */
-function xmlsitemap_term_install() {
-  drupal_install_schema('xmlsitemap_term');
-  db_query("UPDATE {system} SET weight = 10 WHERE name = 'xmlsitemap_term'");
-}
-
-/**
- * Implementation of hook_update_N().
- * Updates the SQL tables.
- */
-function xmlsitemap_term_update_6000() {
-  $ret = array();
-  if (db_table_exists('xmlsitemap_term')) {
-    if (db_column_exists('xmlsitemap_term', 'pid')) {
-      $result = array();
-      @db_drop_index($result, 'xmlsitemap_term', 'pid');
-      if ($result[0]['success']) {
-        $ret[] = $result[0];
-      }
-      db_drop_field($ret, 'xmlsitemap_term', 'pid');
-    }
-    $result = array();
-    @db_drop_primary_key($result, 'xmlsitemap_term');
-    if ($result[0]['success']) {
-      $ret[] = $result[0];
-    }
-    if (db_column_exists('xmlsitemap_term', 'tid')) {
-      db_change_field($ret, 'xmlsitemap_term', 'tid', 'tid',
-        array(
-          'description' => 'The vocabulary term ID.',
-          'type' => 'int',
-          'unsigned' => TRUE,
-          'not null' => TRUE,
-          'default' => 0,
-        ),
-        array('primary key' => array('tid'))
-      );
-    }
-    else {
-      db_add_field($ret, 'xmlsitemap_term', 'tid',
-        array(
-          'description' => 'The vocabulary term ID.',
-          'type' => 'int',
-          'unsigned' => TRUE,
-          'not null' => TRUE,
-          'default' => 0,
-        ),
-        array('primary key' => array('tid'))
-      );
-    }
-    if (!db_column_exists('xmlsitemap_term', 'vid')) {
-      db_add_field($ret, 'xmlsitemap_term', 'vid',
-        array(
-          'description' => 'The vocabulary ID.',
-          'type' => 'int',
-          'unsigned' => TRUE,
-          'not null' => TRUE,
-          'default' => 0,
-        )
-      );
-    }
-    if (db_column_exists('xmlsitemap_term', 'last_changed')) {
-      db_change_field($ret, 'xmlsitemap_term', 'last_changed', 'changed',
-        array(
-          'description' => 'The Unix timestamp of the last change.',
-          'type' => 'int',
-          'unsigned' => TRUE,
-          'not null' => TRUE,
-          'default' => 0,
-        )
-      );
-    }
-    else {
-      if (!db_column_exists('xmlsitemap_term', 'changed')) {
-        db_add_field($ret, 'xmlsitemap_term', 'changed',
-          array(
-            'description' => 'The Unix timestamp of the last change.',
-            'type' => 'int',
-            'unsigned' => TRUE,
-            'not null' => TRUE,
-            'default' => 0,
-          )
-        );
-      }
-      else {
-        db_change_field($ret, 'xmlsitemap_term', 'changed', 'changed',
-          array(
-            'description' => 'The Unix timestamp of the last change.',
-            'type' => 'int',
-            'unsigned' => TRUE,
-            'not null' => TRUE,
-            'default' => 0,
-          )
-        );
-      }
-    }
-    if (!db_column_exists('xmlsitemap_term', 'previously_changed')) {
-      db_add_field($ret, 'xmlsitemap_term', 'previously_changed',
-        array(
-          'description' => 'The Unix timestamp of the previous change.',
-          'type' => 'int',
-          'unsigned' => TRUE,
-          'not null' => TRUE,
-          'default' => 0,
-        )
-      );
-    }
-    else {
-      db_change_field($ret, 'xmlsitemap_term', 'previously_changed', 'previously_changed',
-        array(
-          'description' => 'The Unix timestamp of the previous change.',
-          'type' => 'int',
-          'unsigned' => TRUE,
-          'not null' => TRUE,
-          'default' => 0,
-        )
-      );
-    }
-    $ret[] = update_sql("UPDATE {xmlsitemap_term}
-      SET priority_override = -2.0
-      WHERE priority_override IS NULL"
-    );
-    db_change_field($ret, 'xmlsitemap_term', 'priority_override', 'priority_override',
-      array(
-        'description' => 'The priority of the term in the sitemap.',
-        'type' => 'float',
-        'not null' => TRUE,
-        'default' => -2.0,
-      )
-    );
-  }
-  else {
-    db_create_table($ret, 'xmlsitemap_term',
-      array(
-        'description' => 'The base table for xmlsitemap_term.',
-        'fields' => array(
-          'tid' => array(
-            'description' => 'The vocabulary term ID.',
-            'type' => 'int',
-            'unsigned' => TRUE,
-            'not null' => TRUE,
-            'default' => 0,
-           ),
-           'vid' => array(
-            'description' => 'The vocabulary ID.',
-            'type' => 'int',
-            'unsigned' => TRUE,
-            'not null' => TRUE,
-            'default' => 0,
-           ),
-           'changed' => array(
-             'description' => 'The Unix timestamp of the last change.',
-             'type' => 'int',
-             'unsigned' => TRUE,
-             'not null' => TRUE,
-             'default' => 0,
-           ),
-           'previously_changed' => array(
-             'description' => 'The Unix timestamp of the previous change.',
-             'type' => 'int',
-             'unsigned' => TRUE,
-             'not null' => TRUE,
-             'default' => 0,
-           ),
-           'priority_override' => array(
-             'description' => 'The priority of the term in the sitemap.',
-             'type' => 'float',
-             'not null' => TRUE,
-             'default' => -2.0,
-           ),
-        ),
-        'primary key' => array('tid'),
-      )
-    );
-  }
-  return $ret;
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6100() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6101() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6102() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6103() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6104() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6105() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6106() {
-  $ret[] = update_sql("UPDATE {system} SET weight = 10 WHERE name = 'xmlsitemap_term'");
-  return $ret;
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6107() {
-  return xmlsitemap_term_update_6000();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6108() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6109() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6110() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- */
-function xmlsitemap_term_update_6111() {
-  return array();
-}
-
-/**
- * Implementation of hook_update_N().
- *
- */
-function xmlsitemap_term_update_6112() {
-  return array();
-}
-
-/**
- * Implementation of hook_uninstall().
- */
-function xmlsitemap_term_uninstall() {
-  drupal_uninstall_schema('xmlsitemap_term');
-  db_query("DELETE FROM {variable} WHERE name LIKE 'xmlsitemap\_term\_%'");
-}
-
Index: xmlsitemap_term/xmlsitemap_term.module
===================================================================
RCS file: xmlsitemap_term/xmlsitemap_term.module
diff -N xmlsitemap_term/xmlsitemap_term.module
--- xmlsitemap_term/xmlsitemap_term.module	6 May 2009 18:59:02 -0000	1.11.2.67
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,380 +0,0 @@
-<?php
-// $Id: xmlsitemap_term.module,v 1.11.2.67 2009/05/06 18:59:02 earnie Exp $
-
-/**
- * @file
- * Adds terms to the sitemap.
- */
-
-/**
- * @addtogroup xmlsitemap
- * @{
- */
-
-/*****************************************************************************
- * Drupal hooks.
- ****************************************************************************/
-
-/**
- * Implementation of hook_cron().
- */
-function xmlsitemap_term_cron() {
-  if (($limit = variable_get('xmlsitemap_term_cron_limit', 100)) != -1) {
-    $sql = "SELECT t.* FROM {term_data} t
-      LEFT JOIN {xmlsitemap_term} xt ON xt.tid = t.tid
-      WHERE xt.tid IS NULL";
-    $result = db_query_range($sql, 0, $limit);
-    while ($term = db_fetch_object($result)) {
-      $row = new stdClass();
-      $row->tid = $term->tid;
-      $row->vid = $term->vid;
-      $row->changed = XMLSITEMAP_TIME;
-      drupal_write_record('xmlsitemap_term', $row);
-    }
-  }
-}
-
-/**
- * Implementation of hook_form_FORM_ID_alter().
- */
-function xmlsitemap_term_form_taxonomy_form_term_alter(&$form, &$from_state) {
-  $priority = db_result(db_query("SELECT priority_override
-    FROM {xmlsitemap_term}
-    WHERE tid = %d", $form['tid']['#value'])
-  );
-  if ($priority === FALSE) {
-    $priority = -2.0;
-  }
-  $options = xmlsitemap_priority_options('both');
-  $default = variable_get('xmlsitemap_term_vocabulary_priority_'. $form['vid']['#value'], '0.5');
-  if (!isset($form['xmlsitemap'])) {
-    $form['xmlsitemap'] = array(
-      '#type' => 'fieldset',
-      '#title' => t('XML sitemap'),
-      '#collapsible' => TRUE,
-    );
-  }
-  $form['xmlsitemap']['xmlsitemap_term_priority'] = array(
-    '#type' => 'select',
-    '#title' => t('Priority'),
-    '#description' => t('The default priority is %priority.', array('%priority' => $options[$default])),
-    '#default_value' => $priority,
-    '#options' => $options,
-  );
-  $form['submit']['#weight'] = isset($form['submit']['#weight']) ? $form['submit']['#weight'] + 1 : 1;
-  $form['delete']['#weight'] = isset($form['delete']['#weight']) ? $form['delete']['#weight'] + 1 : 1;
-}
-
-/**
- * Implementation of hook_form_FORM_ID_alter().
- */
-function xmlsitemap_term_form_taxonomy_form_vocabulary_alter(&$form, &$from_state) {
-  $form['xmlsitemap'] = array(
-    '#type' => 'fieldset',
-    '#title' => t('XML sitemap'),
-    '#collapsible' => TRUE,
-  );
-  $form['xmlsitemap']['xmlsitemap_term_vocabulary_priority'] = array(
-    '#type' => 'select',
-    '#title' => t('Priority'),
-    '#description' => t('This will be the default priority of terms in this vocabulary.'),
-    '#default_value' => variable_get('xmlsitemap_term_vocabulary_priority_'. $form['vid']['#value'], 0.5),
-    '#options' => xmlsitemap_priority_options('exclude'),
-  );
-  $form['submit']['#weight'] = isset($form['submit']['#weight']) ? $form['submit']['#weight'] + 1 : 1;
-  $form['delete']['#weight'] = isset($form['delete']['#weight']) ? $form['delete']['#weight'] + 1 : 1;
-}
-
-/**
- * Implementation of hook_form_FORM_ID_alter().
- */
-function xmlsitemap_term_form_xmlsitemap_settings_alter(&$form, &$from_state) {
-  $options = xmlsitemap_priority_options();
-  $form['xmlsitemap_term'] = array(
-    '#type' => 'fieldset',
-    '#title' => t('Taxonomy terms settings'),
-    '#description' => t('The settings for the taxonomy terms to include in the sitemap.'),
-    '#collapsible' => TRUE,
-    '#weight' => 2,
-  );
-  $form['xmlsitemap_term']['xmlsitemap_term_node_priority'] = array(
-    '#type' => 'select',
-    '#title' => t('Terms use priority adjustment'),
-    '#description' => t("This number will be added to the priority of vocabulary term which is used by 100 nodes; for the other terms, the number is calculated proportionally to the number of nodes. This doesn't apply for terms that are used for just one node, nor for the vocabulary terms  for which the priority is overriden."),
-    '#default_value' => variable_get('xmlsitemap_term_node_priority', 0.2),
-    '#options' => $options,
-  );
-  $form['xmlsitemap_term']['xmlsitemap_term_cron_limit'] = array(
-    '#type' => 'select',
-    '#title' => t('Cron limit'),
-    '#description' => t('The number of taxonomy terms that are updated in each pass of a <a href="@cron">cron maintenance task</a>.', array('@cron' => url('admin/reports/status'))),
-    '#default_value' => variable_get('xmlsitemap_term_cron_limit', 100),
-    '#options' => xmlsitemap_cron_options(),
-  );
-}
-
-/**
- * Implementation of hook_node_operations().
- */
-function xmlsitemap_term_node_operations() {
-  $operations = array(
-    'xmlsitemap_add_terms' => array(
-      'label' => t('Add the vocabulary terms of the selected posts to the XML sitemap'),
-      'callback' => '_xmlsitemap_term_priority_operations',
-      'callback arguments' => array('priority' => 0.5),
-    ),
-    'xmlsitemap_change_terms_priority' => array(
-      'label' => t('Change the XML sitemap priority of the selected posts vocabulary terms to default'),
-      'callback' => '_xmlsitemap_term_priority_operations',
-      'callback arguments' => array('priority' => -2.0),
-    ),
-    'xmlsitemap_remove_terms' => array(
-      'label' => t('Remove the vocabulary terms of the selected posts from the XML sitemap'),
-      'callback' => '_xmlsitemap_term_priority_operations',
-      'callback arguments' => array('priority' => -1.0),
-    ),
-  );
-  return $operations;
-}
-
-/**
- * Implementation of hook_nodeapi().
- */
-function xmlsitemap_term_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
-  switch ($op) {
-    case 'update':
-      $terms = taxonomy_node_get_terms($node);
-      foreach ($terms as $term) {
-        $result = db_fetch_object(db_query("SELECT tid, changed, previously_changed, priority_override
-          FROM {xmlsitemap_term}
-          WHERE tid = %d", $term->tid));
-        if ($result === FALSE) {
-          $row = new stdClass();
-          $row->tid = $term->tid;
-          $row->vid = $term->vid;
-          $row->changed = $node->changed;
-          $row->previously_changed = $node->created;
-        }
-        else {
-          $row = $result;
-          if ($row->changed < $node->changed) {
-            $row->previously_changed = $row->changed;
-            $row->changed = $node->changed;
-          }
-        }
-        drupal_write_record('xmlsitemap_term', $row, $result === FALSE ? NULL : 'tid');
-        xmlsitemap_flag_sitemap();
-      }
-      break;
-  }
-}
-
-/**
- * Implementation of hook_taxonomy().
- */
-
-function xmlsitemap_term_taxonomy($op, $type, $array = NULL) {
-  if ($type == 'vocabulary') {
-    switch ($op) {
-      case 'delete':
-        db_query("DELETE FROM {xmlsitemap_term} WHERE vid = %d", $array['vid']);
-        variable_del('xmlsitemap_term_vocabulary_priority_'. $array['vid']);
-        xmlsitemap_flag_sitemap();
-        break;
-      case 'insert':
-      case 'update':
-        if (isset($array['vid'])) {
-          if (variable_get('xmlsitemap_term_vocabulary_priority_'. $array['vid'], 0.5) != $array['xmlsitemap_term_vocabulary_priority']) {
-            variable_set('xmlsitemap_term_vocabulary_priority_'. $array['vid'], $array['xmlsitemap_term_vocabulary_priority']);
-            xmlsitemap_flag_sitemap();
-          }
-        }
-        break;
-    }
-  }
-  else {
-    switch ($op) {
-      case 'delete':
-        db_query("DELETE FROM {xmlsitemap_term} WHERE tid = %d", $array['tid']);
-        break;
-      case 'insert':
-        if (isset($array['tid']) && isset($array['vid'])) {
-          $row = new stdClass();
-          $row->tid = $array['tid'];
-          $row->vid = $array['vid'];
-          $row->changed = XMLSITEMAP_TIME;
-          $row->priority_override = isset($array['xmlsitemap_term_priority']) ? $array['xmlsitemap_term_priority'] : -2.0;
-          drupal_write_record('xmlsitemap_term', $row);
-        }
-        break;
-      case 'update':
-        $result = db_fetch_object(db_query("SELECT tid, vid, changed, previously_changed, priority_override
-          FROM {xmlsitemap_term}
-          WHERE tid = %d", $array['tid'])
-        );
-        if ($result === FALSE) {
-          $row = new stdClass();
-          $row->tid = $array['tid'];
-          $row->vid = $array['vid'];
-          $row->changed = XMLSITEMAP_TIME;
-          $row->priority_override = isset($array['xmlsitemap_term_priority']) ? $array['xmlsitemap_term_priority'] : -2.0;
-        }
-        else {
-          $row = $result;
-          if (isset($array['xmlsitemap_term_priority'])) {
-            $row->priority_override = $array['xmlsitemap_term_priority'];
-          }
-        }
-        drupal_write_record('xmlsitemap_term', $row, $result === FALSE ? NULL : 'tid');
-        break;
-    }
-    xmlsitemap_flag_sitemap();
-  }
-}
-
-/**
- * Implementation of hook_xmlsitemap_description().
- */
-function xmlsitemap_term_xmlsitemap_description() {
-  return '<dt>'. t('XML sitemap term') .'</dt>'.
-    '<dd>'. t('The module adds <a href="@terms">taxonomy terms</a> (categories) to the sitemap. You can change the default priority when you add or edit a vocabulary, and you can override the default priority when you add or edit individual terms.', array('@terms' => url('admin/content/taxonomy'))) .'</dd>';
-}
-
-/**
- * Implementation of hook_xmlsitemap_links().
- */
-function xmlsitemap_term_xmlsitemap_links() {
-  $result = db_query(
-    db_rewrite_sql(
-      "SELECT t.tid, t.vid, v.module, xt.changed, xt.previously_changed, xt.priority_override
-        FROM {term_data} t
-        LEFT JOIN {vocabulary} v ON t.vid = v.vid
-        LEFT JOIN {xmlsitemap_term} xt ON t.tid = xt.tid",
-      't', 'tid'
-    )
-  );
-  $row = new stdClass();
-  $row->module = 'xmlsitemap_term';
-  $row->type = 'taxonomy';
-  while ($term = db_fetch_object($result)) {
-    if ($term->module == 'forum') {
-      $row->loc = 'forum/'. $term->tid;
-    }
-    else {
-      $row->loc = taxonomy_term_path($term);
-    }
-    $row->id = $term->tid;
-    $row->changed = $term->changed;
-    $row->changefreq = max(XMLSITEMAP_TIME - $term->changed, empty($term->previously_changed) ? 0 : $term->changed - $term->previously_changed);
-    if ($term->priority_override != -2.0) {
-      $priority = $term->priority_override;
-    }
-    elseif (($priority = variable_get('xmlsitemap_term_vocabulary_priority_'. $term->vid, 0.5)) != -1.0) {
-      $count = (integer) db_result(db_query("SELECT COUNT(vid) FROM {term_node} WHERE tid = %d", $term->tid));
-      if ($count > 1) {
-        $priority += variable_get('xmlsitemap_term_node_priority', 0.2) * $count / 100;
-      }
-    }
-    if (!isset($priority)) {
-      $priority = -1.0;
-    }
-    $row->priority = ($priority == -1) ? $priority : min(max(round($priority, 1), 0.0), 1.0);
-    $old_row = db_fetch_object(db_query("SELECT lid, type, priority FROM {xmlsitemap} WHERE loc = '%s'", $row->loc));
-    if ($old_row === FALSE) {
-      drupal_write_record('xmlsitemap', $row);
-    }
-    elseif ($old_row->type = 'taxonomy' && $old_row->priority != $row->priority) {
-      $row->lid = $old_row->lid;
-      drupal_write_record('xmlsitemap', $row, 'lid');
-    }
-  }
-}
-
-/*****************************************************************************
- * Private functions - node operation callbacks.
- ****************************************************************************/
-
-/**
- * Node operations callback.
- */
-function _xmlsitemap_term_priority_operations($nodes, $priority) {
-  if (count($nodes)) {
-    $batch = array(
-      'operations' => array(
-        array('_xmlsitemap_term_batch_process', array($nodes, $priority))
-      ),
-      'finished' => 'xmlsitemap_batch_operations_finished',
-      'title' => t('Processing'),
-      'progress_message' => '',
-      'error_message' => t('The update has encountered an error.'),
-    );
-    batch_set($batch);
-  }
-}
-
-/*****************************************************************************
- * Private functions - batch operation callbacks.
- ****************************************************************************/
-
-/**
- * Node operations batch process callback.
- */
-function _xmlsitemap_term_batch_process($nodes, $priority, &$context) {
-  if (!isset($context['sandbox']['progress'])) {
-    $context['sandbox']['progress'] = 0;
-    $context['sandbox']['max'] = count($nodes);
-    $context['sandbox']['nodes'] = $nodes;
-    $context['sandbox']['terms'] = array();
-  }
-  if (empty($context['sandbox']['terms'])) {
-    $nid = array_shift($context['sandbox']['nodes']);
-    if ($node = node_load($nid)) {
-      $context['sandbox']['terms'] = taxonomy_node_get_terms($node);
-      $context['sandbox']['node'] = $node;
-    }
-  }
-  $term = array_shift($context['sandbox']['terms']);
-  if (isset($term)) {
-    $node = $context['sandbox']['node'];
-    $result = db_fetch_object(db_query("SELECT tid, vid, changed, previously_changed, priority_override
-      FROM {xmlsitemap_term}
-      WHERE tid = %d", $term->tid)
-    );
-    if ($result === FALSE) {
-      $row = new stdClass();
-      $row->tid = $term->tid;
-      $row->vid = $term->vid;
-      $row->changed = $node->changed;
-      $row->previously_changed = $node->created;
-    }
-    else {
-      $row = $result;
-      if ($node->changed > $row->changed) {
-        $row->previously_changed = $row->changed;
-        $row->changed = $node->changed;
-      }
-    }
-    $row->priority_override = $priority;
-    drupal_write_record('xmlsitemap_term', $row, $result === FALSE ? NULL : 'tid');
-  }
-  if (empty($context['sandbox']['terms'])) {
-    $context['sandbox']['progress']++;
-    if (!empty($context['sandbox']['node'])) {
-      $node = $context['sandbox']['node'];
-      $context['results'][] = l($node->title, 'node/'. $node->nid);
-      if (count($context['results']) > 6) {
-        array_shift($context['results']);
-      }
-    }
-  }
-  if ($context['sandbox']['progress'] != $context['sandbox']['max']) {
-    $context['finished'] = $context['sandbox']['progress'] / $context['sandbox']['max'];
-  }
-  else {
-    xmlsitemap_flag_sitemap();
-  }
-}
-
-/**
- * @} End of "addtogroup xmlsitemap".
- */
Index: xmlsitemap_term/translations/fr.po
===================================================================
RCS file: xmlsitemap_term/translations/fr.po
diff -N xmlsitemap_term/translations/fr.po
--- xmlsitemap_term/translations/fr.po	1 Apr 2009 09:38:25 -0000	1.1.2.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,106 +0,0 @@
-# $Id: fr.po,v 1.1.2.1 2009/04/01 09:38:25 slybud Exp $
-#
-# French translation of Drupal (general)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-#  xmlsitemap.module,v 1.1.2.56 2009/03/18 21:22:29 kiam
-#  xmlsitemap_node.module,v 1.19.2.81 2009/03/23 14:00:46 kiam
-#  xmlsitemap_term.module,v 1.11.2.43 2009/03/19 13:19:50 kiam
-#  xmlsitemap_engines.module,v 1.5.2.19 2009/02/15 00:36:18 kiam
-#  xmlsitemap.install,v 1.1.2.30 2009/03/14 18:52:18 kiam
-#  xmlsitemap.info,v 1.1.2.2 2009/03/08 23:47:46 kiam
-#  xmlsitemap_engines.info,v 1.2.2.1 2009/03/08 23:47:46 kiam
-#  xmlsitemap_file.info,v 1.1.4.3 2008/11/28 19:11:58 kiam
-#  xmlsitemap_helper.info,v 1.1.2.1 2009/03/08 23:47:46 kiam
-#  xmlsitemap_menu.install,v 1.1.4.26 2009/03/11 16:01:08 kiam
-#  xmlsitemap_menu.info,v 1.1.4.3 2009/03/08 23:47:47 kiam
-#  xmlsitemap_node.info,v 1.2.2.1 2009/03/08 23:47:48 kiam
-#  xmlsitemap_term.info,v 1.2.2.1 2009/02/19 16:15:46 kiam
-#  xmlsitemap_user.info,v 1.2.2.1 2009/03/08 23:47:48 kiam
-#  xmlsitemap_file.module,v 1.1.4.35 2009/03/19 13:19:56 kiam
-#  xmlsitemap_helper.module,v 1.1.2.4 2009/03/18 21:04:15 kiam
-#  xmlsitemap_helper.install.inc,v 1.1.2.1 2009/03/08 23:47:47 kiam
-#  xmlsitemap_user.module,v 1.12.2.58 2009/03/19 13:19:42 kiam
-#  xmlsitemap_menu.module,v 1.1.4.29 2009/03/23 13:51:26 kiam
-#  xmlsitemap_node.install,v 1.9.2.46 2009/03/11 16:01:03 kiam
-#  xmlsitemap_user.install,v 1.6.2.43 2009/03/11 16:00:59 kiam
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: French Translation for xmlsitemap_term drupal6 module\n"
-"POT-Creation-Date: 2009-04-01 11:08+0200\n"
-"PO-Revision-Date: 2009-04-01 11:11+0100\n"
-"Last-Translator: Sylvain Moreau <sylvain.moreau@ows.fr>\n"
-"Language-Team: Sylvain Moreau, OWS <sylvain.moreau@ows.fr>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=(n>1);\n"
-"X-Poedit-Language: French\n"
-"X-Poedit-Country: FRANCE\n"
-
-#: xmlsitemap_term.module:36;53
-msgid "XML site map"
-msgstr "Plan du site XML"
-
-#: xmlsitemap_term.module:42;58
-msgid "Priority"
-msgstr "Priorité"
-
-#: xmlsitemap_term.module:43
-msgid "The default priority is %priority."
-msgstr "La priorité par défaut est %priority."
-
-#: xmlsitemap_term.module:59
-msgid "This will be the default priority of terms in this vocabulary."
-msgstr "Ce sera la priorité par défaut des termes de ce vocabulaire."
-
-#: xmlsitemap_term.module:92
-msgid "Add the vocabulary terms of the selected posts to the XML site map"
-msgstr "Ajouter les termes de vocabulaire des publications sélectionnées au plan du site XML"
-
-#: xmlsitemap_term.module:97
-msgid "Change the XML site map priority of the selected posts vocabulary terms to default"
-msgstr "Modifier à la valeur par défaut la priorité dans le plan du site XML des termes de vocabulaire des publications sélectionnées"
-
-#: xmlsitemap_term.module:102
-msgid "Remove the vocabulary terms of the selected posts from the XML site map"
-msgstr "Supprimer les termes de vocabulaire des publications sélectionnées du plan de site XML"
-
-#: xmlsitemap_term.module:208
-#: xmlsitemap_term.info:0
-msgid "XML Sitemap: Term"
-msgstr "XML Sitemap : Terme"
-
-#: xmlsitemap_term.module:209
-msgid "The module adds <a href=\"@terms\">taxonomy terms</a> (categories) to the site map. You can change the default priority when you add or edit a vocabulary, and you can override the default priority when you add or edit individual terms."
-msgstr "Le module ajoute les <a href=\"@terms\">termes de taxonomie</a> (catégories) au plan du site. Vous pouvez modifier la priorité par défaut lors de l'ajout ou de l'édition d'un vocabulaire, ou vous pouvez remplacer la priorité par défaut lors de l'ajout ou de l'édition d'un terme."
-
-#: xmlsitemap_term.module:265
-msgid "Term ratio weight - nodes"
-msgstr "Poids du ratio par terme - noeuds"
-
-#: xmlsitemap_term.module:266
-msgid "This number will be added to the priority of vocabulary term which is used by 100 nodes; for the other terms, the number is calculated proportionally to the number of nodes. This doesn't apply for terms that are used for just one node, nor for the vocabulary terms  for which the priority is overriden."
-msgstr "Ce nombre sera ajouté à la priorité du terme de vocabulaire utilisé par 100 noeuds; pour les autres termes, le nombre est calculé proportionnellement aux nombres de noeuds. Ceci ne s'applique pas aux termes utilisés seulement par un noeud, ni pour les termes de vocabulaire pour lesquels la priorité est déjà remplacée."
-
-#: xmlsitemap_term.module:287
-msgid "Processing"
-msgstr "Exécution"
-
-#: xmlsitemap_term.module:289
-msgid "The update has encountered an error."
-msgstr "La mise à jour a échoué."
-
-#: xmlsitemap_term.module:0
-msgid "xmlsitemap_term"
-msgstr "xmlsitemap_term"
-
-#: xmlsitemap_term.info:0
-msgid "Adds taxonomy terms to the site map."
-msgstr "Ajouter des termes de taxonomie au plan du site."
-
-#: xmlsitemap_term.info:0
-msgid "XML Sitemap"
-msgstr "XML Sitemap"
-
Index: xmlsitemap_term/translations/xmlsitemap_term.pot
===================================================================
RCS file: xmlsitemap_term/translations/xmlsitemap_term.pot
diff -N xmlsitemap_term/translations/xmlsitemap_term.pot
--- xmlsitemap_term/translations/xmlsitemap_term.pot	25 Apr 2009 23:01:01 -0000	1.1.2.3
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,85 +0,0 @@
-# $Id: xmlsitemap_term.pot,v 1.1.2.3 2009/04/25 23:01:01 kiam Exp $
-#
-# LANGUAGE translation of Drupal (general)
-# Copyright YEAR NAME <EMAIL@ADDRESS>
-# Generated from files:
-#  xmlsitemap_term.module,v 1.11.2.51 2009/04/24 18:25:54 kiam
-#  xmlsitemap_term.info,v 1.2.2.3 2009/04/24 18:33:44 kiam
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"POT-Creation-Date: 2009-04-26 00:56+0200\n"
-"PO-Revision-Date: YYYY-mm-DD HH:MM+ZZZZ\n"
-"Last-Translator: NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-
-#: xmlsitemap_term.module:55;76
-msgid "XML site map"
-msgstr ""
-
-#: xmlsitemap_term.module:61;81
-msgid "Priority"
-msgstr ""
-
-#: xmlsitemap_term.module:62
-msgid "The default priority is %priority."
-msgstr ""
-
-#: xmlsitemap_term.module:82
-msgid "This will be the default priority of terms in this vocabulary."
-msgstr ""
-
-#: xmlsitemap_term.module:97
-msgid "Term ratio weight - nodes"
-msgstr ""
-
-#: xmlsitemap_term.module:98
-msgid "This number will be added to the priority of vocabulary term which is used by 100 nodes; for the other terms, the number is calculated proportionally to the number of nodes. This doesn't apply for terms that are used for just one node, nor for the vocabulary terms  for which the priority is overriden."
-msgstr ""
-
-#: xmlsitemap_term.module:110
-msgid "Add the vocabulary terms of the selected posts to the XML site map"
-msgstr ""
-
-#: xmlsitemap_term.module:115
-msgid "Change the XML site map priority of the selected posts vocabulary terms to default"
-msgstr ""
-
-#: xmlsitemap_term.module:120
-msgid "Remove the vocabulary terms of the selected posts from the XML site map"
-msgstr ""
-
-#: xmlsitemap_term.module:227 xmlsitemap_term.info:0
-msgid "XML Sitemap: Term"
-msgstr ""
-
-#: xmlsitemap_term.module:228
-msgid "The module adds <a href=\"@terms\">taxonomy terms</a> (categories) to the site map. You can change the default priority when you add or edit a vocabulary, and you can override the default priority when you add or edit individual terms."
-msgstr ""
-
-#: xmlsitemap_term.module:290
-msgid "Processing"
-msgstr ""
-
-#: xmlsitemap_term.module:292
-msgid "The update has encountered an error."
-msgstr ""
-
-#: xmlsitemap_term.module:0
-msgid "xmlsitemap_term"
-msgstr ""
-
-#: xmlsitemap_term.info:0
-msgid "Adds taxonomy terms to the site map."
-msgstr ""
-
-#: xmlsitemap_term.info:0
-msgid "XML Sitemap"
-msgstr ""
-
