From 944e9ffd2b7f527a3e96bb33a8a5b17f965a7815 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sun, 14 Oct 2007 03:09:30 +0200 Subject: [PATCH] Make all remaining templates translatable --- lib/Packages/DoShow.pm | 4 +- templates/html/download.tmpl | 71 +++++++++-------- templates/html/filelist.tmpl | 11 ++- templates/html/newpkg.tmpl | 35 +++++---- templates/html/search.tmpl | 59 +++++++------- templates/html/search_contents.tmpl | 53 +++++++------ templates/html/show.tmpl | 115 +++++++++++++++------------- templates/html/tag_index.tmpl | 10 +-- templates/rss/newpkg.tmpl | 16 +++- 9 files changed, 205 insertions(+), 169 deletions(-) diff --git a/lib/Packages/DoShow.pm b/lib/Packages/DoShow.pm index 51c97e7..bf84444 100644 --- a/lib/Packages/DoShow.pm +++ b/lib/Packages/DoShow.pm @@ -222,7 +222,7 @@ sub do_show { my @downloads; foreach my $a ( @archs ) { my %d = ( arch => $a, - pkgsize => sprintf( '%.1f', floor(($sizes_deb->{$a}/102.4)+0.5)/10 ), + pkgsize => floor(($sizes_deb->{$a}/102.4)+0.5)/10, instsize => $sizes_inst->{$a}, ); $d{version} = $versions->{$a} if $multiple_versions; @@ -311,7 +311,7 @@ sub do_show { my $path = "/$source_dir/$src_file_name"; push @{$contents{srcfiles}}, { server => $server, path => $path, filename => $src_file_name, - size => sprintf("%.1f", (floor(($src_file_size/102.4)+0.5)/10)), + size => floor(($src_file_size/102.4)+0.5)/10, md5sum => $src_file_md5 }; } diff --git a/templates/html/download.tmpl b/templates/html/download.tmpl index 4a405f2..4bd21e3 100644 --- a/templates/html/download.tmpl +++ b/templates/html/download.tmpl @@ -1,11 +1,11 @@ [%- PROCESS 'html/head.tmpl' - title_tag = "Package Download Selection -- $filename.file" + title_tag = g('Package Download Selection -- %s', $filename.file) description = desc keywords = "$suite, $archive, $section, $subsection, $version" - navigation = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/'), name=>suite }, - { prefix=>'Package:', url=>make_url(pkg,'','arch',undef), name=>pkg }, + navigation = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/'), name=>suite }, + { prefix=>g('Package:'), url=>make_url(pkg,'','arch',undef), name=>pkg }, { url=>make_url(pkg), name=>architecture }, - { name => 'Download' }, + { name => g('Download') }, ] -%] [%- PROCESS 'config/archive_layout.tmpl' -%] @@ -14,47 +14,49 @@ [%- PROCESS 'html/messages.tmpl' -%] [% IF architecture != 'all' %] -

Download Page for [% filename.file %] on [% architectures.$architecture %] machines

+

[% g('Download Page for %s on %s machines', filename.file, architectures.$architecture) %]

[% ELSE %] -

Download Page for [% filename.file %]

+

[% g('Download Page for %s', filename.file) %]

[% END %]
-

If you are running Debian, it's strongly suggested to use a -package manager like aptitude or -synaptic to download and install -packages, instead of doing so manually via this website.

-

You should be able to use any of the listed mirrors by adding a -line to your /etc/apt/sources.list like this:

+

[% g('If you are running %s, it is strongly suggested to use a +package manager like aptitude or +synaptic to download and install +packages, instead of doing so manually via this website.', + organisation, make_url('aptitude','','arch',''), make_url('synaptic','','arch','')) %]

+

[% g('You should be able to use any of the listed mirrors by adding a +line to your /etc/apt/sources.list like this:') %]

[% IF archive != "security" %]
 deb http://[% mirrors.$archive.europa.0 %] [% suite %] main [% section IF section != main_section %]
 
