phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: chora addsite.php,1.6,1.7 editsite.php,1.6,1.7


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: chora addsite.php,1.6,1.7 editsite.php,1.6,1.7
Date: Fri, 28 Feb 2003 10:28:29 -0500

Update of /cvsroot/phpgroupware/chora
In directory subversions:/tmp/cvs-serv26834

Modified Files:
        addsite.php editsite.php 
Log Message:
added some more phrases from the source and made one translatable

Index: addsite.php
===================================================================
RCS file: /cvsroot/phpgroupware/chora/addsite.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** addsite.php 28 Apr 2002 19:47:55 -0000      1.6
--- addsite.php 28 Feb 2003 15:28:26 -0000      1.7
***************
*** 71,75 ****
  
        if ($errorcount) { 
$t->set_var('message',$GLOBALS['phpgw']->common->error_list($error)); }
!       if (($submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',lang('Repository x has been added !', $site_name)); }
        if ((! $submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',''); }
  
--- 71,75 ----
  
        if ($errorcount) { 
$t->set_var('message',$GLOBALS['phpgw']->common->error_list($error)); }
!       if (($submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',lang('Repository %1 has been added !', $site_name)); }
        if ((! $submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',''); }
  

Index: editsite.php
===================================================================
RCS file: /cvsroot/phpgroupware/chora/editsite.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** editsite.php        28 Apr 2002 19:47:55 -0000      1.6
--- editsite.php        28 Feb 2003 15:28:26 -0000      1.7
***************
*** 45,52 ****
        {
                $errorcount = 0;
!               if(!$site_name)
!               {
!                       $error[$errorcount++] = lang('Please enter a name for 
that site!');
!               }
  
                $GLOBALS['phpgw']->db->query("SELECT count(*) from 
phpgw_chora_sites WHERE name='$site_name' AND id !='$site_id'");
--- 45,49 ----
        {
                $errorcount = 0;
!               if (!$site_name) { $error[$errorcount++] = lang('Please enter a 
name for that site !'); }
  
                $GLOBALS['phpgw']->db->query("SELECT count(*) from 
phpgw_chora_sites WHERE name='$site_name' AND id !='$site_id'");
***************
*** 88,92 ****
  
        if ($errorcount) { 
$t->set_var('message',$GLOBALS['phpgw']->common->error_list($error)); }
!       if (($submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',lang("Repository $site_name has been updated !")); }
        if ((! $submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',''); }
  
--- 85,89 ----
  
        if ($errorcount) { 
$t->set_var('message',$GLOBALS['phpgw']->common->error_list($error)); }
!       if (($submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',lang('Repository %1 has been updated !',$site_name)); }
        if ((! $submit) && (! $error) && (! $errorcount)) { 
$t->set_var('message',''); }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]