version 1.27, 2003/12/10 00:32:56
|
version 1.29, 2003/12/22 23:34:49
|
Line 236 sub texthash {
|
Line 236 sub texthash {
|
|
|
sub get_language_handle { |
sub get_language_handle { |
my $r=shift; |
my $r=shift; |
$lh=Apache::localize->get_handle(&Apache::loncommon::preferred_languages); |
my $headers=$r->headers_in; |
|
$ENV{'HTTP_ACCEPT_LANGUAGE'}=$headers->{'Accept-language'}; |
|
my @languages=&Apache::loncommon::preferred_languages; |
|
$ENV{'HTTP_ACCEPT_LANGUAGE'}=''; |
|
&Apache::lonnet::logthis($r->uri.' '.join(' ',@languages)); |
|
$lh=Apache::localize->get_handle(@languages); |
if (&Apache::lonnet::mod_perl_version == 1) { |
if (&Apache::lonnet::mod_perl_version == 1) { |
$r->content_languages([¤t_language()]); |
$r->content_languages([¤t_language()]); |
} |
} |