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

bisitz bisitz@source.lon-capa.org
Fri, 27 Mar 2009 11:33:19 -0000


bisitz		Fri Mar 27 11:33:19 2009 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  Localization: Optimized &mt calls
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.432 loncom/interface/lonnavmaps.pm:1.433
--- loncom/interface/lonnavmaps.pm:1.432	Fri Mar 27 02:39:59 2009
+++ loncom/interface/lonnavmaps.pm	Fri Mar 27 11:33:19 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.432 2009/03/27 02:39:59 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.433 2009/03/27 11:33:19 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -643,20 +643,20 @@
             if ($slot_status == $res->UNKNOWN) {
                 return &mt('Reservation status unknown');
             } elsif ($slot_status == $res->RESERVED) {
-                return &mt('Reserved - ends').' '.
-                       timeToHumanString($slot_time,'end');
+                return &mt('Reserved - ends [_1]',
+                           timeToHumanString($slot_time,'end'));
             } elsif ($slot_status == $res->RESERVED_LOCATION) {
-                return &mt('Reserved - specific location(s) - ends').' '.
-                       timeToHumanString($slot_time,'end');
+                return &mt('Reserved - specific location(s) - ends [_1]',
+                           timeToHumanString($slot_time,'end'));
             } elsif ($slot_status == $res->RESERVED_LATER) {
-                return &mt('Reserved - next open').' '.
-                       timeToHumanString($slot_time,'start');
+                return &mt('Reserved - next open [_1]',
+                           timeToHumanString($slot_time,'start'));
             } elsif ($slot_status == $res->RESERVABLE) {
-                return &mt('Reservable ending').' '.
-                       timeToHumanString($slot_time,'end');
+                return &mt('Reservable ending [_1]',
+                           timeToHumanString($slot_time,'end'));
             } elsif ($slot_status == $res->RESERVABLE_LATER) {
-                return &mt('Reservable starting').' '.
-                       timeToHumanString($slot_time,'start');
+                return &mt('Reservable starting [_1]',
+                           timeToHumanString($slot_time,'start'));
             } elsif ($slot_status == $res->NOT_IN_A_SLOT) {
                 return &mt('Reserve a time/place to work');
             } elsif ($slot_status == $res->NOTRESERVABLE) {