From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yDVfOWhArWDOagEAgWs5BA (envelope-from ) for ; Tue, 25 May 2021 20:22:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iOsVNWhArWBMTwAA1q6Kng (envelope-from ) for ; Tue, 25 May 2021 18:22:32 +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 132C318A53 for ; Tue, 25 May 2021 20:22:32 +0200 (CEST) Received: from localhost ([::1]:40004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llbhG-0003dz-Nr for larch@yhetil.org; Tue, 25 May 2021 14:22:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50112) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llbgo-0003cC-5U for guix-patches@gnu.org; Tue, 25 May 2021 14:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llbgn-0006mH-Mn for guix-patches@gnu.org; Tue, 25 May 2021 14:22:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1llbgn-0008GK-Ht for guix-patches@gnu.org; Tue, 25 May 2021 14:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48637] [PATCH] website: Add publications page Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 May 2021 18:22: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 Cc: "48637@debbugs.gnu.org" <48637@debbugs.gnu.org> Received: via spool by 48637-submit@debbugs.gnu.org id=B48637.162196690131730 (code B ref 48637); Tue, 25 May 2021 18:22:01 +0000 Received: (at 48637) by debbugs.gnu.org; 25 May 2021 18:21:41 +0000 Received: from localhost ([127.0.0.1]:46730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llbgS-0008Fh-V5 for submit@debbugs.gnu.org; Tue, 25 May 2021 14:21:41 -0400 Received: from pelzflorian.de ([5.45.111.108]:53018 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1llbgN-0008FT-NF for 48637@debbugs.gnu.org; Tue, 25 May 2021 14:21:39 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 0F0A636065D; Tue, 25 May 2021 20:21:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1621966893; bh=3ziyqmyQBxjLPBCqsYO6t2T7CFQmguFAG3Osx/apZ1g=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=x4PEXYFCzFGhzo32IEbVY02yWHQB4/F5RC4Vj18Nu6fOTTWKe5TgI45CjRKWomzMS UOhSeDTmzFII3v/iLMnA+YxCYVJUPNnxhejGpWGkQZZg/DEEcE8mdM54TV+U1S5e5L x4BlVC/eniXTzEIyZiN4lgFL16mMTGzEtoNh/N9U= Date: Tue, 25 May 2021 20:21:23 +0200 From: "pelzflorian (Florian Pelz)" Message-ID: <20210525182123.a5l4d6t3xt3qn437@pelzflorian.localdomain> References: <4BtcqLwBY7LgeYhUd41lhUUAcT5n2Zn9OTJUzGswTuBpLla8nBHyrQ3kJzwEMI9E7MPEnr6wBqSeCMqByldZ6i5jPR8B7ZtEi0XhwextyQo=@protonmail.com> <20210525134405.hmevensj5m42iluo@pelzflorian.localdomain> <3mZyc8pra0TLSyJS6RlWIrQGBnje7dT_EMRBeOdFC_Z2wsZGoaI1rVNVtoiI57KEOvolEiahl6j7M4UBsoO0NsuieAfDPIkZQ-MR8C5UhAE=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3mZyc8pra0TLSyJS6RlWIrQGBnje7dT_EMRBeOdFC_Z2wsZGoaI1rVNVtoiI57KEOvolEiahl6j7M4UBsoO0NsuieAfDPIkZQ-MR8C5UhAE=@protonmail.com> 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=1621966952; 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=8M48bs5uYAy2aDjYkU1FVfjLrlaG8HTdX+r3CibN0Go=; b=tCT48/FF81pqipaWxsQhpKVOpuHJFqxaDWVPcXbaLYSNJn7zYwOVAkxUQFkfOIAsese15n BzwrXGl4Fn7SLcGm8Nb/ptXv55RF0EMVJRe0Jaw1SmikZyXLWUNhSvlIM7e0yHNINfzsSC vRXGU0Lot8xApS2+juCrPRnfufk0ut6Y8ezu9RDzRFHnqn/0cfvkalACdIzTrohpS/CCcc H3Qd1HzE+FjmRfDYZzRRmzOU9tJ9ZbgN06rMl4I+4MA1p7JpoyUsT+UUVXG2au9LbePOTD RWgmTLy0PLYgIqFKAIynTe1H2ET9EcXvUEozkbwQ6PKaunHjWdDyH/7TEJUt3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621966952; a=rsa-sha256; cv=none; b=GeIQIEIwVsxBdSQciYlNXz0GcSVBsg9fI7sRGNyl5KWQor6KFVNdMGRBudZ0TfzZea0QNv ZYeGWPVghWYgu9TqJgtW+kerISIgZCNJmCz7DgUJtFXPsH2efZ+ysDsfS/+DptnXPisDIn P//varxLtw5JArBCDcRC6RaTDs0IzS0xXn8a8AusB/9zpj8WUJwMc48Pc3iT0B26IrxCN7 E0a02enCu/7hYAQ4djD84SHo4IJ8b5PZp2bRNO6wDZSHa4rdsGuelD7pzbs5EGdNfrD92G 3J+zKSuRGMamg/J9awqRTZVeeCr7mz/dI3ee4Kx9DWyjPFOcvjrpcW7MwVZs0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=x4PEXYFC; dmarc=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: 0.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=x4PEXYFC; dmarc=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: 132C318A53 X-Spam-Score: 0.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: g5a3qOYmkVJa On Tue, May 25, 2021 at 02:37:03PM +0000, Luis Felipe wrote: > Yeah. Would it as follows? (I still struggle with i18n): > > (p > (@ (class "publication-info")) > ,(G_ `("Published " > ,(date->string (publication-date publication) > (C_ "SRFI-19 date->string format" "~b ~d, ~Y")) > " by " > ,(string-join (publication-authors publication) ", ")))) It would need to be (p (@ (class "publication-info")) ,(let ((format (C_ "SRFI-19 date->string format" "~b ~d, ~Y"))) (G_ `("Published " ,(date->string (publication-date publication) format) " by " ,(string-join (publication-authors publication) ", ") "")))) The let is needed because C_ cannot be nested inside G_ because the sexp-xgettext script parses Scheme files in only one pass currently. (And I’m not motivated enough to make it go back to parse the nested C_ because nesting is seldom needed.) The "" at the end is needed so (string-join …) gets its own XML element that can be moved by translators. Without "": msgid "Published <1/> by " With "": msgid "Published <1/> by <2/>" > Also, I think the delimiter for "string-join" in the list of authors > should be translated because that comma is not used in Japanese, for > example. So would it be ok like this: > […] > ,(string-join (publication-authors publication) > (C_ "Separator of items in a list" ", "))))) Yes, you are very right, although as above please move it to the let. Then it can become 、 or と or whatever; I don’t know what is common in Japan. > I'm still unsure about when I should use a context and when a > TRANSLATORS comment... A msgctxt should be used if another ", " string with different translations might be added. I would use a context, I think, but maybe it is an abundance of caution. Regards, Florian