phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.translation_sql.inc.php,1.12,


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.translation_sql.inc.php,1.12,1.13
Date: Tue, 19 Feb 2002 23:57:52 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv26484

Modified Files:
        class.translation_sql.inc.php 
Log Message:
adjust inline docs

Index: class.translation_sql.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.translation_sql.inc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** class.translation_sql.inc.php       20 Feb 2002 04:44:19 -0000      1.12
--- class.translation_sql.inc.php       20 Feb 2002 04:57:49 -0000      1.13
***************
*** 35,40 ****
                /*!
                 @function translation
!                @abstract class constructor - loads up translations into 
$this->lang based on currentapp and userlang preference, if present.
!                @discussion This also loads translations with appname='common' 
or appname='all'.  User lang defaults to 'en'.
                */
                function translation()
--- 35,40 ----
                /*!
                 @function translation
!                @abstract class constructor - sets class vars for currentapp 
and user lang preference
!                @discussion User lang defaults to 'en'.
                */
                function translation()
***************
*** 49,52 ****
--- 49,57 ----
                }
  
+               /*!
+                @function load_langs
+                @abstract loads up translations into $this->lang based on 
currentapp and userlang preference.
+                @discussion This also loads translations with appname='common' 
or appname='all'.
+               */
                function load_langs()
                {
***************
*** 83,87 ****
                 @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 this x', $somevar);
                */
                function translate($key,$vars=False) 
--- 88,93 ----
                 @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) 




reply via email to

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