[Templates] TT/Locale::Maketext problem
[prev]
[thread]
[next]
[Date index for 2004/06/08]
Hi,
I am using Template Toolkit in conjunction with Locale::Maketext by pa=
ssing
the lang variable to the templates in question. I am also using a class f=
or
representing exceptions which currently has two methods: msg and args. ms=
g
prints the message which is of the form "This is an error message [_1], [=
_2]".
args returns a list of arguments which substitute [_1] and [_2] when both
message and arguments are passed to the maketext method of a Locale::Make=
text
object. The exception object is also passed as error.=20
In the template something of the form
[% IF error %]
<h3 class=3D"errorwarning">
[% lang.maketext(error.msg, error.args) %]
</h3>
[% END %]
This works if there is only one argument involved. If there are two I get
ARRAY(0x8d84058) already forwarded to. The original error message was of =
the
form "[_1] is already forwarded to [_2]" ? Can anybody tell me what I am =
doing
wrong ?=20
Regards
Karthik Krishnamurthy
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
[Templates] TT/Locale::Maketext problem
Karthik Krishnamurthy 16:35 on 08 Jun 2004
|