[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#442083: packages.d.o: 442083: remaining i18n issues



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 %]

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: