version 1.215, 2015/01/19 15:36:01
|
version 1.216, 2015/02/23 12:36:27
|
Line 1892 sub author_space_settings {
|
Line 1892 sub author_space_settings {
|
if ($env{'environment.nocodemirror'}) { |
if ($env{'environment.nocodemirror'}) { |
$constchecked=' checked="checked"'; |
$constchecked=' checked="checked"'; |
} |
} |
my $text=&mt('By default, Codemirror is activated for authors.'); |
my $text=&mt('By default, CodeMirror an editor with advanced functionality for editing code is activated for authors.'); |
my $cmoff=&mt('Deactivate Codemirror. This can improve the performance on slow computers.'); |
my $cmoff=&mt('Deactivate CodeMirror. This can improve performance on slow computers and accessibility.'); |
my $change=&mt('Save'); |
my $change=&mt('Save'); |
$r->print(<<ENDSCREEN); |
$r->print(<<ENDSCREEN); |
<form name="prefs" action="/adm/preferences" method="post"> |
<form name="prefs" action="/adm/preferences" method="post"> |
Line 1922 sub change_authoring_settings {
|
Line 1922 sub change_authoring_settings {
|
} else { |
} else { |
$status=&mt('off'); |
$status=&mt('off'); |
} |
} |
my $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Deactivate Codemirror in Authoring Space').'</i>','<tt>'.$status.'</tt>')); |
my $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Deactivate CodeMirror in Authoring Space').'</i>','<tt>'.$status.'</tt>')); |
$message=&Apache::loncommon::confirmwrapper($message); |
$message=&Apache::loncommon::confirmwrapper($message); |
&print_main_menu($r,$message); |
&print_main_menu($r,$message); |
} |
} |