2 # DX cluster message strings for output
4 # Each message string will substitute $_[x] positionally. What this means is
5 # that if you don't like the order in which fields in each message is output then
6 # you can change it. Also you can include various globally accessible variables
7 # in the string if you want.
9 # Largely because I don't particularly want to have to change all these messages
10 # in every upgrade I shall attempt to add new field to the END of the list :-)
12 # Copyright (c) 1998 - Dirk Koopman G1TLH
24 my $localfn = "$main::root/local/Messages";
25 my $fn = "$main::root/perl/Messages";
27 use vars qw($VERSION $BRANCH);
28 $VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ );
29 $BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0));
30 $main::build += $VERSION;
31 $main::branch += $BRANCH;
39 my $ref = $msgs{$lang};
40 my $s = $ref->{$m} if $ref;
41 if (!$s && $lang ne 'en') {
45 return "unknown message '$m' in lang '$lang'" if !defined $s;
46 my $ans = eval qq{ "$s" };
56 return ($@) if $@ && ref $ref;
61 return ($@) if $@ && ref $ref;