From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KNu2Ig2LrmAe/AAAgWs5BA (envelope-from ) for ; Wed, 26 May 2021 19:53:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cIBzHg2LrmCmOgAA1q6Kng (envelope-from ) for ; Wed, 26 May 2021 17:53:17 +0000 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 2C2E91188D for ; Wed, 26 May 2021 19:53:17 +0200 (CEST) Received: from localhost ([::1]:48286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llxiV-0003Lv-G3 for larch@yhetil.org; Wed, 26 May 2021 13:53:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llxXe-0007V9-9L for guix-patches@gnu.org; Wed, 26 May 2021 13:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llxXe-0005rr-0C for guix-patches@gnu.org; Wed, 26 May 2021 13:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llxXd-0004vr-Tc for guix-patches@gnu.org; Wed, 26 May 2021 13:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48637] [PATCH] website: Add publications page Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 26 May 2021 17:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48637 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Luis Felipe , "pelzflorian (Florian Pelz)" Cc: "48637@debbugs.gnu.org" <48637@debbugs.gnu.org> Received: via spool by 48637-submit@debbugs.gnu.org id=B48637.162205087618905 (code B ref 48637); Wed, 26 May 2021 17:42:01 +0000 Received: (at 48637) by debbugs.gnu.org; 26 May 2021 17:41:16 +0000 Received: from localhost ([127.0.0.1]:49842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llxWu-0004uq-Cr for submit@debbugs.gnu.org; Wed, 26 May 2021 13:41:16 -0400 Received: from lepiller.eu ([89.234.186.109]:38454) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llxWs-0004ue-93 for 48637@debbugs.gnu.org; Wed, 26 May 2021 13:41:15 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id b59f4508; Wed, 26 May 2021 17:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=eyeGJSTqg+os8O8qyx89Fc4XIzFIoU/zZ5iHfAHGgoQ=; b=XOyWPOr 5kY9use8JqmzW/ai5mupA8HVVwcN8304ZD3/0ME48/JLu4irrC2MCL+JcDwlgIBP nXK7eEeu8nN9zlxLJSSnXn9mLcxwiKSW+Mxts1CSx1zUMi3BhaecUR9EumXT24gS K0ROYY9H/apeYMXWnSc/6TfLHvxQUN+IpEMdN6EGMyG1lHCp+ihnTEbfvIdCUmJ4 q/6Y4TcklvDEQRB5ytbH0gZYB4HbC737ASnBlcZgTKLD/Y3tRLnM6PbzScgXS/jG d+8GnjxxYfDwFv6WiGJDuryc+FyD6MfxnNFlywANNP5ExNdopsYx+9KZ9imrORbZ x1dzcrt6igPZAlA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 85aa39bf (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 26 May 2021 17:41:11 +0000 (UTC) Date: Wed, 26 May 2021 13:41:02 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <4BtcqLwBY7LgeYhUd41lhUUAcT5n2Zn9OTJUzGswTuBpLla8nBHyrQ3kJzwEMI9E7MPEnr6wBqSeCMqByldZ6i5jPR8B7ZtEi0XhwextyQo=@protonmail.com> <20210525134405.hmevensj5m42iluo@pelzflorian.localdomain> <3mZyc8pra0TLSyJS6RlWIrQGBnje7dT_EMRBeOdFC_Z2wsZGoaI1rVNVtoiI57KEOvolEiahl6j7M4UBsoO0NsuieAfDPIkZQ-MR8C5UhAE=@protonmail.com> <20210525182123.a5l4d6t3xt3qn437@pelzflorian.localdomain> <0aOCO-8AZ9biZ9iIxwrbB509xigLvoEfiOHOXiC_hfm1YqdAKMuCftahFz-8Ix2Ikdlt8akHkyoRsH6OvV0gOzlFrcw3xdyeE2IPF5TchB0=@protonmail.com> <02EED264-0509-453A-A016-2AD05353370B@lepiller.eu> <68748170-9C48-45F1-98D7-6152572D6D61@lepiller.eu> <20210526095955.obtu772oolv4lkrb@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----M7UJSIOAMXUL6FSKM1UHC7MBCGZBO6" Content-Transfer-Encoding: 7bit From: Julien Lepiller Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622051597; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eyeGJSTqg+os8O8qyx89Fc4XIzFIoU/zZ5iHfAHGgoQ=; b=Pf44v6Eck0p4qWRAEQ1RGyTZMf1G90vOQkyYBOAFGBXiA3bdGKF/V1mvT9c6powRMMftdw BzzR4UZAmmpk/5QbDzxmQxUAMFQE9/PMoBQD9UJkjVdRFUG7d0z6wzM2iE00o+97txVjpH 7sUegYsopCJpu3940MCurwwAtbqPY2QGZJlBbm7oFviqtKOC5uHDbfJ+f6QJIMTtOGnwrH OSpf8KFTuof0hMIyJBEqEDnO0wKIVvpcMzIQb6WdQmSOxs6AgpqRe82Em0M7pb+JmjiL6K ZsCA5RYk3MAk+lJQIcsE+qXm/2SxMFfsuRCXID10+hoH2GQbHH32lhij+BzvPA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622051597; a=rsa-sha256; cv=none; b=J4KMETerSO4PlBATud5f1giYq3kSSepZfGIjWHMwFHQqzS7TjUrV1jYfyVqOgRf0q0IG/i I6bioV181GQJx/YWGbjypnXxL4gEYmkgkdbY9wMvTdy582VxWad+V/8BOkaFGgDGejfm3m jnEz91brr/cE3ZOzBsdh4Fs1mWR0x/3VkoXRNcO+npx77IM9E98fzGRWehIWu2UwLWg1L1 Df1Iz87l9u0T5ZlxlznJRO1NNYcrOxg01HMVDwHiC2eQXLRIYVQugSm/wNGu7uD6aypjPK eW1Jm4WwXEyVqWNQCK7GHt36E6/JB/MuWyhHkOOAZDXXMCyaR5NYmEvnCQizpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="XOyWPOr "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="XOyWPOr "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2C2E91188D X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: Ij69jLpKdqgP ------M7UJSIOAMXUL6FSKM1UHC7MBCGZBO6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Since last time we calked, I changed che script that updates weblate, so it= now ignores the checked out pot file and regenerates it for weblate=2E May= be we should now drop it entirely? Le 26 mai 2021 10:06:43 GMT-04:00, Luis Felipe a =C3=A9crit : >On Wednesday, May 26, 2021 10:00 AM, pelzflorian (Florian Pelz) > wrote: > >> On Tue, May 25, 2021 at 10:03:01PM -0400, Julien Lepiller wrote: >> >> > Le 25 mai 2021 16:16:42 GMT-04:00, Luis Felipe >luis=2Efelipe=2Ela@protonmail=2Ecom a =C3=A9crit : >> > >> > > #:authors (G_ "Jane Roe, Eva Lua and Luis Felipe") >> > >> > I think so, but I think we'll have to test, because I don't really >know the i18n process either for the website ^^' >> >> Yes, it is correct and the best way, but testing by running the >> sexp-xgettext script is good too=2E >> >> > > That's what I thought, and I was about to ask if it was possible >to >> > > have and instead of <1> and <2>=2E I guess not=2E= =2E=2E >> > > I need a course on the i18n system :) >> >> I wanted the sexp-xgettext i18n system so developers would not have >to >> add a tag name to every element=C2=A0=E2=80=A6 Well, we can use regexp = helper >> function find-empty-element like website/sexp-xgettext=2Escm uses at >the >> beginning of the deconstruct procedure: >> >> (define (find-empty-element msgstr name) >> "Return the regex match structure for the empty tag for XML >> element of type NAME inside MSGSTR=2E If the element does not exist or >> is more than the empty tag, #f is returned=2E" >> (string-match (string-append "<" (regexp-quote name) "/>") msgstr)) >> >> and call it on a translation with G_, but I would prefer not to >> increase code complexity in the website=2E > >Ok, here is the new patch with the suggested changes=2E > >I updated the POT to check the translation strings and I think they are >well formed=2E For example: > >#=2E TRANSLATORS: <1/> is a date, and <2/> a list of authors=2E >#: apps/media/templates/components=2Escm:50 >#, xml-text >msgid "Published <1/> by <2/>" >msgstr "" > >I didn't include the POT update in the patch though=2E Maybe for future >patches I'll do the whole i18n process=2E ------M7UJSIOAMXUL6FSKM1UHC7MBCGZBO6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable Since last time we calked, I changed che script th= at updates weblate, so it now ignores the checked out pot file and regenera= tes it for weblate=2E Maybe we should now drop it entirely?

Le 26 mai 2021 10:06:43 GMT-04:00, Luis Felipe <luis= =2Efelipe=2Ela@protonmail=2Ecom> a =C3=A9crit :
On Wednesday, May 26, 2021 10:00 AM, pelzflorian (Fl=
orian Pelz) <pelzflorian@pelzflorian=2Ede> wrote:

On Tue, May 25, 2021 at 10:03:01PM -0= 400, Julien Lepiller wrote:

Le 25 mai 2021 16:16:42 GMT-04:00, Luis Felipe luis=2Efelipe=2El= a@protonmail=2Ecom a =C3=A9crit :

#:authors (G_ "Jane Roe, Eva Lua and Luis Felipe")

I think so, but I think we'll have to test, because I don't rea= lly know the i18n process either for the website ^^'

Y= es, it is correct and the best way, but testing by running the
sexp-xge= ttext script is good too=2E

That's what I t= hought, and I was about to ask if it was possible to
have <date> a= nd <authors> instead of <1> and <2>=2E I guess not=2E=2E= =2E
I need a course on the i18n system :)
<= br> I wanted the sexp-xgettext i18n system so developers would not have to<= br> add a tag name to every element =E2=80=A6 Well, we can use regexp = helper
function find-empty-element like website/sexp-xgettext=2Escm use= s at the
beginning of the deconstruct procedure:

(define (find-= empty-element msgstr name)
"Return the regex match structure for the em= pty tag for XML
element of type NAME inside MSGSTR=2E If the element do= es not exist or
is more than the empty tag, #f is returned=2E"
(str= ing-match (string-append "<" (regexp-quote name) "/>") msgstr))
and call it on a translation with G_, but I would prefer not to
incr= ease code complexity in the website=2E

Ok, here is the = new patch with the suggested changes=2E

I updated the POT to check t= he translation strings and I think they are well formed=2E For example:
=
#=2E TRANSLATORS: <1/> is a date, and <2/> a list of author= s=2E
#: apps/media/templates/components=2Escm:50
#, xml-text
msgid= "Published <1/> by <2/>"
msgstr ""

I didn't include = the POT update in the patch though=2E Maybe for future patches I'll do the = whole i18n process=2E
------M7UJSIOAMXUL6FSKM1UHC7MBCGZBO6--