[vhffs-dev] [svn] commit: r132 - in /trunk: Relases.notes vhffs-irc/modobot.pl vhffs-panel/auth.pl vhffs-panel/login.pl vhffs-panel/lost.pl vhffs-panel/lost_ack.pl vhffs-panel/panel.pl

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Author: soda
Date: Sat Jan  7 02:48:19 2006
New Revision: 132

Log:
fix int bugs
fix bot bug



Modified:
    trunk/Relases.notes
    trunk/vhffs-irc/modobot.pl
    trunk/vhffs-panel/auth.pl
    trunk/vhffs-panel/login.pl
    trunk/vhffs-panel/lost.pl
    trunk/vhffs-panel/lost_ack.pl
    trunk/vhffs-panel/panel.pl

Modified: trunk/Relases.notes
==============================================================================
--- trunk/Relases.notes (original)
+++ trunk/Relases.notes Sat Jan  7 02:48:19 2006
@@ -9,5 +9,6 @@
 					* vhffs-groupdel to delete a group from command line
 					* vhffs-moderate to moderate objects from command line
 - Add irc bot support to moderate request on vhffs
+- Full French intl
 
 

Modified: trunk/vhffs-irc/modobot.pl
==============================================================================
--- trunk/vhffs-irc/modobot.pl (original)
+++ trunk/vhffs-irc/modobot.pl Sat Jan  7 02:48:19 2006
@@ -509,7 +509,7 @@
         @oldmail = ();
         @oldmysql = ();
         @oldpostgres = ();
-	alarm 1;
+		list_moderation();
     }
 } # on_public
 

Modified: trunk/vhffs-panel/auth.pl
==============================================================================
--- trunk/vhffs-panel/auth.pl (original)
+++ trunk/vhffs-panel/auth.pl Sat Jan  7 02:48:19 2006
@@ -22,11 +22,11 @@
 my $template = new HTML::Template( filename => $templatedir."/main/auth.tmpl", associate => $cgi );
 
 $template->param( TITLE => gettext("VHFFS Login") );
-$template->param( TEXT_WELCOME => gettext("Welcome to ". Vhffs::Constants::VHFFS_RELEASE_NAME) );
+$template->param( TEXT_WELCOME => gettext("Welcome to ") . Vhffs::Constants::VHFFS_RELEASE_NAME );
 $template->param( TEXT_PLEASEIDENTIFY => gettext("Please enter your username and password") );
 $template->param( TEXT_USERNAME => gettext("Username") );
 $template->param( TEXT_PASSWORD => gettext("Password") );
-$template->param( TEXT_LOGIN => gettext("Login") );
+$template->param( TEXT_LOGIN => gettext("Access to panel") );
 $template->param( TEXT_LOSTPASSWORD => gettext("I've lost my password") );
 $template->param( TEXT_SUBSCRIBE => gettext("Subscribe") );
 

Modified: trunk/vhffs-panel/login.pl
==============================================================================
--- trunk/vhffs-panel/login.pl (original)
+++ trunk/vhffs-panel/login.pl Sat Jan  7 02:48:19 2006
@@ -26,9 +26,7 @@
 
 my $templatedir = $vhffs->get_config->get_templatedir;
 
-setlocale(LC_ALL, CGI->cookie("language") );
-bindtextdomain("vhffs", $vhffs->get_config->get_intldir);
-textdomain("vhffs");
+my $cookie = Vhffs::Panel::Main::cook_lang( $vhffs );
 
 # recuperation des donnees des champs du form de login
 my $current_cgi = new CGI;

Modified: trunk/vhffs-panel/lost.pl
==============================================================================
--- trunk/vhffs-panel/lost.pl (original)
+++ trunk/vhffs-panel/lost.pl Sat Jan  7 02:48:19 2006
@@ -16,9 +16,7 @@
 
 my $cgi = new CGI;
 
-setlocale(LC_ALL, CGI->cookie("language") );
-bindtextdomain("vhffs", $vhffs->get_config->get_intldir);
-textdomain("vhffs");
+my $cookie = Vhffs::Panel::Main::cook_lang( $vhffs );
 
 my $tmpl = new HTML::Template( filename => $templatedir."/main/lost.tmpl", associate => $cgi );
 

Modified: trunk/vhffs-panel/lost_ack.pl
==============================================================================
--- trunk/vhffs-panel/lost_ack.pl (original)
+++ trunk/vhffs-panel/lost_ack.pl Sat Jan  7 02:48:19 2006
@@ -12,17 +12,12 @@
 use Vhffs::Main;
 use Vhffs::Panel::Main;
 
-setlocale(LC_ALL, "en_US");
-bindtextdomain("panel", "/vhffs/vhffs-panel/intl");
-textdomain("panel");
 
 # Init the Vhffs Main System
 my $vhffs = init Vhffs::Main;
 my $templatedir = $vhffs->get_config->get_templatedir;
 
-setlocale(LC_ALL, CGI->cookie("language") );
-bindtextdomain("vhffs", $vhffs->get_config->get_intldir);
-textdomain("vhffs");
+my $cookie = Vhffs::Panel::Main::cook_lang( $vhffs );
 
 # recuperation des donnees des champs du form de login
 my $cgi = new CGI;

Modified: trunk/vhffs-panel/panel.pl
==============================================================================
--- trunk/vhffs-panel/panel.pl (original)
+++ trunk/vhffs-panel/panel.pl Sat Jan  7 02:48:19 2006
@@ -66,10 +66,11 @@
 	$template = new HTML::Template( filename => $templatedir."/misc/simplemsg.tmpl" );
 	$template->param( MESSAGE => $message );
 }
-elsif( ( defined $projectname ) && ( $projectname == "none" )  )  {
+elsif( ! defined( $projectname ) )
+{
 	$template = right_first Vhffs::Panel::Main($vhffs , $session , $user);
 }
-elsif( ! ( defined $projectname ) )
+elsif( $projectname =~ /^none$/ )
 {
 	$template = right_first Vhffs::Panel::Main($vhffs , $session , $user);
 }




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/