X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=082079efcd7f0e76b3784a65337e87ef3acaaa57;hp=7c7dd17acb8ea79592b3f9d741eac7085a508b66;hb=944e9ffd2b7f527a3e96bb33a8a5b17f965a7815;hpb=5fa4677a30bf12808f781367893a9d66ff839da4 diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 7c7dd17..082079e 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -11,15 +11,15 @@ -%] [%- suite_name = suite; SET suite_name = suite_name _ ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite; - nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite_name }, ]; - nav_arr.push( { title => 'Source packages', url=>make_url('/'), name=>'Source' } ) IF is_source; - nav_arr.push( { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection } ); - nav_arr.push( { prefix=>'Package:', name=>pkg } ); -%] + nav_arr = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/','','source',''), name=>suite_name }, ]; + nav_arr.push( { title =>g('Source packages'), url=>make_url('/'), name=>g('Source') } ) IF is_source; + nav_arr.push( { prefix=>g('Section:'), title=>g('All packages in this section'), url=>make_url("$subsection/"), name=>subsection } ); + nav_arr.push( { prefix=>g('Package:'), name=>pkg } ); -%] [% desclang = 'en'; SET desclang = lang IF desc.$lang.long %] [%- PROCESS 'html/head.tmpl' - title_tag = ( is_source ? "Details of source package $pkg in $suite" - : "Details of package $pkg in $suite" ) + title_tag = is_source ? g('Details of source package %s in %s', pkg, suite) + : g('Details of package %s in %s', pkg, suite) description = desc.$desclang.short keywords = "$suite, $archive, $section, $subsection, $version" print_search_field = 'packages' @@ -42,43 +42,43 @@ [% IF src %]
-[% PROCESS menuitem prefix='Source:' title='Source package building this package' url=make_url(src.pkg,'','source','source') name=src.pkg %] +[% PROCESS menuitem prefix=g('Source:') title=g('Source package building this package') url=make_url(src.pkg,'','source','source') name=src.pkg %]
[% END %] [%- PROCESS 'html/messages.tmpl' -%] [% IF is_virtual %] -

Virtual Package: [% pkg %] +

[% g('Virtual Package: %s', pkg) %] [% ELSIF is_source %] -

Source Package: [% pkg %] ([% version %]) +

[% g('Source Package: %s (%s)', pkg, version) %] [% ELSE %] -

Package: [% pkg %] ([% versions.short %]) +

[% g('Package: %s (%s)', pkg, versions.short) %] [% END %] [%- PROCESS marker text=archive IF archive && archive != main_archive %] [%- PROCESS marker text=section IF section && section != main_section %] -[%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %]

+[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %] [% UNLESS is_virtual %]
-

Links for [% pkg %]

-

Debian Resources:

+

[% g('Links for %s', pkg) %]

+

[% g('Debian Resources:') %]

[% IF src %] -

Download Source Package [% src.pkg %]: +

