-----Original Message----- From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Andrew Beverley Sent: 20 February 2015 10:54 To: Perl Dancer users mailing list Subject: Re: [dancer-users] Localisation
On Fri, 2015-02-20 at 10:31 +0000, Zahir Lalani wrote:
What is the preferred method for localisation of templates using Dancer2. Everything seems to point to locale.maketext but I am unclear as to whether this is the standard approach in Dancer2 or not
I'm not doing any at the moment, but when I do, my plan is to use Log::Report for all translations. I'm currently using that module for all my error handling and general messages, so I'll be able to integrate everything nicely.
For TT:
https://metacpan.org/pod/distribution/Log-Report- Lexicon/lib/Log/Report/Extract/Template.pod
Incidentally, there will soon be Dancer::Logger::LogReport and Dancer2::Logger::LogReport
Andy
Nice. If you search the web for dancer localisation, this never seems to come up - all you get are references to locale.maketext. I really like dancer as a framework, but there does seem to be a lack of info on such topics. As I learn, I may well setup an experiences blog to help others. Z