[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.translation_sql.inc.php,1.16
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.translation_sql.inc.php,1.16,1.17 |
Date: |
Thu, 01 May 2003 21:06:36 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv3013
Modified Files:
class.translation_sql.inc.php
Log Message:
fix for phrase which end (after truncating to 230 chars) in a space (which has
been striped by the db)
Index: class.translation_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.translation_sql.inc.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** class.translation_sql.inc.php 2 Apr 2003 17:46:07 -0000 1.16
--- class.translation_sql.inc.php 2 May 2003 01:06:33 -0000 1.17
***************
*** 101,106 ****
@abstract Return the translated string from $this->lang, if it
exists. If no translation exists, return the same string with an asterisk.
@discussion This should be called from the global function
lang(), not directly.
! @syntax translate('translate x',array('replacement')); OR
translate('translate this');
! @example translate('translate this x', array('lang entry'));
returns 'Translate this Lang Entry' or 'translate this lang x*'
*/
function translate($key,$vars=False)
--- 101,106 ----
@abstract Return the translated string from $this->lang, if it
exists. If no translation exists, return the same string with an asterisk.
@discussion This should be called from the global function
lang(), not directly.
! @syntax translate('translate %1',array('replacement')); OR
translate('translate this');
! @example translate('translate this %1', array('lang entry'));
returns 'Translate this Lang Entry' or 'translate this lang %1*'
*/
function translate($key,$vars=False)
***************
*** 111,115 ****
}
$ret = $key;
! $_key =
substr(strtolower($key),0,MAX_MESSAGE_ID_LENGTH);
if(address@hidden($this->lang[$_key]) && !$this->loaded)
--- 111,115 ----
}
$ret = $key;
! $_key =
trim(substr(strtolower($key),0,MAX_MESSAGE_ID_LENGTH));
if(address@hidden($this->lang[$_key]) && !$this->loaded)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.translation_sql.inc.php,1.16,1.17,
Ralf Becker <address@hidden> <=