X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Findex.tmpl;h=a5139b54c9b687f8eaaed51c4cc24fb139359a4d;hp=dc44e990bda208c581c6dd076862f88925f03063;hb=1bae1b743532d7d100015b751fe1f7be52198b8b;hpb=39651deecd6d21672d804d2aca78dbc731dfbea2 diff --git a/templates/html/index.tmpl b/templates/html/index.tmpl index dc44e99..a5139b5 100644 --- a/templates/html/index.tmpl +++ b/templates/html/index.tmpl @@ -1,24 +1,28 @@ [% 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' }; - END - nav_arr.push( { name=>'Source', - url=>make_url('/','','suite',suite,'source',source) } ) - IF source; + nav_last = { name=>g('All Packages') }; + END; + 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' title_tag = title_common page_title = title_common keywords = "$suite, $category.name" - navigation = navigation_pre + navigation = nav_arr %] [% FOREACH packages %] @@ -31,7 +35,9 @@ [% END %] [% IF providers.size %]
[% name %]
-
virtual package provided by [% FOREACH provider IN providers %][% provider %][% END %]
+
[% g('virtual package provided by') %] + [% FOREACH provider IN providers %][% provider %] + [%- ', ' UNLESS loop.last %][% END %]
[% IF versions.length %]
[% name %] ([% versions %])[% PROCESS markers %]
[% desc | html %]
@@ -43,3 +49,5 @@ [% '' IF loop.last %] [% END %] + +[%- PROCESS 'html/foot.tmpl' -%]