#!/usr/local/bin/perl
# change_lang.cgi
# Change language setting

require './webmin-lib.pl';
&ReadParse();
&lock_file("$config_directory/config");
$gconfig{'lang'} = $in{'lang'};
$gconfig{'acceptlang'} = $in{'acceptlang'};
&write_file("$config_directory/config", \%gconfig);
&unlock_file("$config_directory/config");
&webmin_log("lang", undef, undef, \%in);
&redirect("");

