--- loncom/interface/lonpreferences.pm 2013/06/10 20:28:12 1.196.4.11 +++ loncom/interface/lonpreferences.pm 2012/08/16 17:02:55 1.198 @@ -1,7 +1,7 @@ # The LearningOnline Network # Preferences # -# $Id: lonpreferences.pm,v 1.196.4.11 2013/06/10 20:28:12 raeburn Exp $ +# $Id: lonpreferences.pm,v 1.198 2012/08/16 17:02:55 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -152,16 +152,32 @@ sub languagechanger { text => 'Change Language'}); $r->print(Apache::loncommon::start_page('Content Display Settings')); $r->print(Apache::lonhtmlcommon::breadcrumbs('Change Language')); - my %userenv = &Apache::lonnet::get('environment',['languages']); + my $user = $env{'user.name'}; + my $domain = $env{'user.domain'}; + my %userenv = &Apache::lonnet::get + ('environment',['languages']); my $language=$userenv{'languages'}; - $r->print( - '
' - ); + my $pref=&mt('Preferred language'); + my %langchoices=('' => 'No language preference'); + foreach (&Apache::loncommon::languageids()) { + if (&Apache::loncommon::supportedlanguagecode($_)) { + $langchoices{&Apache::loncommon::supportedlanguagecode($_)} + = &Apache::loncommon::plainlanguagedescription($_); + } + } + %langchoices = &Apache::lonlocal::texthash(%langchoices); + my $selectionbox= + &Apache::loncommon::select_form( + $language, + 'language', + \%langchoices); + $r->print(<'.&mt('The table below can be used to [_1]freeze[_2] '.$lc_role.'s in the Hotlist.','','
').'
'.
-&mt('Those '.$lc_role.'s marked frozen will not be removed from the list, even if not recently used.').'
+&mt('Those marked frozen will not be removed from the list, even if not recently used.').'