On 2015-11-17 08:22:45, SREZIC wrote:
Show quoted text> Invalid locale code or name: fr-ca
The attached patch fixes it, by using the proper locale name "fr-CA" as documented in DateTime::Locale::Catalog.
From e7c40c68fdbfea3148352453ff0c916c55208621 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?D=2E=20Ilmari=20Manns=C3=A5ker?=
<ilmari.mannsaker@net-a-porter.com>
Date: Tue, 1 Dec 2015 10:50:26 +0000
Subject: [PATCH] Use a proper locale name for the test
DateTime::Locale 1.00 uses the latest version of CLDR and does not
include locales not in that data, breaking this test.
---
t/70_localization.t | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/70_localization.t b/t/70_localization.t
index 3568ef8..038eb1d 100644
--- a/t/70_localization.t
+++ b/t/70_localization.t
@@ -5,7 +5,7 @@
use_ok( 'Date::Formatter' );
-my $date = Date::Formatter->now( locale => 'fr_ca' );
+my $date = Date::Formatter->now( locale => 'fr-CA' );
my $day_of_week = $date->getDayOfWeek;
like( $day_of_week, qr/dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi|dimanche/ );
--
2.6.2