phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: etemplate/inc class.soetemplate.inc.php,1.5,1.6


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.soetemplate.inc.php,1.5,1.6
Date: Mon, 10 Jun 2002 17:30:16 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv28147

Modified Files:
        class.soetemplate.inc.php 
Log Message:
changed writeLangFile to cope with multiple messages in one field (separated by 
'|')

Index: class.soetemplate.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.soetemplate.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** class.soetemplate.inc.php   9 Jun 2002 21:31:01 -0000       1.5
--- class.soetemplate.inc.php   10 Jun 2002 21:30:09 -0000      1.6
***************
*** 426,429 ****
--- 426,430 ----
                @function getToTranslate
                @abstract extracts all texts: labels and helptexts from an 
eTemplate-object
+               @note some extensions use a '|' to squezze multiple texts in a 
label or help field
                @returns array with messages as key AND value
                */
***************
*** 437,447 ****
                                while (list($col,$cell) = each($cols))
                                {
!                                       if (strlen($cell['label']) > 1)
                                        {
!                                               
$to_trans[strtolower($cell['label'])] = $cell['label'];
!                                       }
!                                       if (strlen($cell['help']) > 1)
!                                       {
!                                               
$to_trans[strtolower($cell['help'])] = $cell['help'];
                                        }
                                }
--- 438,448 ----
                                while (list($col,$cell) = each($cols))
                                {
!                                       $all = 
explode('|',$cell['help'].($cell['type'] != 'image'?'|'.$cell['label']:''));
!                                       while (list(,$str) = each($all))
                                        {
!                                               if (strlen($str) > 1)
!                                               {
!                                                       
$to_trans[strtolower($str)] = $str;
!                                               }
                                        }
                                }




reply via email to

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