From: Frank Lichtenheld
Date: Sat, 20 Oct 2007 20:58:24 +0000 (+0200)
Subject: html/{search,show}.tmpl: Fix string translations
X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=0826daa3d7e40754506b392b395aaf66974c5598;p=deb%2Fpackages.git
html/{search,show}.tmpl: Fix string translations
Forgot to account for a conditional 'also' added to some
"provided by" strings.
Reported by Kobayashi Noritada
---
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 %]