]> git.deb.at Git - deb/packages.git/blobdiff - templates/html/show.tmpl
Make all remaining templates translatable
[deb/packages.git] / templates / html / show.tmpl
index 1d9f655eb3835620a78696cfe53ef6e473395520..082079efcd7f0e76b3784a65337e87ef3acaaa57 100644 (file)
 -%]
 [%- 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'
 
 [% IF src %]
 <div id="psource">
-[% 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 %]
 </div>
 [% END %]
 
 [%- PROCESS 'html/messages.tmpl' -%]
 
 [% IF is_virtual %]
-<h1>Virtual Package: [% pkg %]
+<h1>[% g('Virtual Package: %s', pkg) %]
 [% ELSIF is_source %]
-<h1>Source Package: [% pkg %] ([% version %])
+<h1>[% g('Source Package: %s (%s)', pkg, version) %]
 [% ELSE %]
-<h1>Package: [% pkg %] ([% versions.short %])
+<h1>[% 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' %]</h1>
+[%- PROCESS marker text=g('essential') IF page.get_newest('essential') == 'yes' %]</h1>
 
 [% UNLESS is_virtual %]
 <div id="pmoreinfo">
-<h2>Links for [% pkg %]</h2>
-<h3>Debian Resources:</h3>
+<h2>[% g('Links for %s', pkg) %]</h2>
+<h3>[% g('Debian Resources:') %]</h3>
 <ul>
-<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">Bug Reports</a></li>
+<li><a href="[% (is_source ? src_bugs_url : bugs_url) _ pkg | uri %]">[% g('Bug Reports') %]</a></li>
 
 [% IF src.pkg -%]
-<li><a href="[% pts_url _ src.pkg | uri %]">Developer Information (PTS)</a></li>
+<li><a href="[% pts_url _ src.pkg | uri %]">g('Developer Information (PTS)') %]</a></li>
 [% ELSIF is_source %]
-<li><a href="[% pts_url _ pkg | uri %]">Developer Information (PTS)</a></li>
+<li><a href="[% pts_url _ pkg | uri %]">g('Developer Information (PTS)') %]</a></li>
 [%- END %]
 
 [% IF files && (!archive or archive == main_archive or archive == 'security') %]
-<li><a href="[% changelogs_url _ files.changelog.path %]">Debian Changelog</a></li>
-<li><a href="[% changelogs_url _ files.copyright.path %]">Copyright File</a></li>
+<li><a href="[% changelogs_url _ files.changelog.path %]">[% g('%s Changelog', organisation) %]</a></li>
+<li><a href="[% changelogs_url _ files.copyright.path %]">[% g('Copyright File') %]</a></li>
 [% END %]
 
 [% IF vcs_link %]
