X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=3ebc1a1ffabd5193bd5def82c57f62d197f30cc7;hp=808c517aef6e94e68c8789bc93e1f0be9288ca2d;hb=1c880dbbb5b885dd620120354e735c06280030df;hpb=0826daa3d7e40754506b392b395aaf66974c5598 diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 808c517..3ebc1a1 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -16,7 +16,8 @@ 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 %] + SET desclang = po_lang IF desc.$po_lang.long; + SET desclang = ddtp_lang IF desc.$ddtp_lang.long %] [%- PROCESS 'html/head.tmpl' title_tag = is_source ? g('Details of source package %s in %s', pkg, suite) : g('Details of package %s in %s', pkg, suite) @@ -29,7 +30,7 @@ navigation = nav_arr -%] -[% PROCESS 'html/menu.inc' %] +[% PROCESS 'html/util.inc' %] [% FOREACH s IN suites %] [% '
' IF loop.first %] [%- IF s == suite -%] @@ -62,14 +63,14 @@ [% UNLESS is_virtual %]

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

-

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

+

[% g('%s Resources:', organisation) %]

@@ -108,10 +109,19 @@ [%- ELSE -%]

[% g('Maintainers:') %]

[%- END %] -[%- FOREACH maintainers -%] +[%- FOREACH maintainers; + mailarchiveurl = ''; + IF (matches = mail.match('^(.*)@lists\.debian\.org$')); + mailarchiveurl = 'http://lists.debian.org/' _ uri_escape(matches.0) _ '/'; + ELSIF (matches = mail.match('^(.*)@lists\.alioth\.debian\.org$')); + mailarchiveurl = 'http://lists.alioth.debian.org/pipermail/' _ uri_escape(matches.0) _ '/'; + ELSIF (matches = mail.match('^(.*)@lists\.ubuntu\.com$')); + mailarchiveurl = 'http://lists.ubuntu.com/archives/' _ uri_escape(matches.0) _ '/'; + END -%] [%- '' IF loop.last -%] [%- END -%] @@ -121,7 +131,7 @@ IF url %]

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

[% END %] @@ -143,16 +153,13 @@ [% changelog_link = 'changelog'; changelog_link = "$changelogs_url$files.changelog.path" %]

[% g('Experimental package') %]

-

[% g('Warning: This package is from the experimental distribution. -That means it is likely unstable or buggy, and it may even cause data loss. -Please be sure to consult the changelog and other possible documentation before -using it.', changelog_link) %]

+

[% g('Warning: This package is from the experimental distribution. That means it is likely unstable or buggy, and it may even cause data loss. Please be sure to consult the changelog and other possible documentation before using it.', + changelog_link) %]

[% END %] [% IF subsection == "debian-installer" %]

[% g('debian-installer udeb package') %]

-

[% g('Warning: This package is intended for the use in building -debian-installer images only. -Do not install it on a normal %s system.', organisation ) %]

+

[% g('Warning: This package is intended for the use in building debian-installer images only. Do not install it on a normal %s system.', + organisation ) %]

[% END %]
[% END %] @@ -162,13 +169,14 @@ Do not install it on a normal %s system.', organisation ) %]

[% IF desc %]
-
[% UNLESS is_virtual %] +
[% IF desc.$desclang.short %]

[% desc.$desclang.short %]

[% desc.$desclang.long %] [% END %] [% ELSE %] +

[% g('This is a virtual package. See the Debian policy for a definition of virtual packages.', policy_url, policy_url) %]

[% END %] @@ -177,16 +185,18 @@ Do not install it on a normal %s system.', organisation ) %]

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

