From: Noritada Kobayashi Date: Mon, 21 Jan 2008 11:16:23 +0000 (+0900) Subject: html/search.tmpl: Fix a bug that some strings are not localized. X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=48f3321140ad5bcc857d33ca335244f4685afdb1;p=deb%2Fpackages.git html/search.tmpl: Fix a bug that some strings are not localized. Use format strings instead of inline expansion of variables. --- 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.",