-<li><a href="[% vcs_link %]" class="pvcslink">Debian Source Repository</a>
+<li><a href="[% vcs_link %]" class="pvcslink">[% g('Debian Source Repository') %]</a>
 [%- FOREACH vcs IN known_vcs;
        vcs_id = vcs.0; vcs_name = vcs.1; vcs_pkg = vcs.2;
        vcs_info = page.get_newest("vcs-$vcs_id");
 </ul>
 
 [% IF src %]
-  <p>Download Source Package <a href="[% src.url %]">[% src.pkg %]</a>:
+  <p>[% g('Download Source Package <a href="%s">%s</a>:', src.url, src.pkg) %]
   [% FOREACH src.downloads %]
     [% '<ul>' IF loop.first %]
     <li><a href="[% server _ path %]">[[% name %]]</a></li>
     [% '</ul>' IF loop.last %]
   [% END %]
   [% IF src.downloads.size == 0 %]
-  Not found
+  [% g('Not found') %]
   [% END %]
 [% END %]
 
 [% IF maintainers.size == 1 -%]
-  <h3>Maintainer:</h3>
+  <h3>[% g('Maintainer:') %]</h3>
 [%- ELSE -%]
-  <h3>Maintainers:</h3>
+  <h3>[% g('Maintainers:') %]</h3>
 [%- END %]
 [%- FOREACH maintainers -%]
   [%- '<ul>' IF loop.first -%]
        <li><a href="mailto:[% mail %]">[% name | html %]</a>
-       (<a href="[% ddpo_url _ mail %]" title="An overview over the maintainer's packages and uploads">QA Page</a>)
+       (<a href="[% ddpo_url _ mail %]" title="[% g("An overview over the maintainer's packages and uploads") %]">[% g('QA Page') %]</a>)
        </li>
   [%- '</ul>' IF loop.last -%]
 [%- END -%]
 [% url = page.get_newest('url');
    SET url = page.get_newest('homepage') IF page.get_newest('homepage');
    IF url %]
-<h3>External Resources:</h3>
+<h3>[% g('External Resources:') %]</h3>
 <ul>
-<li><a href="[% url | uri %]">Homepage</a> [[% extract_host(url) %]]</li>
+<li><a href="[% url | uri %]">[% g('Homepage') %]</a> [[% extract_host(url) %]]</li>
 </ul>
 [% END %]
 
 [% FOREACH sim IN similar %]
        [% IF loop.first %]
-       <h3>Similar packages:</h3>
+       <h3>[% g('Similar packages:') %]</h3>
        <ul>
        [% END %]
        <li><a href="/[% sim %]">[% sim %]</a></li>
 <div class="pconstantnag">
 [% IF suite == "experimental" %]
 [% changelog_link = 'changelog';
-   changelog_link = "<a href='$changelogs_url$files.changelog.path'>changelog</a>" %] 
-<h2>Experimental package</h2>
-<p>Warning: This package is from the <strong>experimental</strong> distribution.
+   changelog_link = "$changelogs_url$files.changelog.path" %] 
+<h2>[% g('Experimental package') %]</h2>
+<p>[% g('Warning: This package is from the <strong>experimental</strong> distribution.
 That means it is likely unstable or buggy, and it may even cause data loss.
-Please be sure to consult the [% changelog_link %] and other possible documentation before
-using it.</p>
+Please be sure to consult the <a href="%s">changelog</a> and other possible documentation before
+using it.', changelog_link) %]</p>
 [% END %]
 [% IF subsection == "debian-installer" %]
-<h2>debian-installer udeb package</h2>
-<p>Warning: This package is intended for the use in building
+<h2>[% g('debian-installer udeb package') %]</h2>
+<p>[% g('Warning: This package is intended for the use in building
 <a href="http://www.debian.org/devel/debian-installer">debian-installer</a> images only.
-Do not install it on a normal Debian system.</p>
+Do not install it on a normal %s system.', organisation ) %]</p>
 [% END %]
 </div>
 [% END %]
@@ -169,14 +169,15 @@ Do not install it on a normal Debian system.</p>
        <p>[% desc.$desclang.long %]
        [% END %]
 [% ELSE %]
-       <p>This is a <em>virtual package</em>. See the <a href="[% policy_url %]">Debian policy</a> for a <a href="[% policy_url %]ch-binary.html#s-virtual_pkg">definition of virtual packages</a>.</p>
+       <p>[% g('This is a <em>virtual package</em>. See the <a href="%s">Debian policy</a> for a <a href="%sch-binary.html#s-virtual_pkg">definition of virtual packages</a>.',
+               policy_url, policy_url) %]</p>
 [% END %]
 </div> <!-- end pdesc -->
 
 [% FOREACH tag IN tags %]
   [% IF loop.first -%]
     <div id="ptags"><p>
-    <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">Tags</a>:
+    <a href="[% tags_url %]edit.html?pkg=[% pkg | uri %]">[% g('Tags') %]</a>:
   [%- END %]
   [% facet = tag.0;
      facet_name = debtags_voc.$facet;
@@ -197,7 +198,7 @@ Do not install it on a normal Debian system.</p>
 [% END %]
 
 [% FOREACH providers %]
-  [% IF loop.first %]<div id="pdeps"><h2>Packages providing [% pkg %]</h2><dl>[% END %]
+  [% IF loop.first %]<div id="pdeps"><h2>[% g('Packages providing %s', pkg) %]</h2><dl>[% END %]
     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
     <dd>[% desc %]</dd>
   [% '</dl></div>' IF loop.last %]
@@ -206,7 +207,7 @@ Do not install it on a normal Debian system.</p>
 [% END %]
 
 [% FOREACH binaries %]
-  [% IF loop.first %]<div id="pbinaries">The following binary packages are built from this source package:<dl>[% END %]
+  [% IF loop.first %]<div id="pbinaries">[% g('The following binary packages are built from this source package:') %]<dl>[% END %]
     <dt>[% IF available %]<a href="[% make_url(name,'','source','') %]">[% name %]</a>[% ELSE %][% name %][% END %]</dt>
     <dd>[% desc %]</dd>    
   [% '</dl></div>' IF loop.last %]
@@ -215,7 +216,7 @@ Do not install it on a normal Debian system.</p>
 [% FOREACH relations %]
   [% IF loop.first -%]
     <div id="pdeps">
-    <h2>Other Packages Related to [% pkg %]</h2>
+    <h2>[% g('Other Packages Related to %s', pkg) %]</h2>
 
     <table id="pdeplegend" class="visual" summary="legend"><tr>
     [% IF is_source %]
@@ -241,11 +242,11 @@ Do not install it on a normal Debian system.</p>
       [%- IF !is_old_pkgs -%]
         <dd>[% desc -%]
         [%- IF providers.pkgs.size > 0 -%]
-          [% '<br>also a ' IF providers.also %]virtual package provided by
+          [% '<br>also a ' IF providers.also %][% g('virtual package provided by') %]
          [% js_id = name %]
            <span id="js_[% js_id %]" class="p_js_elem"></span> <span id="html_[% js_id %]">[% FOREACH provider IN providers.pkgs %]<a href="[% make_url(provider,'','suite',suite,'source','') %]">[% provider %]</a>[% ', ' UNLESS loop.last %][% END %]</span>
        [% IF providers.pkgs.size > 10 %]
-       <script type="text/javascript">init_toggle_elem("[% js_id %]","[% providers.pkgs.size %] providing packages")</script>
+       <script type="text/javascript">init_toggle_elem("[% js_id %]",[% g('%u providing packages', providers.pkgs.size) %]</script>
        [% END %]
         [% END %]
         </dd>
@@ -265,16 +266,21 @@ Do not install it on a normal Debian system.</p>
     <div id="pdownload">
     <h2>Download [% pkg %]</h2>
     
-    <table summary="The download table links to the download of the package and a file overview. In addition it gives information about the package size and the installed size.">
-    <caption class="hidecss">Download for all available architectures</caption>
-    <tr><th>Architecture</th>[% '<th>Version</th>' IF versions.multiple %]<th>Package Size</th><th>Installed Size</th><th>Files</th></tr>
+    <table summary="[% g('The download table links to the download of the package and a file overview. In addition it gives information about the package size and the installed size.') %]">
+    <caption class="hidecss">[% g('Download for all available architectures') %]</caption>
+    <tr><th>[% g('Architecture') %]</th>
+       [% '<th>'_ g('Version') _'</th>' IF versions.multiple %]
+       <th>[% g('Package Size') %]</th>
+       <th>[% g('Installed Size') %]</th>
+       <th>[% g('Files') %]</th>
+    </tr>
   [%- END %]
 
 <tr>
 [% download_url = pkg _ '/' _ d.arch _ '/download'
    filelist_url = pkg _ '/' _ d.arch _ '/filelist' %]
 <th><a href="[% make_url(download_url) | uri %]">[% d.arch %]</a>
-[%- SET a = d.archive; IF mirrors.$a.unofficial_port  %] <strong>(unofficial port)</strong>[% END %]</th>
+[%- SET a = d.archive; IF mirrors.$a.unofficial_port  %] <strong>[% g('(unofficial port)') %]</strong>[% END %]</th>
 [% 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.</p>
        version_class = 'vold';
    END %]
 [% "<td class='$version_class'>$d.version</td>" IF versions.multiple %]
-<td class="size">[% d.pkgsize %]&nbsp;kB</td><td class="size">[% d.instsize %]&nbsp;kB</td>
+<td class="size">[% g('%.1f&nbsp;kB', d.pkgsize) %]</td><td class="size">[% g('%u&nbsp;kB', d.instsize) %]</td>
 <td>
 [% IF d.contents_avail %]
-  [<a href="[% make_url(filelist_url) | uri %]">list of files</a>]
+  [<a href="[% make_url(filelist_url) | uri %]">[% g('list of files') %]</a>]
 [% ELSE %]
-  no current information
+  [% g('no current information') %]
 [% END %]
 </td>
 </tr>
@@ -307,13 +313,13 @@ Do not install it on a normal Debian system.</p>
     <div id="pdownload">
     <h2>Download [% pkg %]</h2>
     
-    <table summary="Download information for the files of this source package">
-    <tr><th>File</th><th>Size (in kB)</th><th>md5sum</th></tr>
+    <table summary="[% g('Download information for the files of this source package') %]">
+    <tr><th>[% g('File') %]</th><th>[% g('Size (in kB)') %]</th><th>[% g('MD5 checksum') %]</th></tr>
   [%- END %]
 
 <tr>
 <td><a href="[% server _ path %]">[% filename %]</a></td>
-<td>[% size %]</td>
+<td>[% g('%.1f&nbsp;kB', size) %]</td>
 <td class="md5sum">[% md5sum %]</td>
 </tr>
 
@@ -326,10 +332,11 @@ Do not install it on a normal Debian system.</p>
        SET vcs_info = page.get_newest("x-vcs-$vcs_id") UNLESS vcs_info;
        IF vcs_info; %]
 <dl>
-<dt>Debian Package Source Repository (<acronym title="Version Control System">VCS</acronym>: <a href="[% make_url(vcs_pkg,'','source','') %]">[% vcs_name %]</a>)</dt>
+<dt>[% g('Debian Package Source Repository (<acronym title="Version Control System">VCS</acronym>: <a href="%s">%s</a>)',
+       make_url(vcs_pkg,'','source',''), vcs_name ) %]</dt>
 <dd><a href="[% vcs_info %]" class="pvcslink">[% vcs_info %]</a></dd>
 [% IF vcs_link %]
-<dt>Debian Package Source Repository (Browsable)</dt><dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
+<dt>[% g('Debian Package Source Repository (Browsable)') %]</dt><dd><a href="[% vcs_link %]" class="pvcslink">[% vcs_link %]</a></dd>
 [% END %]
 </dl>
 [% END; END %]