-
- $$menu .= simple_menu( [ gettext( "Distribution:" ),
- gettext( "Overview over this suite" ),
- "$ROOT/$suite/",
- $suite ],
- [ gettext( "Section:" ),
- gettext( "All packages in this section" ),
- "$ROOT/$suite/$subsection/",
- $subsection ],
- );
-
- my $title .= sprintf( gettext( "Package: %s (%s)" ), $pkg, $v_str );
+ my @menu = ( [ _g( "Distribution:" ),
+ _g( "Overview over this suite" ),
+ "$ROOT/$suite/",
+ $suite ],
+ [ _g( "Section:" ),
+ _g( "All packages in this section" ),
+ "$ROOT/$suite/$subsection/",
+ $subsection ], );
+ my $source = $page->get_src('package');
+ push @menu, [ _g( "Source:" ),
+ _g( "Source package building this package" ),
+ "$ROOT/$suite/source/$source",
+ $source ] if $source;
+ $$menu .= simple_menu( @menu );
+
+ my $v_str = $version;
+ my $multiple_versions = grep { $_ ne $version } values %$versions;
+ $v_str .= _g(" and others") if $multiple_versions;
+ my $title .= sprintf( _g( "Package: %s (%s)" ), $pkg, $v_str );