From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#26302: Deploying the =?UTF-8?Q?i18n=E2=80=99d?= web site Date: Wed, 25 Mar 2020 18:33:46 +0100 Message-ID: <87d090ibk5.fsf_-_@gnu.org> References: <20170329154040.ddscahwp2agknihb@abyayala> <16d07cb5a1d.ca69255821627.8144164908931126811@zoho.com> <20190908171638.cna67eearj4rbn2k@pelzflorian.localdomain> <16d18a5a9e8.12ab66c8254154.2756956535677606704@zoho.com> <20190915201819.3yxm25fayvbxwdpl@pelzflorian.localdomain> <20191007081502.wog4q4wjptvhmejf@pelzflorian.localdomain> <20191008093719.duvx26l2ods3fg75@pelzflorian.localdomain> <20191117161702.bfmuiukhyacbukqf@pelzflorian.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60850) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jH9ul-0004V9-Ho for bug-guix@gnu.org; Wed, 25 Mar 2020 13:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jH9uk-0004FY-4K for bug-guix@gnu.org; Wed, 25 Mar 2020 13:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51739) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jH9uk-0004FI-0e for bug-guix@gnu.org; Wed, 25 Mar 2020 13:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jH9uj-0002XK-TP for bug-guix@gnu.org; Wed, 25 Mar 2020 13:34:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20191117161702.bfmuiukhyacbukqf@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Sun, 17 Nov 2019 17:17:02 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: "pelzflorian (Florian Pelz)" Cc: sirgazil , 26302 <26302@debbugs.gnu.org> Hi Florian, We dropped the ball on this, but it looks like we were close to the finish line. What would it take to complete the i18n=E2=80=99d web site deployment? It = would be great to get that done by the time of the next release. Thanks! Ludo=E2=80=99. "pelzflorian (Florian Pelz)" skribis: > First on serving the internationalized website: > > The following changes to maintenance:berlin redirect requests for old > URLs properly *only for non-HTTPS* in local testing on a vm-image. I > assume the same will work when added for the HTTPS location, though > perhaps the line "set_from_accept_language $lang en de;" cannot or > need not be duplicated for both non-HTTPS and HTTPS. I hope the > changes are compatible with the manual and cookbook URLs. The changes > would better be tested more but I do not know how. > > > diff --git a/hydra/nginx/berlin.scm b/hydra/nginx/berlin.scm > index 2947759..8b66ba7 100644 > --- a/hydra/nginx/berlin.scm > +++ b/hydra/nginx/berlin.scm > @@ -468,6 +468,10 @@ PUBLISH-URL." > (uri "/guix") > (body (list "root /var/www;"))) >=20=20 > + (nginx-location-configuration > + (uri "~ (.html|.htm)$") > + (body (list "try_files /$lang/$uri $uri =3D404;"))) > + > (nginx-location-configuration ;certbot > (uri "/.well-known") > (body (list "root /var/www;"))))) > @@ -505,6 +509,9 @@ PUBLISH-URL." > (root "/home/rekado/bootstrappable.org") > (raw-content > (list > + "rewrite (.*)/$ $1/index.html;" > + ;; put en first so it is the default: > + "set_from_accept_language $lang en de;" > "access_log /var/log/nginx/bootstrappable.access.log;"))) >=20=20 > (nginx-server-configuration > @@ -767,5 +774,11 @@ PUBLISH-URL." > (define %nginx-configuration > (nginx-configuration > (server-blocks %berlin-servers) > + (modules > + (list > + ;; We need this module for redirecting users to the localized > + ;; website of their choice. > + (file-append nginx-accept-language-module "\ > +/etc/nginx/modules/ngx_http_accept_language_module.so"))) > (extra-content > (string-join %extra-content "\n")))) > > > > I attach a complete patch that can only be used for testing on a local > VM. For testing, I perform the following steps: > > cd ~/git/maintenance/hydra/ > GUILE_LOAD_PATH=3D$(readlink -f ~/git/maintenance/hydra/modules):$GUILE_L= OAD_PATH guix system vm-image --image-size=3D14G berlin.scm --fallback > cp /gnu/store/mm000wdzkzrvalg09jxk0y6nhi9c4iai-qemu-image berlin1.img > guix gc -D /gnu/store/mm000wdzkzrvalg09jxk0y6nhi9c4iai-qemu-image > chmod +w berlin1.img > qemu-system-x86_64 -enable-kvm berlin1.img -m 2048 -nic tap,ifname=3Dtap0= ,script=3Dno,downscript=3Dno > > Note that I use NetworkManager with dnsmasq for a tap0 host-to-guest > network connection as specified in the Guix manual. > > --- > > Second, unrelated to serving the website: > > I also noticed that Microsoft Internet Explorer 11 cannot display the > new accessible dropdowns on https://guix.gnu.org/.i18n/en. Do we > care? Perhaps the use of CSS z-index causes the problems. The > previous dropdowns used display: none; which made the dropdowns > not-keyboard navigable. > > Regards, > Florian