[% g('Download Source Package %s:', src.url, src.pkg) %] [% FOREACH src.downloads %] [% '

' IF loop.last %] [% END %] [% IF src.downloads.size == 0 %] - Not found + [% g('Not found') %] [% END %] [% END %] [% IF maintainers.size == 1 -%] -

Maintainer:

+

[% g('Maintainer:') %]

[%- ELSE -%] -

Maintainers:

+

[% g('Maintainers:') %]

[%- END %] [%- FOREACH maintainers -%] [%- '' IF loop.last -%] [%- END -%] @@ -119,15 +119,15 @@ [% url = page.get_newest('url'); SET url = page.get_newest('homepage') IF page.get_newest('homepage'); IF url %] -

External Resources:

+

[% g('External Resources:') %]

[% END %] [% FOREACH sim IN similar %] [% IF loop.first %] -

Similar packages:

+

[% g('Similar packages:') %]

[% FOREACH tag IN tags %] [% IF loop.first -%]

- Tags: + [% g('Tags') %]: [%- END %] [% facet = tag.0; facet_name = debtags_voc.$facet; @@ -197,7 +198,7 @@ Do not install it on a normal Debian system.

[% END %] [% FOREACH providers %] - [% IF loop.first %]

Packages providing [% pkg %]

[% END %] + [% IF loop.first %]

[% g('Packages providing %s', pkg) %]

[% END %]
[% IF available %][% name %][% ELSE %][% name %][% END %]
[% desc %]
[% '
' IF loop.last %] @@ -206,7 +207,7 @@ Do not install it on a normal Debian system.

[% END %] [% FOREACH binaries %] - [% IF loop.first %]
The following binary packages are built from this source package:
[% END %] + [% IF loop.first %]
[% g('The following binary packages are built from this source package:') %]
[% END %]
[% IF available %][% name %][% ELSE %][% name %][% END %]
[% desc %]
[% '
' IF loop.last %] @@ -215,16 +216,16 @@ Do not install it on a normal Debian system.

[% FOREACH relations %] [% IF loop.first -%]
-

Other Packages Related to [% pkg %]

+

[% g('Other Packages Related to %s', pkg) %]

[% IF is_source %] - - + + [% ELSE %] - - - + + + [% END %]
[adep]= build-depends[idep]= build-depends-indep
  • build-depends
  • build-depends-indep
[dep]= depends[rec]= recommends[sug]= suggests
  • depends
  • recommends
  • suggests
[%- END %] @@ -241,11 +242,11 @@ Do not install it on a normal Debian system.

[%- IF !is_old_pkgs -%]
[% desc -%] [%- IF providers.pkgs.size > 0 -%] - [% '
also a ' IF providers.also %]virtual package provided by + [% '
also a ' IF providers.also %][% g('virtual package provided by') %] [% js_id = name %] [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] [% IF providers.pkgs.size > 10 %] - + [% END %] [% END %]
@@ -265,16 +266,21 @@ Do not install it on a normal Debian system.

Download [% pkg %]

- - - [% '' IF versions.multiple %] +
Download for all available architectures
ArchitectureVersionPackage SizeInstalled SizeFiles
+ + + [% '' IF versions.multiple %] + + + + [%- END %] [% download_url = pkg _ '/' _ d.arch _ '/download' filelist_url = pkg _ '/' _ d.arch _ '/filelist' %] +[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] [% g('(unofficial port)') %][% END %] [% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' ); vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' ); IF vnorm == vlatest; @@ -285,12 +291,12 @@ Do not install it on a normal Debian system.

version_class = 'vold'; END %] [% "" IF versions.multiple %] - + @@ -307,13 +313,13 @@ Do not install it on a normal Debian system.

Download [% pkg %]

-
[% g('Download for all available architectures') %]
[% g('Architecture') %]'_ g('Version') _'[% g('Package Size') %][% g('Installed Size') %][% g('Files') %]
[% d.arch %] -[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] (unofficial port)[% END %]$d.version[% d.pkgsize %] kB[% d.instsize %] kB[% g('%.1f kB', d.pkgsize) %][% g('%u kB', d.instsize) %] [% IF d.contents_avail %] - [list of files] + [[% g('list of files') %]] [% ELSE %] - no current information + [% g('no current information') %] [% END %]
- +
FileSize (in kB)md5sum
+ [%- END %] - + @@ -326,10 +332,11 @@ Do not install it on a normal Debian system.

SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info; IF vcs_info; %]
-
Debian Package Source Repository (VCS: [% vcs_name %])
+
[% g('Debian Package Source Repository (VCS: %s)', + make_url(vcs_pkg,'','source',''), vcs_name ) %]
[% vcs_info %]
[% IF vcs_link %] -
Debian Package Source Repository (Browsable)
[% vcs_link %]
+
[% g('Debian Package Source Repository (Browsable)') %]
[% vcs_link %]
[% END %]
[% END; END %]
[% g('File') %][% g('Size (in kB)') %][% g('MD5 checksum') %]
[% filename %][% size %][% g('%.1f kB', size) %] [% md5sum %]