Hi,
I am using Template Toolkit in conjunction with Locale::Maketext by passing
the lang variable to the templates in question. I am also using a class for
representing exceptions which currently has two methods: msg and args. msg
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::Maketext
object. The exception object is also passed as error.
In the template something of the form
[% IF error %]
<h3 class="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 ?
Regards
Karthik Krishnamurthy
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates