Parent Directory
|
Revision Log
merged changes from ghe3 development
1 package WeBWorK::Localize; 2 3 use Locale::Maketext 1.01; 4 use base ('Locale::Maketext'); 5 6 7 # this is like [quant] but it doesn't write the number 8 # usage: [quant,_1,<singular>,<plural>,<optional zero>] 9 10 sub plural { 11 my($handle, $num, @forms) = @_; 12 13 return "" if @forms == 0; 14 return $forms[2] if @forms > 2 and $num == 0; 15 16 # Normal case: 17 return( $handle->numerate($num, @forms) ); 18 } 19 20 # this is like [quant] but it also has -1 case 21 # usage: [negquant,_1,<neg case>,<singular>,<plural>,<optional zero>] 22 23 sub negquant { 24 my($handle, $num, @forms) = @_; 25 26 return $num if @forms == 0; 27 28 my $negcase = shift @forms; 29 return $negcase if $num < 0; 30 31 return $forms[2] if @forms > 2 and $num == 0; 32 return( $handle->numf($num) . ' ' . $handle->numerate($num, @forms) ); 33 } 34 35 36 37 %Lexicon = ( 38 '_AUTO' => 1, 39 '_REQUEST_ERROR' => q{ 40 WeBWorK has encountered a software error while attempting to process this 41 problem. It is likely that there is an error in the problem itself. If you are a 42 student, report this error message to your professor to have it corrected. If 43 you are a professor, please consult the error output below for more information. 44 }, 45 '_LOGIN_MESSAGE' => q{ 46 If you check [_1] your 47 login information will be remembered by the browser 48 you are using, allowing you to visit WeBWorK pages 49 without typing your user name and password (until your 50 session expires). This feature is not safe for public 51 workstations, untrusted machines, and machines over 52 which you do not have direct control. 53 }, 54 '_HMWKSETS_EDITOR_DESCRIPTION' => q{ 55 This is the homework sets editor page where you can view and edit the homework sets that exist in 56 this course and the problems that they contain. The top of the page contains forms which allow you 57 to filter which sets to display in the table, sort the sets in a chosen order, edit homework sets, 58 publish homework sets, import/export sets from/to an external file, score sets, or create/delete 59 sets. To use, please select the action you would like to perform, enter in the relevant information 60 in the fields below, and hit the \"Take Action!\" button at the bottom of the form. The bottom of 61 the page contains a table displaying the sets and several pieces of relevant information.", 62 }, 63 "_CLASSLIST_EDITOR_DESCRIPTION" => q{ 64 tr: This is the classlist editor page, where you can view and edit the records of all the students 65 currently enrolled in this course. The top of the page contains forms which allow you to filter 66 which students to view, sort your students in a chosen order, edit student records, give new 67 passwords to students, import/export student records from/to external files, or add/delete students. 68 To use, please select the action you would like to perform, enter in the relevant information in 69 the fields below, and hit the \"Take Action!\" button at the bottom of the form. The bottom of the 70 page contains a table containing the student usernames and their information. 71 }, 72 "_REDUCED_CREDIT_MESSAGE_1" => q{ 73 tr: This assignment has a Reduced Credit Period that begins [_1] and 74 ends on the due date, [_2]. During this period all additional work done counts [_3]\% of the 75 original. 76 }, 77 78 "_REDUCED_CREDIT_MESSAGE_2" => q{ 79 tr: This assignment had a Reduced Credit Period that began [_1] and 80 ended on the due date, [_2]. During that period all additional work done counted [_3]\% of the 81 original. 82 }, 83 "_GUEST_LOGIN_MESSAGE" => q{tr: This course supports guest logins. Click [_1] to log into this course as a guest.}, 84 85 "_EXTERNAL_AUTH_MESSAGE" => q{[_1] uses an external authentication system. You've authenticated through that system, but aren't allowed to log in to this course.}, 86 87 ); 88 89 1;
| aubreyja at gmail dot com | ViewVC Help |
| Powered by ViewVC 1.0.9 |