]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/search.tmpl
html/search.tmpl: Fix a bug that some strings are not localized.
[deb/packages.git] / templates / html / search.tmpl
index 2cf2aeb1a249fe6d7f033b7efcc97dd92788f3aa..f7eace51ae2cb803afc13e2665125017c29b15f0 100644 (file)
@@ -48,9 +48,9 @@
 
 <div id="psearchres">
 
-[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) <em>$suite_enc</em>");
-   section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) <em>$section_enc</em>");
-   arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) <em>$architectures_enc</em>");
+[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) <em>%s</em>", suite_enc);
+   section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) <em>%s</em>", section_enc);
+   arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) <em>%s</em>", architectures_enc);
     IF opts.searchon == "names";
        source_wording = opts.source ? g("source packages") : g("packages");
        msg = g("You have searched for %s that names contain <em>%s</em> in %s, %s, and %s.",
       [%- IF real_archive %] [<strong class="pmarker">[% real_archive %]</strong>][% END %]
     <br>[% g('Binary packages:') %] <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]" class="binaries">[% FOREACH binary IN binaries.sort %]<a href="[% make_url(binary,'','source','','suite',suite,'archive',archive,'arch','','archive','') %]">[% binary %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
        [% IF binaries.size > 10 %]
-       <script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('%u binary packages', binaries.size) %]")</script>
+       <script type="text/javascript">init_toggle_elem("[% js_id %]","[% g('show %u binary packages', binaries.size) %]","[% g('hide %u binary packages', binaries.size) %]")</script>
        [% END %]
     </li>
   [% END %]