X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Findex.tmpl;h=a5139b54c9b687f8eaaed51c4cc24fb139359a4d;hp=043274a94de27e4075d49eddf4e2c9a0bc606efd;hb=1bae1b743532d7d100015b751fe1f7be52198b8b;hpb=cc46373b0745372463947d3b7d1c9c5a73f52db5 diff --git a/templates/html/index.tmpl b/templates/html/index.tmpl index 043274a..a5139b5 100644 --- a/templates/html/index.tmpl +++ b/templates/html/index.tmpl @@ -1,17 +1,21 @@ [% PROCESS 'config/archive_layout.tmpl' %] -[% pkg_type = is_source ? 'Source' : 'Software'; - title_common = category ? "$pkg_type Packages in \"$suite\", $category.id $category.name" - : "$pkg_type Packages in \"$suite\""; +[% IF is_source; + title_common = category ? g('Source Packages in "%s", %s %s', suite, category.id, category.name) + : g('Source Packages in "%s"', suite); + ELSE; + title_common = category ? g('Software Packages in "%s", %s %s', suite, category.id, category.name) + : g('Software Packages in "%s"', suite); + END; - nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','suite',suite), name=>suite } ]; + nav_arr = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/','','suite',suite), name=>suite } ]; IF category; nav_last = { prefix=>"$category.id:", name=>category.name }; ELSE; - nav_last = { name=>'All Packages' }; + nav_last = { name=>g('All Packages') }; END; - nav_arr.push( { name=>'Source', - url=>make_url('/','','suite',suite,'source',source) } ) - IF source; + nav_arr.push( { name=>g('Source'), + url=>make_url('/','','suite',suite,'source','source') } ) + IF is_source; nav_arr.push( nav_last ); %] [% PROCESS 'html/head.tmpl' @@ -31,7 +35,7 @@ [% END %] [% IF providers.size %]
[% name %]
-
virtual package provided by +
[% g('virtual package provided by') %] [% FOREACH provider IN providers %][% provider %] [%- ', ' UNLESS loop.last %][% END %]
[% IF versions.length %]