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

bisitz lon-capa-cvs-allow@mail.lon-capa.org
Wed, 13 Feb 2008 11:20:27 -0000


bisitz		Wed Feb 13 06:20:27 2008 EDT

  Modified files:              
    /loncom/interface	lonsearchcat.pm 
  Log:
  Localization:
  - Optimized unhandy &mt() usage for Creation and Modification dates
  - Added text to inform about input order for Creation and Modification dates
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.289 loncom/interface/lonsearchcat.pm:1.290
--- loncom/interface/lonsearchcat.pm:1.289	Tue Feb 12 13:48:03 2008
+++ loncom/interface/lonsearchcat.pm	Wed Feb 13 06:20:24 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.289 2008/02/12 18:48:03 bisitz Exp $
+# $Id: lonsearchcat.pm,v 1.290 2008/02/13 11:20:24 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1044,6 +1044,7 @@
     # Creation/Modification date limits
     $scrout .= '<h3>'.&mt('Creation and Modification dates').'</h3>';
     $scrout .= "\n<table>\n";
+    $scrout .= "<tr><td>&nbsp;</td><td>".&mt('(Month - Day - Year)')."</td></tr>\n";
     my $cafter = 
         &Apache::lonhtmlcommon::date_setter('advsearch',         # formname
                                             'creationdate1', # fieldname
@@ -1062,10 +1063,10 @@
                                             '',          # state
                                             1,           # no_hh_mm_ss
                                             );
-    $scrout .= &mt('<tr><td align="right">Created between</td>'.
-                   '<td>[_1]</td></tr>'.
-                   '<tr><td align="right">and </td>'.
-                   '<td>[_2]</td></tr>',$cafter,$cbefore);
+    $scrout .= '<tr><td align="right">'.&mt('Created between').'</td>'
+              .'<td>'.$cafter.'</td></tr>'
+              .'<tr><td align="right">'.&mt('and').'</td>'
+              .'<td>'.$cbefore.'</td></tr>';
     my $lafter = 
         &Apache::lonhtmlcommon::date_setter('advsearch',
                                             'revisiondate1', 
@@ -1084,10 +1085,10 @@
                                             '',          # state
                                             1,           # no_hh_mm_ss
                                             );
-    $scrout .= &mt('<tr><td align="right">Last modified between </td>'.
-                   '<td>[_1]</td></tr>'.
-                   '<tr><td align="right">and</td>'.
-                   '<td>[_2]</td></tr>',$lafter,$lbefore);
+    $scrout .= '<tr><td align="right">'.&mt('Last modified between').'</td>'
+              .'<td>'.$lafter.'</td></tr>'
+              .'<tr><td align="right">'.&mt('and').'</td>'
+              .'<td>'.$lbefore.'</td></tr>';
     $scrout.="</table>\n";
     $scrout.=<<ENDDOCUMENT;
 $advanced_buttons