-

Replacing [% mirrors.$archive.europa.0 %] with the mirror in question. +

[% g('Replacing %s with the mirror in question.', mirrors.$archive.europa.0) %] [% ELSE %]

 deb http://security.debian.org/debian-security [% suite _ "/updates" %] main [% section IF section != main_section %]
 
[%- END %] [% IF suite == "experimental" %] -

Experimental package

-

Warning: This package is from the experimental distribution. +

[% g('Experimental package') %]

+

[% g('Warning: This package is from the experimental distribution. That means it is likely unstable or buggy, and it may even cause data loss. Please be sure to consult the changelog and other possible documentation before -using it.

+using it.') %]

[% END %] [% IF subsection == "debian-installer" %] -

debian-installer udeb package

-

Warning: This package is intended for the use in building +

[% g('debian-installer udeb package') %]

+

[% g('Warning: This package is intended for the use in building debian-installer images only. -Do not install it on a normal Debian system.

+Do not install it on a normal %s system.', organisation) %]

[% END %]
[%- SET a = mirrors.$archive -%] [% IF archive != 'security' %] -

You can download the requested file from the [% filename.directory %] subdirectory at any of these sites:

+

[% g('You can download the requested file from the %s subdirectory at any of these sites:', + filename.directory) %]

[% FOREACH continent IN [ 'north_america', 'south_america', 'asia', 'africa' ] %] [% IF a.$continent %] @@ -79,16 +81,16 @@ Do not install it on a normal Debian system.

[% END %]
[% ELSE %] -

You can download the requested file from the [% filename.directory %] subdirectory at:

+

[% g('You can download the requested file from the %s subdirectory at:', filename.directory) %]

-

Debian security updates are currently officially distributed only via security.debian.org

+

[% g('Debian security updates are currently officially distributed only via security.debian.org.') %]

[% END %]
[% IF a.mirror_list %] -

If none of the above sites are fast enough for you, -please see our complete mirror list.

+

[% g('If none of the above sites are fast enough for you, +please see our complete mirror list.', a.mirror_list ) %]

[% END %] [% IF a.unofficial_port %] @@ -96,22 +98,23 @@ please see our complete mirror list.

[% IF port.url_name; SET port.url = ports_url _ port.url_name _ '/'; END -%] -

Note that [% port.name %] is not officially included in the [% organisation %] archive yet, -but the [% port.name %] porter group keeps their archive in sync with the official archive as close as possible. -See the [% port.name %] ports page for current information.

+

[% g('Note that %s is not officially included in the %s archive yet, +but the %s porter group keeps their archive in sync with the official archive as close as possible. +See the %s ports page for current information.', + port.name, organisation, port.name, port.url, port.name) %]

[% END %] -

Note that in some browsers you will need to tell your browser you want the file saved to a file. -For example, in Firefox or Mozilla, you should hold the Shift key when you click on the URL.

+

[% g('Note that in some browsers you will need to tell your browser you want the file saved to a file. +For example, in Firefox or Mozilla, you should hold the Shift key when you click on the URL.') %]

-

More information on [% filename.file %]:

+

[% g('More information on %s:', filename.file) %]

- - - - + + + +
Exact Size [% size %] Byte ([% pkgsize %] [% pkgsize_unit %])
MD5 checksum [% md5sum %]
SHA1 checksum [% sha1 || 'Not Available' %]
SHA256 checksum [% sha256 || 'Not Available' %]
[% g('Exact Size') %] [% g('%s Byte (%s %s)', size, pkgsize, pkgsize_unit) %]
[% g('MD5 checksum') %] [% md5sum %]
[% g('SHA1 checksum') %] [% sha1 || g('Not Available') %]
[% g('SHA256 checksum') %] [% sha256 || g('Not Available') %]
[%- PROCESS 'html/foot.tmpl' -%] diff --git a/templates/html/filelist.tmpl b/templates/html/filelist.tmpl index dbf9fea..e450d5f 100644 --- a/templates/html/filelist.tmpl +++ b/templates/html/filelist.tmpl @@ -1,14 +1,13 @@ [%- PROCESS 'html/head.tmpl' - title_tag = "Filelist of package $pkg/$suite/$arch" - page_title = "Filelist of package $pkg in $suite of architecture $arch" + title_tag = g("Filelist of package %s/%s/%s", pkg, suite, arch) + page_title = g("Filelist of package %s in %s of architecture %s", pkg, suite, arch) keywords = "$suite, $arch, filelist" - navigation = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/'), name=>suite }, - { prefix=>'Package:', url=>make_url(pkg,'','arch',undef), name=>pkg }, + navigation = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/'), name=>suite }, + { prefix=>g('Package:'), url=>make_url(pkg,'','arch',undef), name=>pkg }, { url=>make_url(pkg), name=>arch }, - { name => 'Filelist' }, + { name => g('Filelist') }, ] -%] -

[% FOREACH file IN files %] [%- '
' IF loop.first -%]
diff --git a/templates/html/newpkg.tmpl b/templates/html/newpkg.tmpl
index 0f36b4c..aaff074 100644
--- a/templates/html/newpkg.tmpl
+++ b/templates/html/newpkg.tmpl
@@ -1,30 +1,37 @@
 [%- PROCESS 'html/head.tmpl'
-   title_tag = "New Packages in \"$suite\""
+   title_tag = g('New Packages in "%s"', suite)
    description = desc
    keywords = "$suite, new packages, $section"
    rss_alternate = 'newpkg?format=rss'
 -%]
-

New Packages in "[% suite %]"

+

[% g('New Packages in "%s"', suite) %]

-

The following packages were added to suite [% suite %][% " (section $section)" IF section %] in the [% organisation %] archive during the last 7 days. You can also display this list -[%- IF opts.mode == 'byage' %] - sorted by name -[%- ELSE %] - sorted by age -[%- END %].

-

This information is also available as an RSS feed -[RSS 1.0 Feed]

+

+[% IF section; + g('The following packages were added to suite %s (section %s) in the %s archive during the last 7 days.', + suite, section, organisation); + ELSE; + g('The following packages were added to suite %s in the %s archive during the last 7 days.', + suite, organisation); + END; + IF opts.mode == 'byage'; + g(' You can also display this list sorted by name.', make_url('newpkg','','mode','')); + ELSE; + g(' You can also display this list sorted by age.', make_url('newpkg','mode=byage')); + END %]

+

[% g('This information is also available as an RSS feed') %] +[% g('[RSS 1.0 Feed]') %]

[% FOREACH pkg IN new_packages %] [% '
    ' IF loop.first %]
  • [% pkg.0 %] - -- [% pkg.-1 | html %][% " ($pkg.1 days old)" IF pkg.1 %] + -- [% pkg.-1 | html %][% g(' (%u days old)', pkg.1) IF pkg.1 %] [% '
' IF loop.last %] [% END %] -

All packages
-(compact compressed textlist)
- New packages in +

[% g('All packages') %]
+([% g('compact compressed textlist') %])
+ [% g('New packages in ') %] [% FOREACH s IN sections %] [%- IF s == section -%] [% s %] diff --git a/templates/html/search.tmpl b/templates/html/search.tmpl index 78b4786..3427f2a 100644 --- a/templates/html/search.tmpl +++ b/templates/html/search.tmpl @@ -16,7 +16,7 @@ architectures_enc = html_encode(architectures_str); -%] [%- PROCESS 'html/head.tmpl' - title_tag = "Package Search Results -- $keyword_enc" + title_tag = g("Package Search Results -- %s", keyword_enc) print_search_field = 'packages' search_field_values = { keywords => search_keywords.join(' '), @@ -25,21 +25,22 @@ architectures => params.values.arch.no_replace.join(','), sections => params.values.section.no_replace.join(','), } - navigation = [ { name => 'Package Search Results' } ] + navigation = [ { name => g('Package Search Results') } ] -%]

[% UNLESS results %] -

You can try a different search on the Packages search page.

+

[% g('You can try a different search on the Packages search page.', + searchformurl) %]

[% IF opts.searchon != "names" && opts.exact %] -

You have searched only for words exactly matching your keywords. - You can try to search allowing subword matching +

[% g('You have searched only for words exactly matching your keywords. You can try to search allowing subword matching.', + make_search_url('',"keywords=$keyword_esc",'exact',0) ) %] [% END %] [% END %] [% IF opts.searchon == "names" && non_results %] -

[% non_results %] -results have not been displayed due to the search parameters.

+

[% g('%u results have not been displayed due to the search parameters.', + "$search_url$keyword_esc", non_results) %]

[% END %]
@@ -47,42 +48,45 @@ results have not been displayed due to the search parameters.

-[% suite_wording = suite_enc.match("^(default|all)$") ? "all suites" : "suite(s) $suite_enc"; - section_wording = (section_enc == 'all') ? "all sections" : "section(s) $section_enc"; - arch_wording = (architectures_enc == 'any') ? "all architectures" : "architecture(s) $architectures_enc"; +[%# @translators: I'm really sorry :/ %] +[% 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"); IF opts.searchon == "names"; - source_wording = opts.source ? "source packages" : "packages"; - msg = "You have searched for $source_wording that names contain $keyword_enc in $suite_wording, $section_wording, and $arch_wording ."; + 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.", + source_wording, keyword_enc, suite_wording, section_wording, arch_wording); ELSE; - exact_wording = opts.exact ? "" : " (including subword matching)"; - msg = "You have searched for $keyword_enc in packages names and descriptions in $suite_wording, $section_wording, and $arch_wording$exact_wording ."; + exact_wording = opts.exact ? "" : g(" (including subword matching)"); + msg = g("You have searched for %s in packages names and descriptions in %s, %s, and %s%s.", + keyword_enc, suite_wording, section_wording, arch_wording, exact_wording); END %]

[% msg %] [% IF results %] -Found [% results %] matching packages.

+[% g('Found %u matching packages.', results) %]

[% END %] [% IF too_many_hits %] [% IF opts.searchon != "names" %] -

Note that this only shows the best matches, sorted by relevance. +

[% g("Note that this only shows the best matches, sorted by relevance. If the first few packages don't match what you searched for, try using more keywords or alternative -keywords.

+keywords.") %]

[% ELSE %] -

Your search was too wide so we will only display exact matches. -At least [% too_many_hits %] results have been omitted and will not be displayed. -Please consider using a longer keyword or more keywords.

+

[% g('Your search was too wide so we will only display exact matches. +At least %u results have been omitted and will not be displayed. +Please consider using a longer keyword or more keywords.', too_many_hits) %]

[% END; END %] [% UNLESS results %] -

Sorry, your search gave no results

+

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

[% END %] [% FOREACH categories %] [% "

$name

" IF name %] [% FOREACH packages %] -

Package [% pkg %]

+

[% g('Package %s', pkg) %]

    [% FOREACH s IN suites; suite = s.suite %] @@ -92,7 +96,7 @@ Please consider using a longer keyword or more keywords.


    [% version %] [%- IF archive != main_archive %] [[% archive %]][% END %]: [% architectures.join(' ') %] [% END %] [% IF s.providers %] -
    [% 'also ' IF s.versions.size > 0 %]provided by: [% FOREACH provider IN s.providers %][% provider %][% ', ' UNLESS loop.last %][% END %] +
    [% 'also ' IF s.versions.size > 0 %][% g('provided by:') %] [% FOREACH provider IN s.providers %][% provider %][% ', ' UNLESS loop.last %][% END %] [% END %] [% END %] @@ -100,7 +104,7 @@ Please consider using a longer keyword or more keywords.

    [% END %] [% FOREACH src_packages %] -

    Source Package [% pkg %]

    +

    [% g('Source Package %s', pkg) %]

      [% FOREACH origins %] [% origin = (archive == main_archive) ? suite : "$suite/$archive"; @@ -108,9 +112,9 @@ Please consider using a longer keyword or more keywords.

    • [% origin %] ([% subsection %]): [% version %] [%- IF section %] [[% section %]][% END %] [%- IF real_archive %] [[% real_archive %]][% END %] -
      Binary packages: [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %] +
      [% g('Binary packages:') %] [% FOREACH binary IN binaries %][% binary %][% ', ' UNLESS loop.last %][% END %] [% IF binaries.size > 10 %] - + [% END %]
    • [% END %] @@ -120,7 +124,8 @@ Please consider using a longer keyword or more keywords.

      [% END %] [% IF skipped %] -

      [% skipped %] results have not been displayed because you requested only exact matches. +

      [% g('%u results have not been displayed because you requested only exact matches.', + make_search_url('',"keywords=$keyword_esc",'exact', 0), skipped) %] [% END %]

diff --git a/templates/html/search_contents.tmpl b/templates/html/search_contents.tmpl index 71a0019..513b451 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,24 @@ [%- 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"; +[%# @translators: I'm really sorry :/ %] +[% 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("files named"); ELSIF mode == 'exactfilename'; - wording = "filenames that contain"; + wording = g("filenames that contain"); END %] -

You have searched for [% wording %] [% keyword_enc %] in [% suite_wording %], [% section_wording %], and [% arch_wording %]. +

[% 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 +95,10 @@ Please consider using a longer keyword or more keywords.

- - + + [% FOREACH results %] [% file = html_encode(file); @@ -105,7 +112,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 +122,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 %] diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 1d9f655..082079e 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -11,15 +11,15 @@ -%] [%- suite_name = suite; SET suite_name = suite_name _ ' (' _ suite_aliases.$suite _ ')' IF suite_aliases.$suite; - nav_arr = [ { prefix=>'Distribution:', title=>'Overview over this suite', url=>make_url('/','','source',''), name=>suite_name }, ]; - nav_arr.push( { title => 'Source packages', url=>make_url('/'), name=>'Source' } ) IF is_source; - nav_arr.push( { prefix=>'Section:', title=>'All packages in this section', url=>make_url("$subsection/"), name=>subsection } ); - nav_arr.push( { prefix=>'Package:', name=>pkg } ); -%] + nav_arr = [ { prefix=>g('Distribution:'), title=>g('Overview over this suite'), url=>make_url('/','','source',''), name=>suite_name }, ]; + nav_arr.push( { title =>g('Source packages'), url=>make_url('/'), name=>g('Source') } ) IF is_source; + nav_arr.push( { prefix=>g('Section:'), title=>g('All packages in this section'), url=>make_url("$subsection/"), name=>subsection } ); + nav_arr.push( { prefix=>g('Package:'), name=>pkg } ); -%] [% desclang = 'en'; SET desclang = lang IF desc.$lang.long %] [%- PROCESS 'html/head.tmpl' - title_tag = ( is_source ? "Details of source package $pkg in $suite" - : "Details of package $pkg in $suite" ) + title_tag = is_source ? g('Details of source package %s in %s', pkg, suite) + : g('Details of package %s in %s', pkg, suite) description = desc.$desclang.short keywords = "$suite, $archive, $section, $subsection, $version" print_search_field = 'packages' @@ -42,43 +42,43 @@ [% IF src %]
-[% PROCESS menuitem prefix='Source:' title='Source package building this package' url=make_url(src.pkg,'','source','source') name=src.pkg %] +[% PROCESS menuitem prefix=g('Source:') title=g('Source package building this package') url=make_url(src.pkg,'','source','source') name=src.pkg %]
[% END %] [%- PROCESS 'html/messages.tmpl' -%] [% IF is_virtual %] -

Virtual Package: [% pkg %] +

[% g('Virtual Package: %s', pkg) %] [% ELSIF is_source %] -

Source Package: [% pkg %] ([% version %]) +

[% g('Source Package: %s (%s)', pkg, version) %] [% ELSE %] -

Package: [% pkg %] ([% versions.short %]) +

[% g('Package: %s (%s)', pkg, versions.short) %] [% END %] [%- PROCESS marker text=archive IF archive && archive != main_archive %] [%- PROCESS marker text=section IF section && section != main_section %] -[%- PROCESS marker text='essential' IF page.get_newest('essential') == 'yes' %]

+[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %] [% UNLESS is_virtual %]
-

Links for [% pkg %]

-

Debian Resources:

+

[% g('Links for %s', pkg) %]

+

[% g('Debian Resources:') %]

[% IF src %] -

Download Source Package [% src.pkg %]: +

[% g('Download Source Package %s:', src.url, src.pkg) %] [% FOREACH src.downloads %] [% '

' IF loop.last %] [% END %] [% IF src.downloads.size == 0 %] - Not found + [% g('Not found') %] [% END %] [% END %] [% IF maintainers.size == 1 -%] -

Maintainer:

+

[% g('Maintainer:') %]

[%- ELSE -%] -

Maintainers:

+

[% g('Maintainers:') %]

[%- END %] [%- FOREACH maintainers -%] [%- '' IF loop.last -%] [%- END -%] @@ -119,15 +119,15 @@ [% url = page.get_newest('url'); SET url = page.get_newest('homepage') IF page.get_newest('homepage'); IF url %] -

External Resources:

+

[% g('External Resources:') %]

[% END %] [% FOREACH sim IN similar %] [% IF loop.first %] -

Similar packages:

+

[% g('Similar packages:') %]

[% FOREACH tag IN tags %] [% IF loop.first -%]

- Tags: + [% g('Tags') %]: [%- END %] [% facet = tag.0; facet_name = debtags_voc.$facet; @@ -197,7 +198,7 @@ Do not install it on a normal Debian system.

[% END %] [% FOREACH providers %] - [% IF loop.first %]

Packages providing [% pkg %]

[% END %] + [% IF loop.first %]

[% g('Packages providing %s', pkg) %]

[% END %]
[% IF available %][% name %][% ELSE %][% name %][% END %]
[% desc %]
[% '
' IF loop.last %] @@ -206,7 +207,7 @@ Do not install it on a normal Debian system.

[% END %] [% FOREACH binaries %] - [% IF loop.first %]
The following binary packages are built from this source package:
[% END %] + [% IF loop.first %]
[% g('The following binary packages are built from this source package:') %]
[% END %]
[% IF available %][% name %][% ELSE %][% name %][% END %]
[% desc %]
[% '
' IF loop.last %] @@ -215,7 +216,7 @@ Do not install it on a normal Debian system.

[% FOREACH relations %] [% IF loop.first -%]
-

Other Packages Related to [% pkg %]

+

[% g('Other Packages Related to %s', pkg) %]

[% IF is_source %] @@ -241,11 +242,11 @@ Do not install it on a normal Debian system.

[%- IF !is_old_pkgs -%]
[% desc -%] [%- IF providers.pkgs.size > 0 -%] - [% '
also a ' IF providers.also %]virtual package provided by + [% '
also a ' IF providers.also %][% g('virtual package provided by') %] [% js_id = name %] [% FOREACH provider IN providers.pkgs %][% provider %][% ', ' UNLESS loop.last %][% END %] [% IF providers.pkgs.size > 10 %] - + [% END %] [% END %]
@@ -265,16 +266,21 @@ Do not install it on a normal Debian system.

Download [% pkg %]

-
- - [% '' IF versions.multiple %] +
Download for all available architectures
ArchitectureVersionPackage SizeInstalled SizeFiles
+ + + [% '' IF versions.multiple %] + + + + [%- END %] [% download_url = pkg _ '/' _ d.arch _ '/download' filelist_url = pkg _ '/' _ d.arch _ '/filelist' %] +[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] [% g('(unofficial port)') %][% END %] [% vnorm = d.version.replace( '\+b\d+$', '' ); vlatest = version.replace( '\+b\d+$', '' ); vup = vnorm.replace( '-[^-]+$', '' ); vuplatest = vlatest.replace( '-[^-]+$', '' ); IF vnorm == vlatest; @@ -285,12 +291,12 @@ Do not install it on a normal Debian system.

version_class = 'vold'; END %] [% "" IF versions.multiple %] - + @@ -307,13 +313,13 @@ Do not install it on a normal Debian system.

Download [% pkg %]

-
[% g('Download for all available architectures') %]
[% g('Architecture') %]'_ g('Version') _'[% g('Package Size') %][% g('Installed Size') %][% g('Files') %]
[% d.arch %] -[%- SET a = d.archive; IF mirrors.$a.unofficial_port %] (unofficial port)[% END %]$d.version[% d.pkgsize %] kB[% d.instsize %] kB[% g('%.1f kB', d.pkgsize) %][% g('%u kB', d.instsize) %] [% IF d.contents_avail %] - [list of files] + [[% g('list of files') %]] [% ELSE %] - no current information + [% g('no current information') %] [% END %]
- +
FileSize (in kB)md5sum
+ [%- END %] - + @@ -326,10 +332,11 @@ Do not install it on a normal Debian system.

SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info; IF vcs_info; %]
-
Debian Package Source Repository (VCS: [% vcs_name %])
+
[% g('Debian Package Source Repository (VCS: %s)', + make_url(vcs_pkg,'','source',''), vcs_name ) %]
[% vcs_info %]
[% IF vcs_link %] -
Debian Package Source Repository (Browsable)
[% vcs_link %]
+
[% g('Debian Package Source Repository (Browsable)') %]
[% vcs_link %]
[% END %]
[% END; END %] diff --git a/templates/html/tag_index.tmpl b/templates/html/tag_index.tmpl index 1df4853..5f84c5e 100644 --- a/templates/html/tag_index.tmpl +++ b/templates/html/tag_index.tmpl @@ -1,13 +1,13 @@ [% PROCESS 'html/head.tmpl' - title_tag = "Overview of available Debian Package Tags" + title_tag = g("Overview of available Debian Package Tags") keywords = debtags - navigation = [ { name=>'About', url=>"/about/" }, - { name=>'Debtags' } ] + navigation = [ { name=>g('About'), url=>"/about/" }, + { name=>g('Debtags') } ] %] -

Overview of available Debian Package Tags

+

[% g('Overview of available Debian Package Tags') %]

[% FOREACH facet IN facets %] -

Facet: [% facet %]

+

[% g('Facet: %s', facet) %]

[% vocabulary.$facet.html_description.0 %]

[% vocabulary.$facet.html_description.1 %] diff --git a/templates/rss/newpkg.tmpl b/templates/rss/newpkg.tmpl index 476202d..4735c44 100644 --- a/templates/rss/newpkg.tmpl +++ b/templates/rss/newpkg.tmpl @@ -13,11 +13,19 @@ SET root_url = "$root_url$section/" IF section -%] -New [% organisation %] Packages +[% g('New %s Packages', organisation) %] [% root_url %]newpkg -Packages that were added to the [% suite %] [% organisation %] archive [% " (section \"$section\")" IF section %] during the last 7 days. -en -Copyright [% timestamp.year %], [% copyright.name %] + +[%- IF section; + g('Packages that were added to the %s %s archive (section "%s") during the last 7 days.', + suite, organisation, section); + ELSE; + g('Packages that were added to the %s %s archive during the last 7 days.', + suite, organisation, section); + END; -%] + +[% lang %] +[% g('Copyright ©') %] [% timestamp.year %], [% copyright.name %] [% rss_timestamp %] [% contact.mail %] weekly -- 2.39.2

[% g('File') %][% g('Size (in kB)') %][% g('MD5 checksum') %]
[% filename %][% size %][% g('%.1f kB', size) %] [% md5sum %]