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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Tue, 11 Dec 2007 00:47:58 -0000


raeburn		Mon Dec 10 19:47:58 2007 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  &personal_data_fieldtitles() provides localized texthash for names of user information fields.
  - used by domainprefs.pm and loncreateuser.pm   
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.623 loncom/interface/loncommon.pm:1.624
--- loncom/interface/loncommon.pm:1.623	Sat Dec  8 14:19:02 2007
+++ loncom/interface/loncommon.pm	Mon Dec 10 19:47:58 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.623 2007/12/08 19:19:02 raeburn Exp $
+# $Id: loncommon.pm,v 1.624 2007/12/11 00:47:58 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6598,6 +6598,19 @@
     return $response;
 }
 
+sub personal_data_fieldtitles {
+    my %fieldtitles = &Apache::lonlocal::texthash (
+                        id => 'Student/Employee ID',
+                        permanentemail => 'E-mail address',
+                        lastname => 'Last Name',
+                        firstname => 'First Name',
+                        middlename => 'Middle Name',
+                        generation => 'Generation',
+                        gen => 'Generation',
+                   );
+    return %fieldtitles;
+}
+
 =pod
 
 =back