]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/suite_index.tmpl
Make all index pages translatable
[deb/packages.git] / templates / html / suite_index.tmpl
index 465c6930ae0e125483a3a7e78b310457e4f10f2a..baf70e4c4c6d2cb59aadc321b54d1579bab6588e 100644 (file)
@@ -1,8 +1,8 @@
 [% 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
 %]
@@ -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 = is_source ? g('List of all source packages')
+                         : g('List of all packages');
+   link_text = is_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' -%]