From 6fb5709a5a30041cc0ba3870c0082b05c781482d Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sun, 2 Jan 2005 15:44:11 +0000 Subject: [PATCH] banana update git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-207 --- htdocs/banana/include/format.inc.php | 29 ++++++++++------------------- htdocs/banana/install.sh | 4 +--- 2 files changed, 11 insertions(+), 22 deletions(-) diff --git a/htdocs/banana/include/format.inc.php b/htdocs/banana/include/format.inc.php index dbc7aa1..d31f200 100644 --- a/htdocs/banana/include/format.inc.php +++ b/htdocs/banana/include/format.inc.php @@ -28,10 +28,9 @@ function url($string) */ function formatDisplayHeader($_header,$_text,$_spool) { - global $locale; switch ($_header) { case "date": - return locale_date($_text); + return formatDate($_text); case "followup": case "newsgroups": @@ -79,7 +78,7 @@ function formatDisplayHeader($_header,$_text,$_spool) { * @return STRING HTML output */ function displayshortcuts() { - global $news,$locale,$first,$spool,$group,$post,$id,$profile,$css; + global $news,$first,$spool,$group,$post,$id,$profile,$css; $sname = basename($_SERVER['SCRIPT_NAME']); echo "
"; @@ -101,8 +100,8 @@ function displayshortcuts() { echo '[Mettre à jour] '; } echo '[Profil] '; - echo '['.$locale['format']['grouplist'].'] '; - echo "[".$locale['format']['newpost']."] "; + echo '['._('Liste des forums').'] '; + echo "["._('Nouveau message')."] "; if (sizeof($spool->overview)>$news['max']) { for ($ndx=1; $ndx<=sizeof($spool->overview); $ndx += $news['max']) { if ($first==$ndx) { @@ -118,16 +117,11 @@ function displayshortcuts() { echo '[Mettre à jour] '; } echo '[Profil] '; - echo '['.$locale['format']['grouplist'] - .'] '; - echo "[" - .$locale['format']['group_b'].$group - .$locale['format']['group_a']."] "; - echo "[" - .$locale['format']['followup']."] "; + echo '['._('Liste des forums').'] '; + echo "[$group]"; + echo "["._('Répondre')."] "; if (checkcancel($post->headers)) { - echo "[" - .$locale['format']['cancel']."] "; + echo "["._('Annuler ce message')."] "; } break; case 'post.php' : @@ -135,11 +129,8 @@ function displayshortcuts() { echo '[Mettre à jour] '; } echo '[Profil] '; - echo '['.$locale['format']['grouplist'] - .'] '; - echo "[" - .$locale['format']['group_b'].$group - .$locale['format']['group_a']."] "; + echo '['._('Liste des forums').'] '; + echo "[$group] "; break; } echo '
'; diff --git a/htdocs/banana/install.sh b/htdocs/banana/install.sh index 152ee5a..4b5e5fb 100755 --- a/htdocs/banana/install.sh +++ b/htdocs/banana/install.sh @@ -1,8 +1,6 @@ #!/bin/bash -ln -sf ../../../banana/{img,locales,spool} . +ln -sf ../../../banana/{img,spool} . pushd include &> /dev/null ln -sf ../../../../banana/include/{encoding,groups,NetNNTP,post,spool,wrapper}.inc.php . popd &> /dev/null - -chmod a+w spool -- 2.1.4