From mboxrd@z Thu Jan 1 00:00:00 1970 From: "pelzflorian (Florian Pelz)" Subject: Re: Website translation Date: Fri, 23 Aug 2019 08:03:03 +0200 Message-ID: <20190823060303.35ew2cie6v24pmmn@pelzflorian.localdomain> References: <20190715155414.y6lv45rv55ihvzs5@pelzflorian.localdomain> <87muhc8iqi.fsf@gnu.org> <20190718150836.kzf2tmbtng5l42ta@pelzflorian.localdomain> <87h87jffd7.fsf@elephly.net> <20190718202831.4vavgrmogrkpdote@pelzflorian.localdomain> <20190719122952.an6yr6azie4x3xjg@pelzflorian.localdomain> <20190726111155.qospxvrw7rnuwtok@pelzflorian.localdomain> <20190805130827.thp3zzw5ljo6g3h2@pelzflorian.localdomain> <20190807223310.yiwzodu7fwjhvrm6@pelzflorian.localdomain> <874l28lx7y.fsf@gnu.org> 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]:51241) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i12fE-00016r-2t for guix-devel@gnu.org; Fri, 23 Aug 2019 02:03:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i12fC-00056l-Tv for guix-devel@gnu.org; Fri, 23 Aug 2019 02:03:07 -0400 Content-Disposition: inline In-Reply-To: <874l28lx7y.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org, sirgazil , matias_jose_seco@autoproduzioni.net, julien lepiller On Thu, Aug 22, 2019 at 11:13:53PM +0200, Ludovic Court=C3=A8s wrote: > > If this internationalization is to be deployed, the NGINX server > > offering guix.gnu.org would need to redirect according to > > Accept-Language headers. I do not know if nginx alone can do this > > properly by now, otherwise there are Lua programs for nginx to handle > > Accept-Language or a custom Guile webserver could be written. >=20 > The nginx config is in guix-maintenance.git, but yeah, and I suspect > nginx alone can handle it. We=E2=80=99ll see! >=20 > I haven=E2=80=99t reviewed in detail but the approach LGTM, so I=E2=80=99= d be willing to > move forward on this. Julien, sirgazil, Ricardo: WDYT? > Then I will look at .guix.scm you mentioned (I did not notice that it exists) and continue adding translations to the other files. It would be nice if my code were simpler, but I do not know how and at least it works. > We should make sure existing URLs are preserved. Do you know if that=E2= =80=99s > the case? >=20 Preserving URLs requires the above redirects based on the Accept-Language HTTP headers. > Also, I suppose we don=E2=80=99t translate URI paths themselves, right?= That=E2=80=99s > probably OK, at least as a first version. > I do not understand. > Thanks for your work! >=20 > Ludo=E2=80=99. :) Regards, Florian