]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/newpkg.tmpl
Move patch-tracking.d.net to patch-tracker.d.o and update names (Closes: #545262)
[deb/packages.git] / templates / html / newpkg.tmpl
index 0f36b4cf807aa7b568f58113791801056ef4cc2e..e8c5d3ee0af12d4aee6ac79dccfe699029f6be7e 100644 (file)
@@ -1,30 +1,37 @@
 [%- PROCESS 'html/head.tmpl'
 [%- 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'
 -%]
    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. You can also display this list
-[%- IF opts.mode == 'byage' %]
- <a href="[% make_url('newpkg','','mode','') %]">sorted by name</a>
-[%- ELSE %]
- <a href="[% make_url('newpkg','mode=byage') %]">sorted by age</a>
-[%- END %].</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/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>
 
 [% 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 %]
 
        [% '</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 %]
 [% FOREACH s IN sections %]
   [%- IF s == section -%]
 [% s %]
@@ -35,4 +42,4 @@
 [% END %]
 </p>
 
 [% END %]
 </p>
 
-[%- PROCESS 'html/foot.tmpl' -%]
+[%- PROCESS 'html/foot.tmpl' page_name=section ? "$section/newpkg" : "newpkg" -%]