[Top][All Lists]
[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;
! }
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/inc class.soetemplate.inc.php,1.5,1.6,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: weather/doc/examples/sql create_tables.mysql,NONE,1.1 create_tables.pgsql,NONE,1.1 destroy_tables.mysql,NONE,1.1 destroy_tables.pgsql,NONE,1.1 lang.sql,NONE,1.1 states_data.sql,NONE,1.1 weather_metar_us.sql,NONE,1.1 weather_metar_world.sql,NONE,1.1 weather_region.sql,NONE,1.1
- Next by Date:
[Phpgroupware-cvs] CVS: etemplate/inc class.uietemplate.inc.php,1.10,1.11
- Previous by thread:
[Phpgroupware-cvs] CVS: weather/doc/examples/sql create_tables.mysql,NONE,1.1 create_tables.pgsql,NONE,1.1 destroy_tables.mysql,NONE,1.1 destroy_tables.pgsql,NONE,1.1 lang.sql,NONE,1.1 states_data.sql,NONE,1.1 weather_metar_us.sql,NONE,1.1 weather_metar_world.sql,NONE,1.1 weather_region.sql,NONE,1.1
- Next by thread:
[Phpgroupware-cvs] CVS: etemplate/inc class.uietemplate.inc.php,1.10,1.11
- Index(es):