I am using Perl template toolkit to build a English/French Guestbook webpage, right now I am having trouble display country and province name in french, it always display english. I do have translated country and province name in my DB. here is what I did:
$c->stash->{ entry } = $c->model( 'GuestBook::Entry')->create( $c->form );
In the template file:
<p><strong>[% loc('Country') %] :</strong> [%entry.country.name ) %] </p>
Can any one help me on this? many thanks
$c->stash->{ entry } = $c->model( 'GuestBook::Entry')->create( $c->form );
In the template file:
<p><strong>[% loc('Country') %] :</strong> [%entry.country.name ) %] </p>
Can any one help me on this? many thanks