[%- PROCESS 'html/head.tmpl'
- title_tag = "New Packages in \"$suite\""
+ title_tag = g('New Packages in "%s"', suite)
description = desc
keywords = "$suite, new packages, $section"
rss_alternate = 'newpkg?format=rss'
-%]
-<h1>New Packages in "[% suite %]"</h1>
+<h1>[% g('New Packages in "%s"', suite) %]</h1>
-<p>The following packages were added to suite <em>[% suite %]</em>[% " (section $section)" IF section %] in the [% organisation %] archive during the last 7 days.</p>
-<p>This information is also available as an <a href="newpkg?format=rss">RSS feed</a>
-<a href="newpkg?format=rss"><img src="http://planet.debian.org/rss10.png" alt="[RSS 1.0 Feed]"></a></p>
+<p>
+[% IF section;
+ g('The following packages were added to suite <em>%s</em> (section %s) in the %s archive during the last 7 days.',
+ suite, section, organisation);
+ ELSE;
+ g('The following packages were added to suite <em>%s</em> in the %s archive during the last 7 days.',
+ suite, organisation);
+ END;
+ IF opts.mode == 'byage';
+ g(' You can also display this list <a href="%s">sorted by name</a>.', make_url('newpkg','','mode',''));
+ ELSE;
+ g(' You can also display this list <a href="%s">sorted by age</a>.', make_url('newpkg','mode=byage'));
+ END %]</p>
+<p>[% g('This information is also available as an <a href="newpkg?format=rss">RSS feed</a>') %]
+<a href="newpkg?format=rss"><img src="http://planet.debian.org/common/rss10.png" alt="[% g('[RSS 1.0 Feed]') %]"></a></p>
[% FOREACH pkg IN new_packages %]
[% '<ul>' IF loop.first %]
<li><a href="[% pkg.0 %]">[% pkg.0 %]</a>
- -- [% pkg.-1 | html %][% " <em>($pkg.1 days old)</em>" IF pkg.1 %]
+ -- [% pkg.-1 | html %][% g(' <em>(%u days old)</em>', pkg.1) IF pkg.1 %]
[% '</ul>' IF loop.last %]
[% END %]
-<p class="psmallcenter"><a href="[% make_url('allpackages','') %]" title="List of all packages">All packages</a><br>
-(<a href="[% make_url('allpackages','','format','txt.gz' ) %]">compact compressed textlist</a>)<br>
- New packages in
+<p class="psmallcenter"><a href="[% make_url('allpackages','') %]" title="[% g('List of all packages') %]">[% g('All packages') %]</a><br>
+(<a href="[% make_url('allpackages','','format','txt.gz' ) %]">[% g('compact compressed textlist') %]</a>)<br>
+ [% g('New packages in ') %]
[% FOREACH s IN sections %]
[%- IF s == section -%]
[% s %]
[%- END -%]
[% ', ' UNLESS loop.last %]
[% END %]
-</p>
\ No newline at end of file
+</p>
+
+[%- PROCESS 'html/foot.tmpl' page_name=section ? "$section/newpkg" : "newpkg" -%]