From 321ec4ee0c0de5901562e6bd808f8954b6f750e0 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 17 Jul 2015 14:28:44 +0200 Subject: [PATCH] Add I18N wrapper module to use .po files --- lib/Vroom/I18N.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/Vroom/I18N.pm diff --git a/lib/Vroom/I18N.pm b/lib/Vroom/I18N.pm new file mode 100644 index 0000000..7376797 --- /dev/null +++ b/lib/Vroom/I18N.pm @@ -0,0 +1,11 @@ +package Vroom::I18N; + +use base 'Locale::Maketext'; +use File::Basename qw/dirname/; +use Locale::Maketext::Lexicon { + _auto => 1, + _decode => 1, + '*' => [Gettext => dirname(__FILE__) . '/I18N/*.po'] +}; + +1;