[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /publisher lonrights.pm

raeburn raeburn@source.lon-capa.org
Wed, 27 Jan 2010 16:18:18 -0000


raeburn		Wed Jan 27 16:18:18 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/publisher	lonrights.pm 
  Log:
  - Backport 1.29.
  
  
Index: loncom/publisher/lonrights.pm
diff -u loncom/publisher/lonrights.pm:1.25 loncom/publisher/lonrights.pm:1.25.2.1
--- loncom/publisher/lonrights.pm:1.25	Mon May 25 14:31:00 2009
+++ loncom/publisher/lonrights.pm	Wed Jan 27 16:18:17 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to show and edit custom distribution rights
 #
-# $Id: lonrights.pm,v 1.25 2009/05/25 14:31:00 bisitz Exp $
+# $Id: lonrights.pm,v 1.25.2.1 2010/01/27 16:18:17 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -196,7 +196,7 @@
   if ($constructmode) {
      $r->print(&Apache::loncommon::select_form('','action_0',
                                   ('' => '',
-				   'insertbelow' => 'Insert rule below')));
+                                   'insertbelow' => &mt('Insert rule below'))));
                                                 
   } else {
       $r->print(' ');
@@ -205,6 +205,7 @@
   if ($constructmode) {
       $r->print(&Apache::loncommon::select_form
                                  ($token->[2]->{'effect'},'effect_0',
+                                  &Apache::lonlocal::texthash
                                    ('allow' => 'allow',
                                     'deny'  => 'deny')));
   } else {
@@ -227,6 +228,7 @@
           if ($constructmode) {
              $r->print(&Apache::loncommon::select_form(
                     '','action_'.$rulecounter,
+                    &Apache::lonlocal::texthash
                     ('' => '', 
                      'delete' => 'Delete this rule',
                      'insertabove' => 'Insert rule above',
@@ -241,6 +243,7 @@
              $r->print(&Apache::loncommon::select_form
                                  ($token->[2]->{'effect'},
                                   'effect_'.$rulecounter,
+                                  &Apache::lonlocal::texthash
                                    ('allow' => 'allow',
                                     'deny'  => 'deny')));
           } else {
@@ -253,6 +256,7 @@
           if ($constructmode) {
               $r->print(&Apache::loncommon::select_form($type,
 							'type_'.$rulecounter,
+                            &Apache::lonlocal::texthash
 							('course' => 'Course',
 							 'user'   => 'User')));
           } else {