5 use RT::Test tests => 8;
10 ok (require RT::CurrentUser);
17 ok (my $cu = RT::CurrentUser->new('root'));
18 ok (my $lh = $cu->LanguageHandle('en-us'));
19 isnt ($lh, undef, '$lh is defined');
20 ok ($lh->isa('Locale::Maketext'));
21 is ($cu->loc('TEST_STRING'), "Concrete Mixer", "Localized TEST_STRING into English");
23 skip "French localization is not enabled", 2
24 unless grep $_ && $_ =~ /^(\*|fr)$/, RT->Config->Get('LexiconLanguages');
25 ok ($lh = $cu->LanguageHandle('fr'));
26 is ($cu->loc('before'), "avant", "Localized TEST_STRING into French");