--- loncom/localize/lonlocal.pm 2003/09/17 01:45:14 1.4 +++ loncom/localize/lonlocal.pm 2003/09/20 14:16:09 1.7 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Localization routines # -# $Id: lonlocal.pm,v 1.4 2003/09/17 01:45:14 www Exp $ +# $Id: lonlocal.pm,v 1.7 2003/09/20 14:16:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -67,6 +67,12 @@ sub mt (@) { } } +# ============================================================== What language? + +sub current_language { + return $lh->language_tag(); +} + # ============================================================== Translate hash sub texthash { @@ -76,13 +82,19 @@ sub texthash { } return %hash; } +# ======================================================== Re-route translation + +sub clearreroutetrans { + &reroutetrans(); + $reroute=''; +} # ======================================================== Re-route translation sub reroutetrans { $ENV{'transreroute'}=1; - $reroute=''; } + # ==================================================== End re-route translation sub endreroutetrans { $ENV{'transreroute'}=0;