aboutsummaryrefslogtreecommitdiffstats
path: root/t/01-Locales.t
blob: 550e776d3a9cd2c0b89209894439dd24f203dc89 (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-2016'), 'N');
diag "Copyright string is: < " . ($cr ? $cr : "none") . " >";

done_testing;