- header localization in article.php
authorx99bachelart <x99bachelart>
Sat, 27 Sep 2003 11:33:04 +0000 (11:33 +0000)
committerx99bachelart <x99bachelart>
Sat, 27 Sep 2003 11:33:04 +0000 (11:33 +0000)
- bugfix (config.inc.php *needs* msgid in $news['head'])
- css classes configuration

article.php
install.d/config.inc.php
locales/fr.inc.php

index 3359f52..21466c1 100644 (file)
@@ -84,9 +84,9 @@ summary="<?php echo $locale['article']['summary'];?>">
     </th>
   </tr>
 <?php
-foreach ($news['headdisp'] as $nick => $real) {
+foreach ($news['headdisp'] as $nick) {
   if (isset($post->headers->$nick)) 
-    echo "<tr><td class=\"{$css['bicoltitre']}\">$real</td>"
+    echo "<tr><td class=\"{$css['bicoltitre']}\">{$locale['headers'][$nick]}</td>"
     ."<td>".formatdisplayheader($nick,$post->headers->$nick,$spool)
     ."</td></tr>\n";
 }
index 0288edb..69f9bc4 100644 (file)
@@ -24,11 +24,24 @@ $news['head'] = array(
   'Newsgroups' => 'newsgroups',
   'Followup-To' => 'followup',
   'Date' => 'date',
+  'Message-ID' => 'msgid',
   'Organization' => 'organization',
   'References' => 'references',
   'X-Face' => 'xface',
   );
 
+// headers in article.php
+$news['headdisp']=array(
+  'from',
+  'subject',
+  'newsgroups',
+  'followup',
+  'date',
+  'organization',
+  'references',
+  'xface'
+);
+
 // overview configuration in article.php
 $news['threadtop'] = 5;
 $news['threadbottom'] = 5;
@@ -46,4 +59,27 @@ $news['customhdr'] = "Content-Type: text/plain; charset=iso-8859-15\n"
   ."HTTP-Posting-Host: ".gethostbyname($_SERVER['REMOTE_ADDR'])."\n"
   ."User-Agent: Banana 0.7beta\n";
 
+$css = array(
+ 'bananashortcuts' => 'bananashortcuts',
+ 'title' => 'title',
+ 'bicol' => 'bicol',
+ 'bicoltitre' => 'bicoltitre',
+ 'bicolvpadd' => 'bicolvpadd',
+ 'pair' => 'pair',
+ 'impair' => 'impair',
+ 'bouton' => 'bouton',
+ 'error' => 'error',
+ 'normal' => 'normal',
+ 'total' => 'total',
+ 'unread' => 'unread',
+ 'group' => 'group',
+ 'description' => 'description',
+ 'date' => 'date',
+ 'subject' => 'subject',
+ 'from' => 'from',
+ 'author' => 'author',
+ 'nopadd' => 'nopadd',
+ 'overview' => 'overview',
+ 'tree' => 'tree'
+);
 ?>
index ad0a956..78b8002 100644 (file)
@@ -106,4 +106,15 @@ $locale['disconnect'] = array(
   'back' => 'Retour au <a href="index.php">profil</a>'
 );
 
+$locale['headers'] = array(
+  'from' => 'De',
+  'subject' => 'Sujet',
+  'newsgroups' => 'Forums',
+  'followup' => 'Suivi-A',
+  'date' => 'Date',
+  'organization' => 'Organisation',
+  'references' => 'Références',
+  'xface' => 'Image'
+);
+
 ?>