2 # set the user's language
4 # Copyright (c) 1998 - Dirk Koopman G1TLH
9 my ($self, $line) = @_;
10 my $call = $self->call;
13 # modify this next line if you add a language to Messages
14 my @lang = qw( en nl es de it cz pt fr );
16 # remove leading and trailing spaces
20 return (1, $self->msg('lange1', join(',', @lang))) if !$line;
22 return (1, $self->msg('lange1', join(',', @lang))) unless grep $_ eq $line, @lang;
25 $user = DXUser::get_current($call);
30 return (1, $self->msg('lang', $line));
32 return (1, $self->msg('lange2', $call));