aboutsummaryrefslogtreecommitdiffstats
path: root/t/01-Locales.t
blob: 3c67ba1ba840d9fe67a63b4a7a9fda0b3ee0b8a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use 5.006;
use strict;
use warnings FATAL => 'all';
use Test::More;

BEGIN {
    use_ok( 'ManaTools::Shared::Locales' ) || print "Locales failed!\n";
}

ok( my $o = ManaTools::Shared::Locales->new({domain_name => 'manatools'}), 'create');
is( $o->N_("test"), 'test', 'N_' );
ok(my $cr = $o->N("Copyright (C) %s Mageia community", '2012-2017'), 'N');
diag "Copyright string is: < " . ($cr ? $cr : "none") . " >";

done_testing;