? .svn
? missing-t.patch
? translations/.svn
Index: archive.pages.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/archive/archive.pages.inc,v
retrieving revision 1.18
diff -u -p -r1.18 archive.pages.inc
--- archive.pages.inc	4 Jan 2008 12:25:33 -0000	1.18
+++ archive.pages.inc	28 Apr 2008 22:02:37 -0000
@@ -31,7 +31,7 @@ function archive_page($type = 'all', $ye
   
   // Check that there're nodes we can display.
   $nodes = db_result(db_query(db_rewrite_sql('SELECT COUNT(1) FROM {node} n WHERE n.status = 1 AND n.type IN (\''. implode('\',\'', variable_get('archive_type_filters', array())) .'\')')));
-  if (!$nodes && $type = 'all' && $year == 0 && $month == 0 && $day == 0) {
+  if (!$nodes && $type == 'all' && $year == 0 && $month == 0 && $day == 0) {
     return t('No content found.');
   }
   
@@ -250,7 +250,7 @@ function theme_archive_navigation_years(
     $all_count += $year_count;
   }
   
-  $output .= '<li'. ($date->year?'':' class="selected"') .'>'. l('All', _archive_url($type), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
+  $output .= '<li'. ($date->year?'':' class="selected"') .'>'. l(t('All'), _archive_url($type), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
   foreach ($date->years as $year => $year_count) {
     $class = '';
     if ($year == $date->year) {
@@ -276,7 +276,7 @@ function theme_archive_navigation_months
     $all_count += $month;
   }
   
-  $output .= '<li'. ($date->month?'':' class="selected"') .'>'. l('All', _archive_url($type, $date->year), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
+  $output .= '<li'. ($date->month?'':' class="selected"') .'>'. l(t('All'), _archive_url($type, $date->year), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
   $curr_month = date('n', time());
   $curr_year = date('Y', time());
   foreach (range(1, 12) as $month) {
@@ -289,7 +289,7 @@ function theme_archive_navigation_months
       $class = ' class="future"';
     }
     $month_names = array('', 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
-    $output .= "<li$class>". ($posts > 0 ? l($month_names[$month], _archive_url($type, $date->year, $month), array('attributes' => array('title' => format_plural($posts, "1 post", "@count posts")))) : $month_names[$month]) ."</li>\n";
+    $output .= "<li$class>". ($posts > 0 ? l(t($month_names[$month]), _archive_url($type, $date->year, $month), array('attributes' => array('title' => format_plural($posts, "1 post", "@count posts")))) : t($month_names[$month])) ."</li>\n";
   }
   $output .= "</ul>\n";
   return $output;
@@ -308,7 +308,7 @@ function theme_archive_navigation_days($
     $all_count += $day;
   }
   
-  $output .= '<li'. ($date->day?'':' class="selected"') .'>'. l('All', _archive_url($type, $date->year, $date->month), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
+  $output .= '<li'. ($date->day?'':' class="selected"') .'>'. l(t('All'), _archive_url($type, $date->year, $date->month), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
   $curr_month = date('n', time());
   $curr_year = date('Y', time());
   $curr_day = date('j', time());
@@ -344,7 +344,7 @@ function theme_archive_navigation_node_t
     $all_count += $t['count'];
   }
   
-  $output .= '<li'. ($type && $type != 'all'?'':' class="selected"') .'>'. l('All', _archive_url('all', $date->year, $date->month, $date->day), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
+  $output .= '<li'. ($type && $type != 'all'?'':' class="selected"') .'>'. l(t('All'), _archive_url('all', $date->year, $date->month, $date->day), array('attributes' => array('title' => format_plural($all_count, '1 post', '@count posts')))) ."</li>\n";
   foreach ($types_count as $ft_key => $ft_value) {
     if (!$ft_value['count']) {
       continue;
