Skip Menu |

This queue is for tickets about the Mojolicious-Plugin-I18N CPAN distribution.

Report information
The Basics
Id: 118762
Status: new
Priority: 0/
Queue: Mojolicious-Plugin-I18N

People
Owner: Nobody in particular
Requestors: julien [...] smaf.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Auto lookup failure handler follows _AUTO setting
Date: Mon, 14 Nov 2016 17:39:04 +0100
To: bug-Mojolicious-Plugin-I18N [...] rt.cpan.org
From: Julien Jehannet <julien [...] smaf.org>
<bug-Mojolicious-Plugin-I18N@rt.cpan.org>Hi, It appears that the failure handler in i18n plugin (l. 175) defaults to hard-coded behaviour without possibility to change the "fail" attribute or use the _AUTO feature¹ (which has no effect actually). $handle->fail_with(sub { $_[1] }); This fixup restores the Locale::Maketext handler which dies if no entry key is found in lexicon. Legacy code is not broken if default _AUTO snippet was kept. Also, I propose to display missing entries in debug mode. ¹ http://mojolicious.org/perldoc/Locale::Maketext#CONTROLLING-LOOKUP-FAILURE Patch is available here: https://github.com/jjehannet/mojolicious-plugin-i18n/commit/0e79df048f44082bef115b4ef8987be90d6ddbe7 Cheers,