From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sLoRONrie2PY8AAAbAwnHQ (envelope-from ) for ; Mon, 21 Nov 2022 21:43:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +MQ9N9rie2PwSwEAG6o9tA (envelope-from ) for ; Mon, 21 Nov 2022 21:43:06 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 85A6A3E991 for ; Mon, 21 Nov 2022 21:43:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxDct-0001vJ-LL; Mon, 21 Nov 2022 15:42:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxDcq-0001v6-Fn for guix-devel@gnu.org; Mon, 21 Nov 2022 15:42:45 -0500 Received: from lepiller.eu ([89.234.186.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxDcm-0007fJ-EC; Mon, 21 Nov 2022 15:42:42 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 779036ab; Mon, 21 Nov 2022 20:42:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=HkMrUUt236v7 v6ja/+0Py9II9RyOw7S0W/W4w9fapRU=; b=d11kR8YCfbCIXMdCTSL8Qj9dg5O6 EDAOeDgHDIrsSU8/7zagOzG8tc+JLdf/yV7U1KdsiGCGIYY2EyxLsVLF3yDRHCvA 6LeKXTcW+ssI1M84eHm/Jt3+OZCTFaq5VHN2o2/J3nN439f0hYIfXmUjscmWKHTP qPcyv2BtziF5pV/s9SMtZLmO8srrNi/j/fgEFx2yOqqN2FknMGaXIIxctAeBK9du o+nb4F6zwqy94lqX4XSv2qoH6x3E13k0qimOKIE1IcoP/e5Jnx5AdEQDRSP/h222 PGE3KFsjMUi9FFuuaS9NrftSK5YYzjBd/KtqBhEsWtpL2e9h/rxRO9h4fw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c7518607 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Mon, 21 Nov 2022 20:42:31 +0000 (UTC) Date: Mon, 21 Nov 2022 21:42:29 +0100 From: Julien Lepiller To: guix-devel@gnu.org, Luis Felipe , =?ISO-8859-1?Q?Ludovic_Court=E8s?= CC: Christopher Baines , guix-devel Subject: Re: [Guix Website] A Search Page for Packages User-Agent: K-9 Mail for Android In-Reply-To: <5iYv4EYm3iB-EcpHDE85BuT5f5UaNmBjQp4FSsnJPIgK9ulQvxD1hycdFnBdw6n_COwnpTcRiC6yxYsoAqD6QihBny0Y9nxZAeYs_oYp8Po=@protonmail.com> References: <9vqBOZWiGUiZSkoCuukNGQ3yi98pp4JEJ42TdjCMl3hvFb0HpTZDWD8XCxWkXIwaixIoEAvGrfL-ZUsdw9jgNjOMYrFL0E973-9Cgnv4W_0=@protonmail.com> <87iljtgr72.fsf@cbaines.net> <87zgcqetsk.fsf@cbaines.net> <87v8n8jwhi.fsf@gnu.org> <5iYv4EYm3iB-EcpHDE85BuT5f5UaNmBjQp4FSsnJPIgK9ulQvxD1hycdFnBdw6n_COwnpTcRiC6yxYsoAqD6QihBny0Y9nxZAeYs_oYp8Po=@protonmail.com> Message-ID: <3C5A2710-D7DE-4E4A-8484-5D733FEF5CBE@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=----XEZGWH08R00S16SWS4D5DY2MIEUKP8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669063386; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=HkMrUUt236v7v6ja/+0Py9II9RyOw7S0W/W4w9fapRU=; b=anEqB+q4WMyLWuJOyVmkAMx7ueC0lVdk6B/B90xYhxx5ZWn1AqZl7SdE+PiDw7nkBs3jQ9 u+kl/7VuIQGGW95mXmbG+W4JrFuEjkxDbfV5ZefZ662Drv+M3BI8wl1oB9ShtC4iOq4aze gl6qkAZtAWzhQdgDadtYymMq2NuD9By0GJJRi6uTm0vY+WBH5iGMaOex+j1uoA9exogsKa VhzMctAw/K/3aEXIqPbgoNlddQaRhDEwJo4tUeu9wmI5H+LVrWzNDQ82fBKhqCx5tDXbsq EdzGCLl9xx8f6HHqhNWXV8hxN+rvMLBS/4tgL0rH64d8YgppgA/NaRLSPc1s1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669063386; a=rsa-sha256; cv=none; b=ssxQTDwyKEmt7MDr5E8ai5Fz2f+GUnen/8O6EowNmAgZVd4ckCZxiNpAK2Luq7m0cWwLZD cqAbgtwkBEe+IcKtcHPltnNuEyLw6fiGC7H7cVfH45MqRbZvEUXMRJUT7HwrtdAPtKbtZR pnn9oOfS0ZX97Eb5xf/Crvqzj/S/zedNq70iPx7FxPwC4NrX8hTk2D6LnQbrotsXvYy72z Pt3+pegnFPg7YXXDRJv3suI7kEo7FzN3On5ORfMEweY3uytMLPwIS/CRCGQM1pwE9xhxfe jWi/zhbVFTISPGdSfw4zynmTsO0lnlYrapzO94QdgoB71XW5SQYMkYQbDY8W7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=d11kR8YC; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=d11kR8YC; dmarc=pass (policy=none) header.from=lepiller.eu; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 85A6A3E991 X-Spam-Score: -4.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: lwG3doREIgF1 ------XEZGWH08R00S16SWS4D5DY2MIEUKP8 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I believe the website used both: an unprefixed url will serve the page fsom= the prefixed directory based on accept-language, but you can also switch l= anguage easily by using the prefixed path=2E Not translating URLs is fine and allows to easily switch language while st= aying on the same page=2E Le 21 novembre 2022 20:00:29 GMT+01:00, Luis Felipe a =C3=A9crit=C2=A0: >On Monday, November 21st, 2022 at 12:57, Ludovic Court=C3=A8s wrote: > >> Hi again, >>=20 > >> Luis Felipe luis=2Efelipe=2Ela@protonmail=2Ecom skribis: >>=20 > >> > > > On Wednesday, November 9th, 2022 at 16:43, Luis Felipe luis=2Efel= ipe=2Ela@protonmail=2Ecom wrote: >> >=20 > >> > > > > I have a working package browser now and will be styling it >> > > > > next=2E I'll link to a public repository later=2E >> >=20 > >> > > > Here is the source code, by the way: >> > > > https://codeberg=2Eorg/luis-felipe/guix-packages-website >> >=20 > >> > > Maybe some kind of alpha/beta/in development banner or message woul= d be >> > > good, just to set expectations that this is a new thing that's bein= g >> > > worked on=2E >> >=20 > >> > I added that and some other things that were missing and realeased ve= rsion 0=2E1=2E0 of the package browser=2E >>=20 > >>=20 > >> One thing I noticed is that i18n support seems to be missing=2E >>=20 > >> It=E2=80=99s OK to keep that for later, but how about making sure URLs = are >> prepared to handle that, by adding /en in the path? >>=20 > >> That is, from: >> https://packages=2Eguix=2Egnu=2Eorg/packages/ecl-cl-unicode/0=2E1=2E6/ >> to: >> https://packages=2Eguix=2Egnu=2Eorg/en/packages/ecl-cl-unicode/0=2E1=2E= 6/ > >Yeah, I left i18n for later, and was actually considering getting rid of = the language prefix in URL paths in favor of using HTTP Request's Accept-La= nguage header to detect the user's preferred language and serve the localiz= ed resources in that language if available (similar to what happens with ap= ps on the desktop)=2E That looked like less work to me than [also] internat= ionalizing the URLs, but maybe it is not a good practice? In any case, I'm = planning to add i18n for version 0=2E2=2E0 and was hoping to ask Julien and= Florian for advise about that=2E=2E=2E ------XEZGWH08R00S16SWS4D5DY2MIEUKP8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I believe the website used both: an unprefixed url= will serve the page fsom the prefixed directory based on accept-language, = but you can also switch language easily by using the prefixed path=2E
Not translating URLs is fine and allows to easily switch language while s= taying on the same page=2E

Le 21 novembre= 2022 20:00:29 GMT+01:00, Luis Felipe <luis=2Efelipe=2Ela@protonmail=2Ec= om> a =C3=A9crit=C2=A0:
On Monday, November 21st, 2022 at 12:57=
, Ludovic Court=C3=A8s <ludo@gnu=2Eorg> wrote:

Hi again,


Luis Felipe luis=2Efelipe=2Ela@pr= otonmail=2Ecom skribis:


On Wednesday, November 9th, 2022 at 16:43, Luis Felipe l= uis=2Efelipe=2Ela@protonmail=2Ecom wrote:

=

I have a working package = browser now and will be styling it
next=2E I'll link to a public reposit= ory later=2E


Here is the sou= rce code, by the way:
https://codeberg=2Eorg/luis-felipe/guix-packages-website=


Maybe some= kind of alpha/beta/in development banner or message would be
good, just= to set expectations that this is a new thing that's being
worked on=2E<= br>


I = added that and some other things that were missing and realeased version 0= =2E1=2E0 of the package browser=2E




One thing I noticed is that i18n s= upport seems to be missing=2E


It=E2=80=99s OK to keep that for later, but how= about making sure URLs are
prepared to handle that, by adding /en in th= e path?


That is, from:
https://packages=2Eguix=2Egnu=2Eorg/package= s/ecl-cl-unicode/0=2E1=2E6/
to:
https://packages=2Egui= x=2Egnu=2Eorg/en/packages/ecl-cl-unicode/0=2E1=2E6/
Yeah, I left i18n for later, and was actually considering getting rid of t= he language prefix in URL paths in favor of using HTTP Request's Accept-Lan= guage header to detect the user's preferred language and serve the localize= d resources in that language if available (similar to what happens with app= s on the desktop)=2E That looked like less work to me than [also] internati= onalizing the URLs, but maybe it is not a good practice? In any case, I'm p= lanning to add i18n for version 0=2E2=2E0 and was hoping to ask Julien and = Florian for advise about that=2E=2E=2E
------XEZGWH08R00S16SWS4D5DY2MIEUKP8--