From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: Website translation Date: Fri, 23 Aug 2019 14:18:27 +0200 Message-ID: <87h868848c.fsf@gnu.org> 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> <20190823060303.35ew2cie6v24pmmn@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]:57103) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i18WY-0006KW-8W for guix-devel@gnu.org; Fri, 23 Aug 2019 08:18:35 -0400 In-Reply-To: <20190823060303.35ew2cie6v24pmmn@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Fri, 23 Aug 2019 08:03:03 +0200") 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: "pelzflorian (Florian Pelz)" Cc: guix-devel@gnu.org, sirgazil , matias_jose_seco@autoproduzioni.net, julien lepiller Hi, "pelzflorian (Florian Pelz)" skribis: > 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= =99d 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. That=E2=80=99s OK. >> 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. So /(.*) should be redirected to /en/\1, right? >> 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. I mean =E2=80=9Cguix.gnu.org/en/help=E2=80=9D could map to =E2=80=9Cguix.gn= u.org/es/ayuda=E2=80=9D, for instance. That=E2=80=99s not the case, right? Thanks, Ludo=E2=80=99.