X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=templates%2Fhtml%2Fsearch_contents.tmpl;h=3388fe3a2cf5a69f67fac699f49493106a854bd0;hp=71a0019362946b713ef6c126635747c19fc9bcc6;hb=HEAD;hpb=43b89ddd54b60021713101a0c61e58608e032014 diff --git a/templates/html/search_contents.tmpl b/templates/html/search_contents.tmpl index 71a0019..3388fe3 100644 --- a/templates/html/search_contents.tmpl +++ b/templates/html/search_contents.tmpl @@ -11,10 +11,10 @@ architectures_enc = html_encode(architectures_str); -%] [%- PROCESS 'html/head.tmpl' - title_tag = "Package Contents Search Results -- $keyword_enc" + title_tag = g("Package Contents Search Results -- %s", keyword_enc) keywords = "$suite" print_search_field = 'packages' - navigation = [ { title => '', name => 'Package Contents Search Results', url => '' } ] + navigation = [ { title => '', name => g('Package Contents Search Results'), url => '' } ] search_field_values = { keywords => search_keywords.join(' '), searchon => 'contents', @@ -30,19 +30,22 @@ -

Search in other suite: +

[% g('Search in other suite:') %] [% FOREACH s IN all_suites %] [% IF s != suite %] [[% s %]] @@ -52,12 +55,13 @@ [% END %] [% UNLESS search_architectures.size == 1 || all_architectures.size == 1 %] -

Limit search to a specific architecture: +

[% g('Limit search to a specific architecture:') %] [% FOREACH a IN all_architectures %] [[% a %]][% END %] [% END %] [% IF search_architectures.size == 1 %] -

Search in all architectures +

[% g('Search in all architectures', + make_search_url('',"keywords=$keyword_esc",'arch','any')) %] [% END %] @@ -65,23 +69,23 @@ [%- PROCESS 'html/messages.tmpl' -%]

-[% suite_wording = "suite $suite"; - section_wording = ( section_enc == 'all' ? "all sections" : "section(s) $section_enc" ); - arch_wording = ( architectures_enc == 'any' ? "all architectures" : "architecture(s) $architectures_enc" ); - wording = "paths that end with"; +[% 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) ); + wording = g("paths that end with"); IF mode == 'filename'; - wording = "files named"; + wording = g("filenames that contain"); ELSIF mode == 'exactfilename'; - wording = "filenames that contain"; + wording = g("files named"); END %] -

You have searched for [% wording %] [% keyword_enc %] in [% suite_wording %], [% section_wording %], and [% arch_wording %]. +[%# @translators: I'm really sorry :/ %] +

[% g('You have searched for %s %s in suite %s, %s, and %s.', + wording, keyword_enc, suite, section_wording, arch_wording) %] [% IF results.size %] -Found [% results.size %] results. +[% g('Found %u results.', results.size) %] [% IF too_many_hits %] -

Note: Your search was too wide so we will only display only the first about 100 matches. -Please consider using a longer keyword or more keywords.

+

[% g('Note: Your search was too wide so we will only display only the first about 100 matches. Please consider using a longer keyword or more keywords.') %]

[% END %] @@ -90,8 +94,10 @@ Please consider using a longer keyword or more keywords.

- - + + [% FOREACH results %] [% file = html_encode(file); @@ -105,7 +111,7 @@ Please consider using a longer keyword or more keywords.

+ [% END %]
FilePackages + [%- g('File') %] + [%- g('Packages') %]
[% FOREACH packages %] [% arch_str = architectures.join(', '); - SET arch_str = "not $arch_str" IF ( arch_str && architectures_are_rev ); + SET arch_str = g("not %s", arch_str) IF ( arch_str && architectures_are_rev ); SET arch_str = " [$arch_str]" IF arch_str; pkg_esc = uri_escape(pkg) %] [% pkg | html %][% arch_str %][% ', ' UNLESS loop.last %] @@ -115,14 +121,14 @@ Please consider using a longer keyword or more keywords.

[% END %] [% IF results.size > 20 %] -
FilePackages
[% g('File') %][% g('Packages') %]
[% ELSE %] -

Sorry, your search gave no results

+

[% g('Sorry, your search gave no results') %]

[% END %]