]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/suite_index.tmpl
Make language override URLs more robust
[deb/packages.git] / templates / html / suite_index.tmpl
index 465c6930ae0e125483a3a7e78b310457e4f10f2a..9be0784c1a8dcf33ece9ceab0d21cbdabb03e31f 100644 (file)
@@ -1,12 +1,12 @@
 [% nav_arr = [ { name=> suite, url=>make_url('/','','suite',suite) } ];
-   nav_arr.push( { name => 'Source' } ) IF source;
-   nav_arr.push( { name => 'Index' } );
+   nav_arr.push( { name => g('Source') } ) IF source;
+   nav_arr.push( { name => g('Index') } );
    PROCESS 'html/head.tmpl' 
-       title_tag = "List of sections in \"$suite\""
+       title_tag = g('List of sections in "%s"', suite)
        keywords = suite
        navigation = nav_arr
 %]
-[% PROCESS 'html/menu.inc' %]
+[% PROCESS 'html/util.inc' %]
 [% FOREACH s IN suites %]
    [% '<div id="pothers">' IF loop.first %]
    [%- IF s == suite -%]
@@ -17,7 +17,7 @@
    [%- '</div>' IF loop.last -%]
 [% END %]
 
-<h1>List of sections in "[% suite %]"</h1>
+<h1>[% g('List of sections in "%s"', suite) %]</h1>
 
 [% FOREACH subsections %]
   [% '<div id="lefthalfcol"><dl>' IF loop.first %]
   [% '</dl></div>' IF loop.last %]
 [% END %]
 
+[% link_title = source ? g('List of all source packages')
+                         : g('List of all packages');
+   link_text = source ? g('All source packages')
+                        : g('All packages');
+-%]
 <p class="psmallcenter">
-       <a href="allpackages" title="List of all [% "source " IF source %]packages">All [% "source " IF source %]packages</a><br>
-       (<a href="allpackages?format=txt.gz">compact compressed textlist</a>)
+       <a href="allpackages" title="[% link_title %]">[% link_text %]</a><br>
+       (<a href="allpackages?format=txt.gz">[% g('compact compressed textlist') %]</a>)
 </p>
 
-[%- PROCESS 'html/foot.tmpl' -%]
+[%- PROCESS 'html/foot.tmpl' page_name= source ? "source/$suite/" : "$suite/" -%]