]> git.deb.at Git - deb/packages.git/commitdiff
Fix some minor issues
authorFrank Lichtenheld <frank@lichtenheld.de>
Thu, 23 Feb 2006 19:03:35 +0000 (19:03 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Thu, 23 Feb 2006 19:03:35 +0000 (19:03 +0000)
lib/Packages/DoShow.pm
lib/Packages/HTML.pm

index c9912df2941bf1ca506c3b60f0dc7ae3351b2522..7d5c16b3e4f71b609f12f655b9634e900b6eed9c 100644 (file)
@@ -307,11 +307,11 @@ sub do_show {
 
                    $$menu .= simple_menu( [ _g( "Distribution:" ),
                                             _g( "Overview over this suite" ),
-                                            "/$suite/",
+                                            "$ROOT/$suite/",
                                             $suite ],
                                           [ _g( "Section:" ),
                                             _g( "All packages in this section" ),
-                                            "/$suite/$subsection/",
+                                            "$ROOT/$suite/$subsection/",
                                             $subsection ],
                                           );
                    
index 1de010d4beea3b9c951098699343cdd4f867dd7c..4aeb675cae42f879356f0bdea0541d75543a8b65 100644 (file)
@@ -239,13 +239,14 @@ sub dep_item {
 } # end dep_item
 
 sub provides_string {
-    my ($path, $entry) = @_;
+    my ($path, $entry,$also) = @_;
     my @provided_by = split /\s/, $entry;
-    my $short_desc = "virtual package provided by ";
+    my $short_desc = $also ? _g("also a virtual package provided by ")
+       : _g("virtual package provided by ");
     if (@provided_by < 10) {
        $short_desc .= join( ', ',map { "<a href=\"$path/$_\">$_</a>" } @provided_by);
     } else {
-       $short_desc .= scalar(@provided_by)." packages";
+       $short_desc .= sprintf( _g("%s packages"), scalar(@provided_by));
     }
     return $short_desc;
 }
@@ -307,8 +308,9 @@ sub print_deps {
                } elsif (defined $entry->[1]) {
                    $entries{$p_name} ||= $entry;
                    $short_desc = encode_entities( $short_desc, "<>&\"" );
-                   $short_desc .= "<br>Also, a ".provides_string( "$ROOT/$path",
-                                                          $entry->[0] )
+                   $short_desc .= "<br>".provides_string( "$ROOT/$path",
+                                                          $entry->[0],
+                                                          1 )
                        if defined $entry->[0];
                    push @res_pkgs, dep_item( "$ROOT/$path/$p_name",
                                              $p_name, "$pkg_version$arch_str", $short_desc );