X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=templates%2Fhtml%2Fshow.tmpl;h=f18efe5c9ca13eb7b5c9dc64d95c2e38a896cd1b;hb=7d4c5c3c71cbf665b11de1d6b92bfbf31f65ca2b;hp=082079efcd7f0e76b3784a65337e87ef3acaaa57;hpb=7b10a3faf069175fef7e3028df352717e89bffc2;p=deb%2Fpackages.git diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 082079e..f18efe5 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 %] [% '
[% 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('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 %][% 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 +199,18 @@ Do not install it on a normal %s system.', organisation ) %] [% FOREACH tag IN tags %] [% IF loop.first -%] [% END %] -[% FOREACH binaries %] +[% FOREACH b IN binaries %] [% IF loop.first %]
|
-
|
+
|
+
|
[% ELSE %]
-
|
-
|
-
|
+
|
+
|
+
|
[% END %]
[% 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( '-[^-]+$', '' ); @@ -291,10 +319,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 %] @@ -319,7 +347,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 %] |