8 my $class = ref($lh) || $lh;
10 \%{ $class . '::Lexicon' };
14 my($lh, $key, @rest) = @_;
16 my $lang = $lh->language_tag;
17 $lang =~ s/-(\w*)/_\U$1/;
19 my $lex = $lh->lexicon;
20 unless ( exists $lex->{$key} ) {
21 $lex->{$key} = FS::Msgcat::_gettext( $key, $lang );
24 my $res = eval { $lh->SUPER::maketext($key, @rest) };
26 my $errmsg = "MT error for '$key'";