- Package:
- www.debian.org
- Source:
- www.debian.org
- Submitter:
- Paul Wise
- Date:
- 2024-05-25 09:15:03 UTC
- Severity:
- minor
- Tags:
The short descriptions in the 'Other Packages Related to blah' section are not translated. Compare the short description for cpp on these two pages: http://packages.debian.org/ja/sid/gcc http://packages.debian.org/ja/sid/cpp The links in the 'Other Packages Related to blah' section point to URLs like: http://packages.debian.org/ja/sid/gcc Whereas the language links at the bottom point to URLs like http://packages.debian.org/sid/gcc?lang=ja http://packages.debian.org/ja/sid/gcc?lang=ja The second of those URLs returns an error page: two or more packages specified (gcc ja) It would be better if all the pages used /lang/suite/pkg for consistency and to prevent that error page from showing up. The list of languages at the bottom does not show all the languages that the package description is translated to: http://packages.debian.org/sid/gcc http://packages.debian.org/ja/sid/gcc Also, it would be useful to link to the ddtp webpage like so: <a href="http://www.debian.org/international/l10n/ddtp">Translate this package description to your language</a> Not sure which part of the page, but probably just below the list of languages that are available.
Yeah, known issue. Yeah, that is really a bug, will investigate that. What do you mean? The current language is omitted, that is not a bug. Anything else? Hmm, will consider it. Gruesse,
Woops, that was a mistake on my part - didn't connect "日本語 (Nihongo)" with Japanese in my mind, and didn't see the "Japanese" tooltip.
That error should be fixed now. Please report if you find otherwise. The remaining issue is that some links will lose the language, but it should be few now. Gruesse,
The remaining i18n issues with packages.d.o seem to be: The list of languages down the bottom does not point to the DDTP project to encourage people to translate package descriptions. The URLs in the list of "Similar packages" on the right sidebar does not include the current language for the page. For example: http://packages.debian.org/pt/sid/gcc links to http://packages.debian.org/gcc-4.3 instead of http://packages.debian.org/pt/gcc-4.3 This can be fixed by the following naive patch: diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl index 48fdb45..065b964 100644 --- a/templates/html/show.tmpl +++ b/templates/html/show.tmpl @@ -154,7 +154,7 @@ <h3>[% g('Similar packages:') %]</h3> <ul> [% END %] - <li><a href="/[% sim %]">[% sim %]</a></li> + <li><a href="/[% IF po_lang && po_lang != "en" %][% po_lang %]/[% END %][% sim %]">[% sim %]</a></li> [% '</ul>' IF loop.last %] [% END %]
tags 442083 + patch
thanks
Here is a naive patch for this. It places the DDTP advertisement just
below non-translated package descriptions and also in the footer.
diff --git a/templates/html/foot.tmpl b/templates/html/foot.tmpl
index cbabd66..0605749 100644
--- a/templates/html/foot.tmpl
+++ b/templates/html/foot.tmpl
@@ -23,6 +23,9 @@ Total page evaluation took [% benchmark %]<br>
[% END %]
<hr class="hidecss">
+<a href="http://www.debian.org/intl/l10n/ddtp">[% g('Help Debian translate package descriptions to your language.') %]</a>
+
+<hr class="hidecss">
<div id="fineprint" class="bordertop">
<div id="impressum">
<p>[% g('To report a problem with the web site, e-mail <a href="mailto:%s">%s</a>. For other contact information, see the %s <a href="%s">contact page</a>.',
diff --git a/templates/html/show.tmpl b/templates/html/show.tmpl
index 48fdb45..beaaad5 100644
--- a/templates/html/show.tmpl
+++ b/templates/html/show.tmpl
@@ -188,6 +188,9 @@
[% IF desc.$desclang.short %]
<h2>[% desc.$desclang.short %]</h2>
<p>[% desc.$desclang.long %]
+ [% IF desclang != po_lang %]
+ <a href="http://www.debian.org/intl/l10n/ddtp">[% g('Help Debian translate package descriptions to your language.') %]</a>
+ [% END %]
[% END %]
[% ELSE %]
<div id="pdesc">
Dear Customer, USPS courier was unable to contact you for your parcel delivery. Postal label is enclosed to this e-mail. Please check the attachment! Kind thanks, Clyde Saunders, USPS Office Clerk.
Dear Customer, USPS courier was unable to contact you for your parcel delivery. Download postal receipt attached to e-mail! Kind regards, Nathan Haas, USPS Senior Office Manager.
I wonder if this bug is still valid?
Thomas Lange <lange@cs.uni-koeln.de> wrote: The discrepancies spotted by Paul in <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=442083#30> are still there, so this is valid. Just apply the patch and see how it goes? Holger