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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 10 Dec 2003 19:34:53 -0000


sakharuk		Wed Dec 10 14:34:53 2003 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  Localization is added for part of module.
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.70 loncom/interface/loncreateuser.pm:1.71
--- loncom/interface/loncreateuser.pm:1.70	Sat Oct 18 12:06:47 2003
+++ loncom/interface/loncreateuser.pm	Wed Dec 10 14:34:53 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.70 2003/10/18 16:06:47 www Exp $
+# $Id: loncreateuser.pm,v 1.71 2003/12/10 19:34:53 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -131,6 +131,14 @@
     my %existingroles=&my_custom_roles();
     my $choice=&Apache::loncommon::select_form('make new role','rolename',
 		('make new role' => 'Generate new role ...',%existingroles));
+    my %lt=&Apache::lonlocal::texthash(
+		    'siur'   => "Set Individual User Roles",
+		    'usr'  => "Username",
+                    'dom'  => "Domain",
+                    'usrr' => "User Roles",
+                    'ecrp' => "Edit Custom Role Privileges",
+                    'cre'  => "Custom Role Editor"
+				       );
     $r->print(<<"ENDDOCUMENT");
 <html>
 <head>
@@ -140,19 +148,19 @@
 $bodytag
 <form action="/adm/createuser" method="post" name="crtuser">
 <input type="hidden" name="phase" value="get_user_info">
-<h2>Set Individual User Roles</h2>
+<h2>$lt{siur}</h2>
 <table>
-<tr><td>Username:</td><td><input type="text" size="15" name="ccuname">
+<tr><td>$lt{usr}:</td><td><input type="text" size="15" name="ccuname">
 </td><td rowspan="2">$sellink</td></tr><tr><td>
-Domain:</td><td>$domform</td></tr>
+$lt{'dom'}:</td><td>$domform</td></tr>
 </table>
-<input name="userrole" type="submit" value="User Roles" />
+<input name="userrole" type="submit" value="$lt{usrr}" />
 </form>
 <form action="/adm/createuser" method="post" name="docustom">
 <input type="hidden" name="phase" value="selected_custom_edit">
-<h2>Edit Custom Role Privileges</h2>
+<h2>$lt{'ecrp'}</h2>
 Name of Role: $choice <input type="text" size="15" name="newrolename" /><br />
-<input name="customeditor" type="submit" value="Custom Role Editor" />
+<input name="customeditor" type="submit" value="$lt{'cre'}" />
 </body>
 </html>
 ENDDOCUMENT