- [% g('Tags') %]: + [% g('Tags') %]: [%- END %] - [% facet = tag.0; - facet_name = debtags_voc.$facet; - tag_id = "$tag.0::$tag.1"; - tag_name = debtags_voc.$tag_id; + [% facet = tag.0; lfacet = "$facet-$po_lang"; + facet_name = debtags_voc.$lfacet; + SET facet_name = debtags_voc.$facet UNLESS facet_name; + tag_id = "$tag.0::$tag.1"; ltag = "$tag_id-$po_lang"; + tag_name = debtags_voc.$ltag; + SET tag_name = debtags_voc.$tag_id UNLESS tag_name; %] [% facet_name _ ': ' UNLESS old_facet && facet == old_facet %] [% IF tag_name %] - [% tag_name %][% ', ' UNLESS loop.last %] + [% tag_name | html %][% ', ' UNLESS loop.last %] [% ELSE %] [% tag_id %][% ', ' UNLESS loop.last %] [% END %] @@ -197,19 +207,19 @@ Do not install it on a normal %s system.', organisation ) %]

[%- END %] [% END %] -[% FOREACH providers %] +[% FOREACH p IN providers %] [% IF loop.first %]

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

[% END %] -
[% IF available %][% name %][% ELSE %][% name %][% END %]
-
[% desc %]
+
[% IF p.available %][% p.name %][% ELSE; p.name; END %]
+ [% PROCESS desc_i18n_dd trans_desc=p.trans_desc desc=p.desc %] [% '
' IF loop.last %] [% END %]
[% END %] -[% FOREACH binaries %] +[% FOREACH b IN binaries %] [% IF loop.first %]
[% g('The following binary packages are built from this source package:') %]
[% END %] -
[% IF available %][% name %][% ELSE %][% name %][% END %]
-
[% desc %]
+
[% IF b.available %][% b.name %][% ELSE; b.name; END %]
+ [% PROCESS desc_i18n_dd trans_desc=b.trans_desc desc=b.desc %] [% '
' IF loop.last %] [% END %] @@ -235,12 +245,12 @@ Do not install it on a normal %s system.', organisation ) %]

[% '
  • ' UNLESS is_old_pkgs %] [% FOREACH alternatives %] [% '
    ' IF loop.first %] -
    [% IF loop.first %][% id %]:[% ELSE %]or [% END %] +
    [% IF loop.first %][% id %]:[% ELSE %][% g('or ') %][% END %] [% IF suite %][% name %][% ELSE %][% name %][% END %] [% ' (' _ version _ ')' IF version %] [% ' [' _ arch_str _ ']' IF arch_str %]
    [%- IF !is_old_pkgs -%] -
    [% desc -%] + [% PROCESS desc_i18n_dd no_end_tag=1 trans_desc=trans_desc desc=desc -%] [%- IF providers.pkgs.size > 0 -%] [% IF providers.also; '
    ' _ g('also a virtual package provided by'); @@ -248,9 +258,9 @@ Do not install it on a normal %s system.', organisation ) %]

    g('virtual package provided by'); END; %] [% js_id = name %] - [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] + [% FOREACH provider IN providers.pkgs.sort %][% provider %][% ', ' UNLESS loop.last %][% END %] [% IF providers.pkgs.size > 10 %] - + [% END %] [% END %]
    @@ -281,9 +291,9 @@ Do not install it on a normal %s system.', organisation ) %]

    [%- END %] -[% download_url = pkg _ '/' _ d.arch _ '/download' - filelist_url = pkg _ '/' _ d.arch _ '/filelist' %] -[% d.arch %] +[% download_url = pkg _ '/download' + filelist_url = pkg _ '/filelist' %] +[% d.arch %] [%- 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( '-[^-]+$', '' ); @@ -295,10 +305,10 @@ Do not install it on a normal %s system.', organisation ) %]

    version_class = 'vold'; END %] [% "$d.version" IF versions.multiple %] -[% g('%.1f kB', d.pkgsize) %][% g('%u kB', d.instsize) %] +[% g('%s kB', num.format_number(d.pkgsize,1)) %][% g('%s kB', d.instsize) %] [% IF d.contents_avail %] - [[% g('list of files') %]] + [[% g('list of files') %]] [% ELSE %] [% g('no current information') %] [% END %] @@ -323,7 +333,7 @@ Do not install it on a normal %s system.', organisation ) %]

    [% filename %] -[% g('%.1f kB', size) %] +[% g('%s kB', num.format_number(size,1)) %] [% md5sum %] @@ -334,16 +344,21 @@ Do not install it on a normal %s system.', organisation ) %]

    vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2; vcs_info = page.get_newest("vcs-$vcs_id"); SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info; - IF vcs_info; %] + LAST IF vcs_info; + END; + IF vcs_info || vcs_link; %]
    +[% IF vcs_info %]
    [% g('Debian Package Source Repository (VCS: %s)', make_url(vcs_pkg,'','source',''), vcs_name ) %]
    [% vcs_info %]
    -[% IF vcs_link %] -
    [% g('Debian Package Source Repository (Browsable)') %]
    [% vcs_link %]
    +[% END; + IF vcs_link %] +
    [% g('Debian Package Source Repository (Browsable)') %]
    +
    [% vcs_link %]
    [% END %]
    -[% END; END %] +[% END %]
  • [%- END %] @@ -351,4 +366,4 @@ Do not install it on a normal %s system.', organisation ) %]

    [%# %] -[%- PROCESS 'html/foot.tmpl' -%] +[%- PROCESS 'html/foot.tmpl' page_name=pkg -%]