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

SF.net SVN: ledger-smb: [1585] trunk/LedgerSMB/Template.pm



Revision: 1585
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1585&view=rev
Author:   tetragon
Date:     2007-09-13 10:52:32 -0700 (Thu, 13 Sep 2007)

Log Message:
-----------
Mentioning the locale option

Modified Paths:
--------------
    trunk/LedgerSMB/Template.pm

Modified: trunk/LedgerSMB/Template.pm
===================================================================
--- trunk/LedgerSMB/Template.pm	2007-09-13 17:45:30 UTC (rev 1584)
+++ trunk/LedgerSMB/Template.pm	2007-09-13 17:52:32 UTC (rev 1585)
@@ -11,7 +11,7 @@
 
 =over
 
-=item new(user => \%myconfig, template => $string, format => $string, [language => $string], [include_path => $path], [no_auto_output => $bool], [method => $string], [no_escape => $bool], [debug => $bool] );
+=item new(user => \%myconfig, template => $string, format => $string, [locale => $locale] [language => $string], [include_path => $path], [no_auto_output => $bool], [method => $string], [no_escape => $bool], [debug => $bool] );
 
 This command instantiates a new template:
 
@@ -25,6 +25,12 @@
 
 The format to be used.  Currently HTML, PS, PDF, TXT and CSV are supported.
 
+=item locale (optional)
+
+The locale object to use for regular gettext lookups.  Having this option adds
+the text function to the usable list for the templates.  Has no effect on the
+gettext function.
+
 =item language (optional)
 
 The language for template selection.


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.