Hi Again 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 Regards Z
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/Extr... Incidentally, there will soon be Dancer::Logger::LogReport and Dancer2::Logger::LogReport Andy
-----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
On Fri, 2015-02-20 at 11:01 +0000, Zahir Lalani wrote:
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.
Great. Yeah, I've been intending to do a blog for a while, in particular on logging, as it's taken me a while to perfect it.
"Andrew" == Andrew Beverley <andy@andybev.com> writes:
Andrew> On Fri, 2015-02-20 at 11:01 +0000, Zahir Lalani wrote:
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.
Andrew> Great. Yeah, I've been intending to do a blog for a while, in Andrew> particular on logging, as it's taken me a while to perfect it. Instead of a blog, how about some documentation instead?
On Fri, 2015-02-20 at 11:08 -0500, John Stoffel wrote:
"Andrew" == Andrew Beverley <andy@andybev.com> writes:
Andrew> On Fri, 2015-02-20 at 11:01 +0000, Zahir Lalani wrote:
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.
Andrew> Great. Yeah, I've been intending to do a blog for a while, in Andrew> particular on logging, as it's taken me a while to perfect it.
Instead of a blog, how about some documentation instead?
I'd prefer to do it as documentation, as it's more likely to be found by people. However, I was going to write more of a "real life experience" type article, pulling together a few things, that doesn't necessarily sit nicely in a module's pod. I'll see how I go though, and maybe I can post the content here once it's done, and people can suggest. Andy
participants (3)
-
Andrew Beverley -
John Stoffel -
Zahir Lalani