From 48f3321140ad5bcc857d33ca335244f4685afdb1 Mon Sep 17 00:00:00 2001 From: Noritada Kobayashi Date: Mon, 21 Jan 2008 20:16:23 +0900 Subject: [PATCH] html/search.tmpl: Fix a bug that some strings are not localized. Use format strings instead of inline expansion of variables. --- templates/html/search.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 52e8c30..f7eace5 100644 --- a/templates/html/search.tmpl +++ b/templates/html/search.tmpl @@ -48,9 +48,9 @@
-[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) $suite_enc"); - section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) $section_enc"); - arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) $architectures_enc"); +[% suite_wording = suite_enc.match("^(default|all)$") ? g("all suites") : g("suite(s) %s", suite_enc); + section_wording = (section_enc == 'all') ? g("all sections") : g("section(s) %s", section_enc); + arch_wording = (architectures_enc == 'any') ? g("all architectures") : g("architecture(s) %s", 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 %s in %s, %s, and %s.", -- 2.39.2