--- loncom/xml/lonxml.pm 2009/10/04 03:40:13 1.494.4.2
+++ loncom/xml/lonxml.pm 2010/01/28 18:46:47 1.494.4.3
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.494.4.2 2009/10/04 03:40:13 raeburn Exp $
+# $Id: lonxml.pm,v 1.494.4.3 2010/01/28 18:46:47 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1546,20 +1546,30 @@ sub renderingoptions {
= &Apache::loncommon::plainlanguagedescription($_);
}
}
- return
- ''.
- &mt('Language:').' '.
- &Apache::loncommon::select_form($env{'form.languages'},'languages',
- %langchoices).'
-
- '.
+ my $output;
+ unless ($env{'form.forceedit'}) {
+ $output .=
+ ''.
+ &mt('Language:').' '.
+ &Apache::loncommon::select_form(
+ $env{'form.languages'},
+ 'languages',
+ &Apache::lonlocal::texthash(%langchoices)).
+ '';
+ }
+ $output .=
+ ' '.
&mt('Math Rendering:').' '.
- &Apache::loncommon::select_form($env{'form.texengine'},'texengine',
- ('' => '',
- 'tth' => 'tth (TeX to HTML)',
- 'jsMath' => 'jsMath',
- 'mimetex' => 'mimetex (Convert to Images)')).'
- ';
+ &Apache::loncommon::select_form(
+ $env{'form.texengine'},
+ 'texengine',
+ &Apache::lonlocal::texthash
+ ('' => '',
+ 'tth' => 'tth (TeX to HTML)',
+ 'jsMath' => 'jsMath',
+ 'mimetex' => 'mimetex (Convert to Images)')).
+ '';
+ return $output;
}
sub inserteditinfo {