From 0826daa3d7e40754506b392b395aaf66974c5598 Mon Sep 17 00:00:00 2001
From: Frank Lichtenheld
Date: Sat, 20 Oct 2007 22:58:24 +0200
Subject: [PATCH] html/{search,show}.tmpl: Fix string translations
Forgot to account for a conditional 'also' added to some
"provided by" strings.
Reported by Kobayashi Noritada
---
templates/html/search.tmpl | 3 ++-
templates/html/show.tmpl | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl
index 6572967..939380c 100644
--- a/templates/html/search.tmpl
+++ b/templates/html/search.tmpl
@@ -96,7 +96,8 @@ Please consider using a longer keyword or more keywords.', too_many_hits) %]
[% version %] [%- IF archive != main_archive %] [[% archive %]][% END %]: [% architectures.join(' ') %]
[% END %]
[% IF s.providers %]
-
[% 'also ' IF s.versions.size > 0 %][% g('provided by:') %] [% FOREACH provider IN s.providers %][% provider %][% ', ' UNLESS loop.last %][% END %]
+
[% IF s.versions.size > 0; g('also provided by:'); ELSE; g('provided by:'); END %]
+ [% FOREACH provider IN s.providers %][% provider %][% ', ' UNLESS loop.last %][% END %]
[% END %]
[% END %]
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index edca00b..808c517 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -242,7 +242,11 @@ Do not install it on a normal %s system.', organisation ) %]
[%- IF !is_old_pkgs -%]
[% desc -%]
[%- IF providers.pkgs.size > 0 -%]
- [% '
also a ' IF providers.also %][% g('virtual package provided by') %]
+ [% IF providers.also;
+ '
' _ g('also a virtual package provided by');
+ ELSE;
+ g('virtual package provided by');
+ END; %]
[% js_id = name %]
[% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %]
[% IF providers.pkgs.size > 10 %]
--
2.39.2