Show translated man pages

Bug #2044711 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Manpage Repository
New
Undecided
Unassigned

Bug Description

We have found the conversion spending a lot of time in packages like manpages-zh

manpages 674380 0.0 0.0 9108 3132 pts/0 S+ Nov17 0:00 | \_ /bin/bash -e /srv/manpages.ubuntu.com/bin/fetch-man-pages.sh mantic file:///srv/archive.ubuntu.com/www/ubuntu/pool/universe/m/manpages-zh/manpages-zh_1.6.4.0-1_all.deb
manpages 676314 0.0 0.0 9108 1656 pts/0 S+ Nov17 0:00 | \_ /bin/bash -e /srv/manpages.ubuntu.com/bin/fetch-man-pages.sh mantic file:///srv/archive.ubuntu.com/www/ubuntu/pool/universe/m/manpages-zh/manpages-zh_1.6.4.0-1_all.deb
manpages 676315 0.0 0.0 13036 4692 pts/0 S+ Nov17 0:00 | \_ /usr/bin/perl /usr/lib/w3m/cgi-bin/w3mman2html.cgi local=/tmp/manpages-fetch-3R1RCF/usr/share/man/zh_CN/man1/df.1.gz
manpages 676318 0.0 0.0 2612 536 pts/0 S+ Nov17 0:00 | | \_ sh -c MAN_KEEP_FORMATTING=1 man --no-hyphenation -l /tmp/manpages-fetch-3R1RCF/usr/share/man/zh_CN/man1/df.1.gz 2> /dev/null
manpages 676319 0.1 0.0 8672 3052 pts/0 S+ Nov17 11:29 | | \_ man --no-hyphenation -l /tmp/manpages-fetch-3R1RCF/usr/share/man/zh_CN/man1/df.1.gz
manpages 676328 0.0 0.0 2608 600 pts/0 S+ Nov17 0:00 | | \_ /bin/sh /usr/bin/nroff -mandoc -rLL=97n -rLT=97n -Tutf8
manpages 676333 0.0 0.0 6132 760 pts/0 S+ Nov17 0:00 | | | \_ groff -mtty-char -Tutf8 -mandoc -rLL=97n -rLT=97n
manpages 676334 93.4 0.0 11812 4764 pts/0 R+ Nov17 10730:49 | | | \_ troff -mtty-char -mandoc -rLL=97n -rLT=97n -Tutf8
manpages 676335 12.2 0.0 9788 2860 pts/0 S+ Nov17 1405:48 | | | \_ grotty

An example content:
root@n:~# dpkg -L manpages-zh | grep busc
/usr/share/man/zh_CN/man1/busctl.1.gz
/usr/share/man/zh_TW/man1/busctl.1.gz

That is nice, it even exists on the web:
- https://manpages.ubuntu.com/manpages/mantic/zh_CN/man1/busctl.1.html
- https://manpages.ubuntu.com/manpages/mantic/en/man1/busctl.1.html
And you might be lucky to find it via a search engine.

But the mapping from a non language specific https://manpages.ubuntu.com/manpages/mantic/man1/busctl.1.html (which is what the internal links use) is not considering the language.

Problem 1
Please Consider mapping generic request to their language if it exists
   curl -s -H 'Accept-Language: zh_CN;q=0.9,it;q=0.8' -XGET "https://manpages.ubuntu.com/manpages/mantic/man1/busctl.1.html" | lynx -dump -stdin
   Should give the language specific one

Problem 2
Vice versa this already almost works fine, a language specific page will have all links language specific. And if that language does not exist as page it falls back to english.
https://manpages.ubuntu.com/manpages/mantic/zh_CN/man1/wireshark.1.html
=> https://manpages.ubuntu.com/manpages/lunar/en/man1/wireshark.1.html
Sadly this fallback is language specific (.../en/...) and never returns back to a native language.
If the fallback would not go to
https://manpages.ubuntu.com/manpages/lunar/en/man1/wireshark.1.html
but to
https://manpages.ubuntu.com/manpages/lunar/man1/wireshark.1.html
then the internal links would be non-language specific and would - if available - pick the right one (after problem #1 is fixed)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.