Add I18N wrapper module to use .po files

This commit is contained in:
Daniel Berteaud 2015-07-17 14:28:44 +02:00
parent cb712f43cd
commit 321ec4ee0c
1 changed files with 11 additions and 0 deletions

11
lib/Vroom/I18N.pm Normal file
View File

@ -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;