--- loncom/localize/lonlocal.pm 2003/09/20 13:21:45 1.6 +++ loncom/localize/lonlocal.pm 2003/09/20 17:04:02 1.8 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Localization routines # -# $Id: lonlocal.pm,v 1.6 2003/09/20 13:21:45 www Exp $ +# $Id: lonlocal.pm,v 1.8 2003/09/20 17:04:02 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -73,6 +73,13 @@ sub current_language { return $lh->language_tag(); } +# ============================================================== What encoding? + +sub current_encoding { + my $enc=$lh->maketext('char_encoding'); + return ($enc eq 'char_encoding'?'':$enc); +} + # ============================================================== Translate hash sub texthash { @@ -109,7 +116,11 @@ sub endreroutetrans { sub get_language_handle { $lh=Apache::localize->get_handle(&Apache::loncommon::preferred_languages); -# &Apache::lonnet::logthis($lh->encoding().' - '.$lh->language_tag()); + $r->content_languages(["¤t_language()"]); + my $enc=¤t_encoding(); + if ($enc) { + + } } 1;