Your message dated Sun, 14 Jun 2015 13:08:11 +0900 with message-id <[email protected]> and subject line Re: Bug#659070: bad internal links on www.debian.org for developers-reference has caused the Debian Bug report #659070, regarding www.debian.org: language-related problem with http://www.debian.org/doc/manuals/developers-reference pages to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 659070: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659070 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: www.debian.org Severity: normal The page http://www.debian.org/doc/manuals/developers-reference/index.html is in English, but if I follow the "Table of Contents" links, I get pages in French[*]. There is no way to stay on the English pages. IMHO, all link URL's should contain language information, e.g. the http://www.debian.org/doc/manuals/developers-reference/scope.html URL in the link should be replaced by http://www.debian.org/doc/manuals/developers-reference/scope.en.html and each page should allow one to switch the language, via HTML contents (as this can already be done on the index page) and/or via <link rel="alternate" .../>. Another related problem is that explicit French pages like http://www.debian.org/doc/manuals/developers-reference/scope.fr.html contains a link "Sommaire" to http://www.debian.org/doc/manuals/developers-reference/index.html which is in English. Ditto, the URL should be: http://www.debian.org/doc/manuals/developers-reference/index.fr.html [*] probably because my web browser is configured to ask French by default, but this is a general choice, and web pages should have a way to choose other available languages. -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.8-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- End Message ---
--- Begin Message ---Hi, Tested locally by changing common.sh to use: webtopdir=`pwd`/srv/www.debian.org And commited. If anything nasty happens, please do not hesitate to revert. On Sat, Jun 13, 2015 at 07:56:38PM +0900, Charles Plessy wrote: > no problem, it would take as much time for me to remember how the script works > than to learn it again from scratch. At least cleaner and regular :-) > Have a nice week-end, Yes. Hot and humid though ... pagecopy() { # convert all internal href URLs from *.html to *.$lang.html lang=$1 infile=$2 outfile=$3 sed -e "s/\(href=\"[^\/:\"= ]*\)\.html/\1.$lang.html/g" <$infile >$outfile } This function is used to fix internal reference renaming. Now not only developers-reference but some other new files are free of this bug. https://www.debian.org/doc/manuals/apt-guide https://www.debian.org/doc/manuals/apt-offline https://www.debian.org/doc/manuals/aptitude These are new with content negotiation. If these are good, I will add them to https://www.debian.org/doc/user-manuals ADD mode does this. https://www.debian.org/doc/index.en.html update is later ... Osamu Aoki Aobadai, Yokohama, Kanagawa, Japan
--- End Message ---

