From 23148be4c4b7c181b46ac0b801f3bff5dc441fb9 Mon Sep 17 00:00:00 2001 From: x99bachelart Date: Sat, 27 Sep 2003 11:33:04 +0000 Subject: [PATCH] - header localization in article.php - bugfix (config.inc.php *needs* msgid in $news['head']) - css classes configuration --- article.php | 4 ++-- install.d/config.inc.php | 36 ++++++++++++++++++++++++++++++++++++ locales/fr.inc.php | 11 +++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/article.php b/article.php index 3359f52..21466c1 100644 --- a/article.php +++ b/article.php @@ -84,9 +84,9 @@ summary=""> $real) { +foreach ($news['headdisp'] as $nick) { if (isset($post->headers->$nick)) - echo "$real" + echo "{$locale['headers'][$nick]}" ."".formatdisplayheader($nick,$post->headers->$nick,$spool) ."\n"; } diff --git a/install.d/config.inc.php b/install.d/config.inc.php index 0288edb..69f9bc4 100644 --- a/install.d/config.inc.php +++ b/install.d/config.inc.php @@ -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' +); ?> diff --git a/locales/fr.inc.php b/locales/fr.inc.php index ad0a956..78b8002 100644 --- a/locales/fr.inc.php +++ b/locales/fr.inc.php @@ -106,4 +106,15 @@ $locale['disconnect'] = array( 'back' => 'Retour au profil' ); +$locale['headers'] = array( + 'from' => 'De', + 'subject' => 'Sujet', + 'newsgroups' => 'Forums', + 'followup' => 'Suivi-A', + 'date' => 'Date', + 'organization' => 'Organisation', + 'references' => 'Références', + 'xface' => 'Image' +); + ?> -- 2.1.4