phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: preferences/inc class.uiaclprefs.inc.php,1.1,1.1


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] CVS: preferences/inc class.uiaclprefs.inc.php,1.1,1.1.2.1
Date: Mon, 28 Jan 2002 13:32:54 -0500

Update of /cvsroot/phpgroupware/preferences/inc
In directory subversions:/tmp/cvs-serv32666/inc

Modified Files:
      Tag: Version-0_9_14-branch
        class.uiaclprefs.inc.php 
Log Message:
Made the label tags dynamicly read and passed to lang() ... kind of like how 
global config works.


Index: class.uiaclprefs.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/preferences/inc/class.uiaclprefs.inc.php,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -C2 -r1.1 -r1.1.2.1
*** class.uiaclprefs.inc.php    28 Dec 2001 00:59:30 -0000      1.1
--- class.uiaclprefs.inc.php    28 Jan 2002 18:32:51 -0000      1.1.2.1
***************
*** 238,252 ****
                        
$this->template->set_var('common_hidden_vars',$common_hidden_vars);
  
!                       $var = Array(
!                               'read_lang'   => lang('Read'),
!                               'add_lang'    => lang('Add'),
!                               'edit_lang'   => lang('Edit'),
!                               'delete_lang' => lang('Delete')
!                       );
  
!                       $this->template->set_var($var);
!                       
$this->template->set_var('private_lang',lang('Private'));
  
!                       if(intval($s_groups) <> count($groups))
                        {
                                
$this->template->set_var('string',lang('Groups'));
--- 238,254 ----
                        
$this->template->set_var('common_hidden_vars',$common_hidden_vars);
  
!                       $vars = $this->template->get_undefined('row_colspan');
!                       while (list(,$var) = each($vars))
!                       {
!                               if (ereg('lang_',$var))
!                               {
!                                       $value = ereg_replace('lang_','',$var);
!                                       $value = ereg_replace('_',' ',$value);
  
!                                       
$this->template->set_var($var,lang($value));
!                               }
!                       }
  
!                       if (intval($s_groups) <> count($groups))
                        {
                                
$this->template->set_var('string',lang('Groups'));




reply via email to

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