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

raeburn raeburn@source.lon-capa.org
Wed, 19 Aug 2009 19:57:53 -0000


raeburn		Wed Aug 19 19:57:53 2009 EDT

  Modified files:              
    /loncom/interface	lonpickuser.pm 
  Log:
  - &mt() applied to complete phrases to facilitate localization.
  
  
Index: loncom/interface/lonpickuser.pm
diff -u loncom/interface/lonpickuser.pm:1.2 loncom/interface/lonpickuser.pm:1.3
--- loncom/interface/lonpickuser.pm:1.2	Thu Aug  6 20:46:42 2009
+++ loncom/interface/lonpickuser.pm	Wed Aug 19 19:57:53 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Search for a user
 #
-# $Id: lonpickuser.pm,v 1.2 2009/08/06 20:46:42 raeburn Exp $
+# $Id: lonpickuser.pm,v 1.3 2009/08/19 19:57:53 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -189,12 +189,13 @@
 </form></div>');
                     } else {
                         my $helplink = 'javascript:helpMenu('."'display'".')';
-                        my %usertypetext = (
-                            official   => 'institutional',
-                            unofficial => 'non-institutional',
+                        my %usertypetext = 
+                            &Apache::lonlocal::texthash(
+                              official   => 'You are not authorized to create new institutional users in this domain.',
+                              unofficial => 'You are not authorized to create new non-institutional users in this domain.',
                         );
                         $r->print('<div class="LC_warning">'.
-                                  &mt("You are not authorized to create new $usertypetext{$usertype} users in this domain.").' '.
+                                  $usertypetext{$usertype}.' '.
                                   &mt('Please contact the [_1]helpdesk[_2] for assistance.','<a href="'.$helplink.'">','</a>').'</div>');
 
                     }