[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Wed, 28 May 2008 23:05:07 -0000


This is a MIME encoded message

--bisitz1212015907
Content-Type: text/plain

bisitz		Wed May 28 19:05:07 2008 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  - Changed save button text to standard text "Save" (which also solves conflict with translation caused by same text for button and menu item)
  - Added another save button at top of the page
  - Added missing &mt() calls
  - Tidied up text and optimized &mt() calls, use standard text design: surrounding brackets not translated, all options surrounded by "<tt>...</tt>", all options as parameters outside translation
  
  
  
--bisitz1212015907
Content-Type: text/plain
Content-Disposition: attachment; filename="bisitz-20080528190507.txt"

Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.394 loncom/interface/lonparmset.pm:1.395
--- loncom/interface/lonparmset.pm:1.394	Sat Apr  5 12:10:52 2008
+++ loncom/interface/lonparmset.pm	Wed May 28 19:05:07 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.394 2008/04/05 16:10:52 www Exp $
+# $Id: lonparmset.pm,v 1.395 2008/05/28 23:05:07 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2210,74 +2210,72 @@
     my $output='';
     if (! exists($values{'con_lost'})) {
         my %descriptions=
-	    ('url'            => '<b>'.&mt('Top Level Map').'</b> '.
+	    ('url'            => '<b>'.&mt('Top Level Map').'</b><br />'.
                                  '<a href="javascript:openbrowser'.
                                  "('envform','url','sequence')\">".
                                  &mt('Select Map').'</a><br /><span class="LC_warning"> '.
-                                 &mt('Modification may make assessment data inaccessible').
+                                 &mt('Modification may make assessment data inaccessible!').
                                  '</span>',
              'description'    => '<b>'.&mt('Course Description').'</b>',
              'courseid'       => '<b>'.&mt('Course ID or number').
                                  '</b><br />'.
-                                 '('.&mt('internal').', '.&mt('optional').')',
-             'cloners'        => '<b>'.&mt('Users allowed to clone course').'</b><br /><tt>(user:domain,user:domain,*:domain)</tt><br />'.&mt('Users with active Course Coordinator role in course are permitted to clone and need not be included.<br />
-Use *:domain to allow course to be cloned by anyone in the specified domain.<br />
-Use * to allow unrestricted cloning in all domains.'),
+                                 '('.&mt('internal, optional').')',
+             'cloners'        => '<b>'.&mt('Users allowed to clone course').'</b><br />'
+                                .'("<tt>'.&mt('user:domain,user:domain,*:domain').'</tt>")<br />'
+                                .&mt('Users with active Course Coordinator role in this course are permitted to clone and need not be included.').'<br />'
+                                .&mt('Use [_1] to allow course to be cloned by anyone in the specified domain.','"<tt>*:domain</tt>"').'<br />'
+                                .&mt('Use [_1] to allow unrestricted cloning in all domains.','"<tt>*</tt>"'),
              'grading'        => '<b>'.&mt('Grading').'</b><br />'.
-                                 '<tt>"standard", "external", or "spreadsheet"</tt> '.&Apache::loncommon::help_open_topic('GradingOptions'),
-	     'task_grading'   => '<b>'.&mt('Bridge Task Grading').'</b><br />'.
-                                 &mt('Instructors and TAs in sections, when grading bridge tasks, should be allowed to grade other sections, "[_1]" they are allowed (this is the default), "[_2]" no, they can only grade their own section','<tt>any</tt>','<tt>section</tt>'),
-             'default_xml_style' => '<b>'.&mt('Default XML Style File').'</b> '.
+                                 &mt('[_1], [_2], or [_3]','"<tt>standard</tt>"','"<tt>external</tt>"','"<tt>spreadsheet</tt>"').&Apache::loncommon::help_open_topic('GradingOptions'),
+	     'task_grading'   => '<b>'.&mt('Bridge Task Grading').'</b><br />'
+                                .&mt('Instructors and TAs in sections, when grading bridge tasks, should be allowed to grade other sections.').'<br />'
+                                .'('.&mt('[_1]: they are allowed (this is the default). [_2]: no, they can only grade their own section.','"<tt>any</tt>"','"<tt>section</tt>"').')',
+             'default_xml_style' => '<b>'.&mt('Default XML Style File').'</b><br />'.
                     '<a href="javascript:openbrowser'.
                     "('envform','default_xml_style'".
                     ",'sty')\">$SelectStyleFile</a><br />",
-             'question.email' => '<b>'.&mt('Feedback Addresses for Resource Content Question').
-                                 '</b><br />(<tt>user:domain,'.
-                                 'user:domain(section;section;...;*;...),...</tt>)',
-             'question.email.text' => '<b>'.&mt('Custom Text for Resource Content Question Option in Feedback').
-                                 '</b>',
-             'comment.email'  => '<b>'.&mt('Feedback Addresses for Course Content Comments').'</b><br />'.
-                                 '(<tt>user:domain,user:domain(section;section;...;*;...),...</tt>)',
-             'comment.email.text' => '<b>'.&mt('Custom Text for Course Content Option in Feedback').
-                                 '</b>',
-             'policy.email'   => '<b>'.&mt('Feedback Addresses for Course Policy').'</b>'.
-                                 '<br />(<tt>user:domain,user:domain(section;section;...;*;...),...</tt>)',
-             'policy.email.text' => '<b>'.&mt('Custom Text for Course Policy Option in Feedback').
-                                 '</b>',
-             'hideemptyrows'  => '<b>'.&mt('Hide Empty Rows in Spreadsheets').'</b><br />'.
-                                 '('.&mt('"[_1]" for default hiding','<tt>yes</tt>').')',
-             'pageseparators'  => '<b>'.&mt('Visibly Separate Items on Pages').'</b><br />'.
-                                 '('.&mt('"[_1]" for visible separation','<tt>yes</tt>').', '.
-                                 &mt('changes will not show until next login').')',
-             'student_classlist_view' => '<b>'.&mt('Allow students to view classlist.').'</b><br />'.&mt('("all":students can view all sections,"section":students can only view their own section.blank or "disabled" prevents student view.)'),
-             'student_classlist_portfiles' => '<b>'.&mt('Include link to accessible portfolio files').'</b><br />'.&mt('"[_1]" for link to each a listing of each student\'s files.','<tt>yes</tt>'),
-             'student_classlist_opt_in' => '<b>'.&mt("Student's agreement needed for listing in student-viewable roster").'</b><br />'.&mt('"[_1]" to require students to opt-in to listing in the roster (on the roster page).','<tt>yes</tt>'),
-             'plc.roles.denied'=> '<b>'.&mt('Disallow live chatroom use for Roles').
-                                  '</b><br />("<tt>st</tt>": '.
-                                  &mt('student').', "<tt>ta</tt>": '.
-                                  'TA, "<tt>in</tt>": '.
-                                  &mt('instructor').';<br /><tt>'.&mt('role,role,...').'</tt>) '.
-	       Apache::loncommon::help_open_topic("Course_Disable_Discussion"),
+             'question.email' => '<b>'.&mt('Feedback Addresses for Resource Content Question').'</b><br />'
+                                .'("<tt>'.&mt('user:domain,user:domain(section;section;...;*;...),...').'</tt>")',
+             'question.email.text' => '<b>'.&mt('Custom Text for Resource Content Question Option in Feedback').'</b>',
+             'comment.email'  => '<b>'.&mt('Feedback Addresses for Course Content Comments').'</b><br />'
+                                .'("<tt>'.&mt('user:domain,user:domain(section;section;...;*;...),...').'</tt>")',
+             'comment.email.text' => '<b>'.&mt('Custom Text for Course Content Option in Feedback').'</b>',
+             'policy.email'   => '<b>'.&mt('Feedback Addresses for Course Policy').'</b><br />'
+                                 .'("<tt>'.&mt('user:domain,user:domain(section;section;...;*;...),...').'</tt>")',
+             'policy.email.text' => '<b>'.&mt('Custom Text for Course Policy Option in Feedback').'</b>',
+             'hideemptyrows'  => '<b>'.&mt('Hide Empty Rows in Spreadsheets').'</b><br />'
+                                .'('.&mt('[_1] for default hiding','"<tt>yes</tt>"').')',
+             'pageseparators'  => '<b>'.&mt('Visibly Separate Items on Pages').'</b><br />'
+                                 .'('.&mt('[_1] for visible separation.','"<tt>yes</tt>"').' '
+                                 .&mt('Changes will not show until next login.').')',
+             'student_classlist_view' => '<b>'.&mt('Allow students to view classlist.').'</b><br />'
+                                        .'('.&mt('[_1]: students can view all sections. [_2]: students can only view their own section. blank or [_3] prevents student view.','"<tt>all</tt>"','"<tt>section</tt>"','"<tt>disabled</tt>"').')',
+             'student_classlist_portfiles' => '<b>'.&mt('Include link to accessible portfolio files').'</b><br />'
+                                             .'('.&mt('[_1] for link to each a listing of each student\'s files.','"<tt>yes</tt>"').')',
+             'student_classlist_opt_in' => '<b>'.&mt("Student's agreement needed for listing in student-viewable roster").'</b><br />'
+                                           .'('.&mt('[_1] to require students to opt-in to listing in the roster (on the roster page).','"<tt>yes</tt>"').')',
+             'plc.roles.denied'=> '<b>'.&mt('Disallow live chatroom use for Roles').'</b><br />'
+                                 .'('.&mt('[_1]: student, [_2]: TA, [_3]: instructor','"<tt>st</tt>"','"<tt>ta</tt>"','"<tt>in</tt>"').')<br />'
+                                 .'("<tt>'.&mt('role,role,...').'</tt>") '
+	                         .Apache::loncommon::help_open_topic("Course_Disable_Discussion"),
              'plc.users.denied' => 
                           '<b>'.&mt('Disallow live chatroom use for Users').'</b><br />'.
-                                 '(<tt>user:domain,user:domain,...</tt>)',
+                                  '("<tt>'.&mt('user:domain,user:domain,...').'</tt>")',
 
-             'pch.roles.denied'=> '<b>'.&mt('Disallow Resource Discussion for Roles').
-                                  '</b><br />("<tt>st</tt>": '.
-                                  'student, "<tt>ta</tt>": '.
-                                  'TA, "<tt>in</tt>": '.
-                                  'instructor;<br /><tt>role,role,...</tt>) '.
-	       Apache::loncommon::help_open_topic("Course_Disable_Discussion"),
+             'pch.roles.denied'=> '<b>'.&mt('Disallow Resource Discussion for Roles').'</b><br />'
+                                 .'('.&mt('[_1]: student, [_2]: TA, [_3]: instructor','"<tt>st</tt>"','"<tt>ta</tt>"','"<tt>in</tt>"')
+                                 .'("<tt>'.&mt('role,role,...').'</tt>") '
+                                 .Apache::loncommon::help_open_topic("Course_Disable_Discussion"),
              'pch.users.denied' => 
                           '<b>'.&mt('Disallow Resource Discussion for Users').'</b><br />'.
-                                 '(<tt>user:domain,user:domain,...</tt>)',
+                                 '("<tt>'.&mt('user:domain,user:domain,...').'</tt>")',
              'spreadsheet_default_classcalc' 
                  => '<b>'.&mt('Default Course Spreadsheet').'</b> '.
                     '<a href="javascript:openbrowser'.
                     "('envform','spreadsheet_default_classcalc'".
                     ",'spreadsheet')\">$SelectSpreadsheetFile</a><br />",
              'spreadsheet_default_studentcalc' 
-                 => '<b>'.&mt('Default Student Spreadsheet').'</b> '.
+                 => '<b>'.&mt('Default Student Spreadsheet').'</b><br />'.
                     '<a href="javascript:openbrowser'.
                     "('envform','spreadsheet_default_calc'".
                     ",'spreadsheet')\">$SelectSpreadsheetFile</a><br />",
@@ -2288,43 +2286,45 @@
                     ",'spreadsheet')\">$SelectSpreadsheetFile</a><br />",
 	     'allow_limited_html_in_feedback'
 	         => '<b>'.&mt('Allow limited HTML in discussion posts').'</b><br />'.
-	            '('.&mt('Set value to "[_1]" to allow',"<tt>yes</tt>").')',
+	            '('.&mt('Set value to [_1] to allow.','"<tt>yes</tt>"').')',
              'allow_discussion_post_editing'
-                 => '<b>'.&mt('Allow users with specified roles to edit/delete their own discussion posts').'</b><br />"<tt>st</tt>": '.
-                                  &mt('student').', "<tt>ta</tt>": '.
-                                  'TA, "<tt>in</tt>": '.
-                                  &mt('instructor').';&nbsp;(<tt>'.&mt('role:section,role:section,..., e.g., st:001,st:002,in,cc would permit students in sections 001 and 002 and instructors in any section, and course coordinators to edit their own posts.').'</tt>)<br />'.
-                    '('.&mt('or set value to "[_1]" to allow all roles',"<tt>yes</tt>").')',
+                 => '<b>'.&mt('Allow users with specified roles to edit/delete their own discussion posts').'</b><br />'
+                   .'('.&mt('[_1]: student, [_2]: TA, [_3]: instructor','"<tt>st</tt>"','"<tt>ta</tt>"','"<tt>in</tt>"').')<br />'
+                   .'('.&mt('Set value to [_1] to allow all roles.','"<tt>yes</tt>"').')'
+                   .'("<tt>'.&mt('role:section,role:section,...').'</tt>")<br />'
+                   .'('.&mt('Example: "<tt>st:001,st:002,in,cc</tt>" would permit students in sections 001 and 002 and instructors in any section, and course coordinators to edit their own posts.').')',
 	     'rndseed'
-	         => '<b>'.&mt('Randomization algorithm used').'</b> <br />'.
-                    '<span class="LC_error">'.&mt('Modifying this will make problems').' '.
-                    &mt('have different numbers and answers').'</span>',
+	         => '<b>'.&mt('Randomization algorithm used').'</b><br />'
+                   .'<span class="LC_error">'
+                   .&mt('Modifying this will make problems have different numbers and answers!')
+                   .'</span>',
 	     'receiptalg'
 	         => '<b>'.&mt('Receipt algorithm used').'</b> <br />'.
                     &mt('This controls how receipt numbers are generated.'),
              'suppress_tries'
                  => '<b>'.&mt('Suppress number of tries in printing').'</b><br />'.
-                    ' ('.&mt('"[_1]" to suppress, anything else to not suppress','<tt>yes</tt>').')',
+                    ' ('.&mt('[_1] to suppress, anything else to not suppress','"<tt>yes</tt>"').')',
              'problem_stream_switch'
                  => '<b>'.&mt('Allow problems to be split over pages').'</b><br />'.
-                    ' ('.&mt('"[_1]" if allowed, anything else if not','<tt>yes</tt>').')',
+                    ' ('.&mt('[_1] if allowed, anything else if not','"<tt>yes</tt>"').')',
              'default_paper_size' 
                  => '<b>'.&mt('Default paper type').'</b><br />'.
                     ' ('.&mt('supported types').': Letter [8 1/2x11 in], Legal [8 1/2x14 in],'. 
                     ' Tabloid [11x17 in], Executive [7 1/2x10 in], A2 [420x594 mm],'. 
                     ' A3 [297x420 mm], A4 [210x297 mm], A5 [148x210 mm], A6 [105x148 mm])',
 	     'print_header_format'
-	         => &mtn('<b> Print header format; substitutions </b>:  %n student name %c course id %a assignment note, numbers after the % limit the field size.').'</b>',
+	         => ' <b>'.&mt('Print header format').'</b><br />'
+                   .&mt('Substitutions:<br />[_1]: student name, [_2]: course id, [_3]: assignment note. Numbers after the <tt>%</tt> limit the field size.','"<tt>%n</tt>"','"<tt>%c</tt>"','"<tt>%a</tt>"'),
              'default_enrollment_start_date' => '<b>'.&mt('Default beginning date for student access.').'</b>',
              'default_enrollment_end_date'   => '<b>'.&mt('Default ending date for student access.').'</b>',
-             'nothideprivileged'   => '<b>'.&mt('Privileged users that should not be hidden on staff listings').'</b>'.
-                                 '<br />(<tt>user:domain,user:domain,...</tt>)',
+             'nothideprivileged'   => '<b>'.&mt('Privileged users that should not be hidden on staff listings').'</b><br />'
+                                     .'("<tt>'.&mt('user:domain,user:domain,*:domain').'</tt>")',
              'languages' => '<b>'.&mt('Languages used').'</b>',
              'disable_receipt_display'
                  => '<b>'.&mt('Disable display of problem receipts').'</b><br />'.
                     ' ('.&mt('"[_1]" to disable, anything else if not','<tt>yes</tt>').')',
 	     'task_messages'
-	         => '<b>'.&mt('Send message to student when clicking Done on Tasks').'</b><br /> ('.&mt('[_1] to send a message only to student, [_2] to send message to student and add record to user information page for instructors. Leave blank to disable.','<tt>only_student</tt>','<tt>student_and_user_notes_screen</tt>').')',
+	         => '<b>'.&mt('Send message to student when clicking Done on Tasks').'</b><br /> ('.&mt('[_1] to send a message only to student, [_2] to send message to student and add record to user information page for instructors. Leave blank to disable.','"<tt>only_student</tt>"','"<tt>student_and_user_notes_screen</tt>"').')',
 	     'disablesigfigs'
 	         => '<b>'.&mt('Disable checking of Significant Figures').'</b><br />'.
                     ' ('.&mt('"[_1]" to disable, anything else if not','<tt>yes</tt>').')',
@@ -2337,7 +2337,8 @@
 	         => '<b>'.&mt('Default set of options to pass to tth/m when converting tex').'</b>',
 
 	     'texengine'
-	         => '<b>'.&mt('Force all students in the course to use a specific math rendering engine.').'</b><br />'.&mt('(Valid options are [_1].)','"tth", "jsMath", "mimetex"').'</b>',
+	         => '<b>'.&mt('Force all students in the course to use a specific math rendering engine.').'</b><br />'
+                   .'('.&mt('[_1], [_2] (Convert to Images), [_3] (Tex-to-HTML), or blank for student\'s preference','"<tt>jsMath</tt>"','"<tt>mimetex</tt>"','"<tt>tth</tt>"').')',
 
              ); 
         my @Display_Order = ('url','description','courseid','cloners','grading',
@@ -2422,8 +2423,8 @@
     my %lt=&Apache::lonlocal::texthash(
 		    'par'   => 'Parameter',
 		    'val'   => 'Value',
-		    'set'   => 'Set',
-		    'sce'   => 'Set Course Environment'
+		    'set'   => 'Set?',
+		    'sav'   => 'Save'
 				       );
 
     my $Parameter=&mt('Parameter');
@@ -2445,13 +2446,14 @@
 $breadcrumbs
 <form method="post" action="/adm/parmset?action=crsenv" name="envform">
 $setoutput
+<div><input type="submit" name="crsenv" value="$lt{'sav'}" /></div>
 $start_table
 $start_header_row
-<th>$lt{'par'}</th><th>$lt{'val'}</th><th>$lt{'set'}?</th>
+<th>$lt{'par'}</th><th>$lt{'val'}</th><th>$lt{'set'}</th>
 $end_header_row
 $output
 $end_table
-<input type="submit" name="crsenv" value="$lt{'sce'}" />
+<input type="submit" name="crsenv" value="$lt{'sav'}" />
 </form>
 $end_page
 ENDENV

--bisitz1212015907--