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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 24 Feb 2006 22:54:51 -0000


albertel		Fri Feb 24 17:54:51 2006 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - don't remove the ' it's sometimes' important
  - fixing some mt ising so that RtL people have a chance of translating things
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.362 loncom/interface/lonnavmaps.pm:1.363
--- loncom/interface/lonnavmaps.pm:1.362	Fri Feb 24 17:35:12 2006
+++ loncom/interface/lonnavmaps.pm	Fri Feb 24 17:54:50 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.362 2006/02/24 22:35:12 www Exp $
+# $Id: lonnavmaps.pm,v 1.363 2006/02/24 22:54:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1113,11 +1113,11 @@
 
 	my $folderType = $resource->is_sequence() ? 'folder' : 'page';
         my $title=$resource->title;
-        $title=~s/\'/ /g;
+        $title=~s/\"/\"/g;
         if (!$params->{'resource_no_folder_link'}) {
             $icon = "navmap.$folderType." . ($nowOpen ? 'closed' : 'open') . '.gif';
-	    $icon = "<img src='$location/$icon' alt='".
-		($nowOpen ? &mt('Open Folder') : &mt('Close Folder')).' '.$title."' border='0' />";
+	    $icon = "<img src='$location/$icon' alt=\"".
+		($nowOpen ? &mt('Open Folder') : &mt('Close Folder')).' '.$title."\" border='0' />";
 
             $linkopen = "<a href=\"" . $params->{'url'} . '?' . 
                 $params->{'queryString'} . '&filter=';
@@ -1179,13 +1179,13 @@
     if ($resource->is_problem() && $part ne '0' && 
         !$params->{'condensed'}) {
 	my $displaypart=$resource->part_display($part);
-        $partLabel = " (".&mt('Part').": $displaypart)";
+        $partLabel = " (".&mt('Part: [_1]', $displaypart).")";
 	if ($link!~/\#/) { $link.='#'.&Apache::lonnet::escape($part); }
         $title = "";
     }
 
     if ($params->{'condensed'} && $resource->countParts() > 1) {
-        $nonLinkedText .= ' (' . $resource->countParts() . ' '.&mt('parts').')';
+        $nonLinkedText .= ' ('.&mt('[_1] parts', $resource->countParts()).')';
     }
 
     my $target;