commit 9d3828f97f787dd34022afdee565ba22caf7b823
Author: Leonard Westermeyer <leonardwestermeyer@gmail.com>
Date:   Thu Sep 8 10:07:21 2011 -0300

    Two more corrections to localize topic headers.
    One minor typo in help section.
    Added three parameters for use in edition header templates.

diff --git a/epublish.module b/epublish.module
index 723f1af..0bcc01e 100644
--- a/epublish.module
+++ b/epublish.module
@@ -142,7 +142,7 @@ function epublish_help($path, $arg) {
       "<li>When editing the topics in each section, you can set an \"automatically-included headlines limit\" specifying the maximum number of headlines that should be included for that topic and also set a time frame that limits the search. For example, a time ".
       "frame of \"30 days\" means that postings older than that will be ignored. You can also specify which node types are eligible for inclusion.</li>\n".
       "<li>Most topics refer to a taxonomy term and all of its descendants. For example, a taxonomy might include the term \"music,\" with child terms \"rock,\" \"classical,\" \"jazz.\" Only nodes that have been tagged with one or more of these terms would be included in the topic \"music.\"</li>\n".
-      "<li>In addition, there are three special topics, named \"top stories\" \"advertisement\" and \"miscellaneous,\" which do not filter for taxonomy terms at all. \"Top stories\" are taken from stories that have been marked as \"sticky at top of lists\. ".
+      "<li>In addition, there are three special topics, named \"top stories\" \"advertisement\" and \"miscellaneous,\" which do not filter for taxonomy terms at all. \"Top stories\" are taken from stories that have been marked as \"sticky at top of lists\". ".
       "The \"miscellaneous\" topic appears at the bottom of each section. (If, however, you set its \"automatically-included headlines limit\" to zero, no miscellanous headlines will be displayed.)</li>\n") .
       t("<h3>Publications and headlines blocks</h3>".
       "<p>The epublish module creates a sidebar block for each section, as well as an \"epublish\" block that lists all publications. To make blocks visible on your pages, use !blocks.</p>",
@@ -708,6 +708,9 @@ function theme_epublish_topics($topics, $sid, $edition, $context='page') {
   $params = array();
   if ($edition->description) {
     $params['description'] = $edition->description;
+    $params['dateline'] = $edition->dateline;
+    $params['volume'] = $edition->volume;
+    $params['number'] = $edition->number;
   }
   $layout = epublish_assign_layout($sid, $edition, $context);
   $function = "theme_epublish_layout_$layout";
@@ -900,6 +903,7 @@ function epublish_headlines_page() {
       $included_terms = _epublish_topic_term_inclusions($topic->tid, $sid);
       $result2 = db_query("SELECT DISTINCT(n.nid) FROM {node} n INNER JOIN {term_node} tn ON n.nid=tn.nid WHERE ($exclusions) AND ($included_node_types) AND ($included_terms) AND n.promote = 1 AND n.status = 1 $timeframe ORDER by n.sticky DESC, n.created DESC LIMIT $topic->count");
     }
+	$topic->name = t($topic->name); //Added by LW
     $topic->nodes = array();
     while ($node = db_fetch_object($result2)) {
       $topic->nodes[] = $node->nid;
@@ -1773,6 +1777,7 @@ function epublish_section_topics($sid, $eid) {
       elseif ($topic->tid == 0) {
         $topic->name = variable_get('epublish_miscellaneous', t('miscellaneous'));
       }
+      $topic->name = t($topic->name); //Added by LW
       $last_tid = $node->tid;
     }
     $topic->nodes[] = $node->nid;
