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)



MIME-Version: 1.0
X-Spam-Status: No, score=-1.899 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="94eb2c1b2d7e84ce760541457ba8"
Message-ID: <CADweS+bPsKbU-Jh0J=4YBkg_wTfmEHiBcvQrbegDKSWmJ=z6tg [...] mail.gmail.com>
X-Received: by 10.176.84.8 with SMTP id n8mr7531473uaa.29.1479141564396; Mon, 14 Nov 2016 08:39:24 -0800 (PST)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.899
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 35CA924031D for <cpan-bug+Mojolicious-Plugin-I18N [...] hipster.bestpractical.com>; Mon, 14 Nov 2016 11:39:43 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q2+2O5jIQTCN for <cpan-bug+Mojolicious-Plugin-I18N [...] hipster.bestpractical.com>; Mon, 14 Nov 2016 11:39:41 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6918E24007D for <bug-Mojolicious-Plugin-I18N [...] rt.cpan.org>; Mon, 14 Nov 2016 11:39:40 -0500 (EST)
Received: (qmail 30562 invoked by alias); 14 Nov 2016 16:39:40 -0000
Received: from mail-ua0-f182.google.com (HELO mail-ua0-f182.google.com) (209.85.217.182) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 14 Nov 2016 08:39:35 -0800
Received: by mail-ua0-f182.google.com with SMTP id b35so66722155uaa.3 for <bug-Mojolicious-Plugin-I18N [...] rt.cpan.org>; Mon, 14 Nov 2016 08:39:28 -0800 (PST)
Received: by 10.103.123.200 with HTTP; Mon, 14 Nov 2016 08:39:04 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] smaf-org.20150623.gappssmtp.com
Delivered-To: cpan-bug+Mojolicious-Plugin-I18N [...] hipster.bestpractical.com
Subject: Auto lookup failure handler follows _AUTO setting
Return-Path: <julien [...] smaf.org>
X-RT-Mail-Extension: mojolicious-plugin-i18n
X-Original-To: cpan-bug+Mojolicious-Plugin-I18N [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smaf-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=g82OF0pIGRS9g/czcZ5cdBzOrr2lSTwSN/sV/kSTSZw=; b=ZiW2SfZWY7DO8TWrz9cXK+/RJjKuB9YhHJpVvIwdqPIEgTDAgiSKlz9QsRyuh9Mlwx 8HkVxjEQEqKTgpovdZ4jXtBc52OOBz1ovUS/oOOG/lmtg0kny26VFQ101K7Z2oLmZMXL BYp16iz1bpY1pRtIlgEfzn1UF7Rlhv2wXZgPUyPCOqUCfSN1QVzdhqElh4ARVZUwc+Z8 nQOSnZiuoAejVQEZdIiyyfFWRdK5ngTtLYEFOsxRZ0rY4ukv17eyUN0FqYOx4gJ3/u6y fzH5ffmrCpU5GDtfcaaBsCKUtB6f7JqxxpA6OaLeAJXkBGcy6PkFfNsU/OdCbFSKQpJ5 mehg==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=g82OF0pIGRS9g/czcZ5cdBzOrr2lSTwSN/sV/kSTSZw=; b=IJG7vUbJMOt3/suxXiggtPGc3aqzD6JqOFtOHomPvzF/ZKYUyFY93mffphdJbSIBMW Ja8pffB4i6bR0boCy8GUGrEnikB7XLEkd0VUpuq3oO8mUJnUM914YGTI4k2RmpzVQzPw UZOdCTPzWTcMUp/LWzT+iNMgtH0VJmpuvfoA6cM3jtQCr6TPW3XGHy6oGNeWL/SBkaOo RQ3KqkD3SttNHhtD0hwqQG0mvwdlgMuxtzH86IudT5+HOyRXQKzcQhXU0v0wgW5lvSOI X9aZBt/aGm79AUZBffttjwUEjlKKVKNSj7La6wsApkicv6Tusjfs7sj4OXRil0l6tWvk lIvw==
Date: Mon, 14 Nov 2016 17:39:04 +0100
X-Spam-Level:
To: bug-Mojolicious-Plugin-I18N [...] rt.cpan.org
From: Julien Jehannet <julien [...] smaf.org>
X-GM-Message-State: ABUngvdE9CzVFN3noFhHk1oxfWUSdgpfLz71BXjkpXe7MxEqregFRwJ6DaFKU0bMAr1R6q18W+deQ7LQtkgxUg==
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 724
Download (untitled) / with headers
text/plain 724b
<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,
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1186


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.