]> git.deb.at Git - deb/packages.git/commitdiff
html/search.tmpl: Fix a bug that some strings are not localized.
authorNoritada Kobayashi <nori1@dolphin.c.u-tokyo.ac.jp>
Mon, 21 Jan 2008 11:16:23 +0000 (20:16 +0900)
committerNoritada Kobayashi <nori1@dolphin.c.u-tokyo.ac.jp>
Mon, 21 Jan 2008 11:16:23 +0000 (20:16 +0900)
Use format strings instead of inline expansion of variables.

templates/html/search.tmpl

index 52e8c308e03d6bdf24127c61fe403aa9b054bb87..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.",