--- loncom/interface/loncommon.pm 2003/09/17 16:50:58 1.119 +++ loncom/interface/loncommon.pm 2003/09/19 15:06:42 1.121 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.119 2003/09/17 16:50:58 www Exp $ +# $Id: loncommon.pm,v 1.121 2003/09/19 15:06:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1661,10 +1661,13 @@ sub preferred_languages { push (@genlanguages,(split(/(\-|\_)/,$_))[0]); } } - &Apache::lonnet::logthis('Lang: '.join(',',@genlanguages)); return @genlanguages; } +sub current_language { + return (&preferred_languages)[0]; +} + ############################################################### ## Student Answer Attempts ## ###############################################################