phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: preferences preferences.php,1.34,1.35


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: preferences preferences.php,1.34,1.35
Date: Mon, 19 May 2003 20:03:30 -0400

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

Modified Files:
        preferences.php 
Log Message:
fix that substitutions in defaults, show for the user-prefs, get translated too


Index: preferences.php
===================================================================
RCS file: /cvsroot/phpgroupware/preferences/preferences.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** preferences.php     19 May 2003 23:00:59 -0000      1.34
--- preferences.php     20 May 2003 00:03:27 -0000      1.35
***************
*** 114,117 ****
--- 114,122 ----
                {
                        $def_text = 
!$GLOBALS['phpgw']->preferences->user[$_appname][$name] ? 
$GLOBALS['phpgw']->preferences->data[$_appname][$name] : 
$GLOBALS['phpgw']->preferences->default[$_appname][$name];
+ 
+                       if (isset($notifys[$name]))     // translate the 
substitution names
+                       {
+                               $def_text = 
$GLOBALS['phpgw']->preferences->lang_notify($def_text,$notifys[$name]);
+                       }
                        $def_text = $def_text != '' ? ' <i><font 
size="-1">'.lang('default').':&nbsp;'.$def_text.'</font></i>' : '';
                }
***************
*** 262,266 ****
        function 
create_text_area($label,$name,$rows,$cols,$help='',$default='',$run_lang=True)
        {
!               global $t,$prefs;
  
                $_appname = check_app();
--- 267,271 ----
        function 
create_text_area($label,$name,$rows,$cols,$help='',$default='',$run_lang=True)
        {
!               global $t,$prefs,$notifys;
  
                $_appname = check_app();
***************
*** 278,281 ****
--- 283,291 ----
                {
                        $def_text = 
!$GLOBALS['phpgw']->preferences->user[$_appname][$name] ? 
$GLOBALS['phpgw']->preferences->data[$_appname][$name] : 
$GLOBALS['phpgw']->preferences->default[$_appname][$name];
+ 
+                       if (isset($notifys[$name]))     // translate the 
substitution names
+                       {
+                               $def_text = 
$GLOBALS['phpgw']->preferences->lang_notify($def_text,$notifys[$name]);
+                       }
                        $def_text = $def_text != '' ? '<br><i><font 
size="-1"><b>'.lang('default').'</b>:<br>'.nl2br($def_text).'</font></i>' : '';
                }





reply via email to

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