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 4CHCIj93emEK+QAAgWs5BA (envelope-from ) for ; Thu, 28 Oct 2021 12:11:11 +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 2OSXHj93emFnegAA1q6Kng (envelope-from ) for ; Thu, 28 Oct 2021 10:11:11 +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 4EE9A2AEC5 for ; Thu, 28 Oct 2021 12:11:11 +0200 (CEST) Received: from localhost ([::1]:41756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mg2NK-0003UG-GJ for larch@yhetil.org; Thu, 28 Oct 2021 06:11:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg2NC-0003U8-QT for bug-guix@gnu.org; Thu, 28 Oct 2021 06:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39858) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mg2NC-00030f-HG for bug-guix@gnu.org; Thu, 28 Oct 2021 06:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mg2NC-0007RC-2L for bug-guix@gnu.org; Thu, 28 Oct 2021 06:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#51456: website: Language selection dropdown not translated Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 28 Oct 2021 10:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51456 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 51456@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163541581428511 (code B ref -1); Thu, 28 Oct 2021 10:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 10:10:14 +0000 Received: from localhost ([127.0.0.1]:51404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg2MP-0007Pn-U6 for submit@debbugs.gnu.org; Thu, 28 Oct 2021 06:10:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:44496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg2ML-0007PV-J4 for submit@debbugs.gnu.org; Thu, 28 Oct 2021 06:10:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg2ML-0002xD-3Y for bug-guix@gnu.org; Thu, 28 Oct 2021 06:10:09 -0400 Received: from pelzflorian.de ([5.45.111.108]:50376 helo=mail.pelzflorian.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg2MI-0002r1-2J; Thu, 28 Oct 2021 06:10:08 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 9EB1F3606B3; Thu, 28 Oct 2021 12:10:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1635415803; bh=N1WwB2njKUrje3IBo1tktIj9HhVKA18ywicNe0fmIkg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=eW90ETWKxAQGJGpClHaswd6Bu6csX3UxQq8Ri98dLp56fRUn4B042INz25qb/ts/t VbalRAeSnH9+zEqkcRPJToCCYgupQCiqT9KqvnYfpSaqiTTb+DKcwXkkmE69dEemcj 1fHSOzApZMnnsOrrTXGrzyYfZZb7qEiZYA09fkZk= Date: Thu, 28 Oct 2021 12:09:56 +0200 From: "pelzflorian (Florian Pelz)" Message-ID: <20211028100956.iebrx6v7iommkgdn@pelzflorian.localdomain> References: <20211028081340.hj2ceeagqfjay2m2@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="2nms44kmafgk4eoy" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211028081340.hj2ceeagqfjay2m2@pelzflorian.localdomain> Received-SPF: pass client-ip=5.45.111.108; envelope-from=pelzflorian@pelzflorian.de; helo=mail.pelzflorian.de 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635415871; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=WoFrWEgeBxJK8lgkXkRGtcp5zr9+N5ddYRzisynQBEY=; b=hd26VXff/fkYHGBYcNHE1D6i/KK3FRCsxvGLP5yq54F1w6iuoYw7fCNUqLRvUyWsBSE1dq 5Ry/sF7TMPZvITGzbTs1wwomJ6ttNZF2tfvqqrlAQ4a9xLH6zFdZ6RrD1Mb/+lsd338DgS sN8wUfOy19rXHxMWKGTj8tZTuTNysyMPd3Tpz6Sphg7yovfzsPtviISW9eI+Ez5s8kz58R nYxpXsBG/e6ql2xiaYxyXlKv9DxZgrgQ9vc0PxvTm3Nyeh+Y73PIRoWwI+9OXXIUlIklU+ h3I+P4JGrl0UqCJCMJsnk174J89BY1sfvI2TersRiREHd46RD/oMqr66xLkojg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635415871; a=rsa-sha256; cv=none; b=A9ieoQEjDvBuNXIFL2/+ENh/lLi6mMCro+IrTPbAdTsWIVuzKA2/f3bgfv5fFK1TCVpPcX 6a0hc6veshGnHeHlNVN/K7QeHt97rpxe9tqBy2ZHB5oHN0AUpYtz4kJoOxPrOmV/p4grMW Ebm+uiPsEG0xOo6q9I1uNhGuXpoNEmbHSgE7pg1iDAt9+dRn5hWzbzgYZwyxXnvNDwH4g0 RW2nWErUSjx761RQIPA/UTWOD2aeYn+FA0tyrVwvg/Dq4UYZURezDPijbTjOv3P0+9EyUd 6YGXTDbhRNmw9cN4Wz8b394VE+gcePYFrhdsxxjH0TV+RY4+1p7NWML8wUID3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=eW90ETWK; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=eW90ETWK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 4EE9A2AEC5 X-Spam-Score: -0.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: UIPMFpTYqIcN --2nms44kmafgk4eoy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Oct 28, 2021 at 10:13:49AM +0200, pelzflorian (Florian Pelz) wrote: > Is the proper solution to symlink all lingua-mo-files, i.e. reinstate > from before commit 4d5bf8522e2 a for-each like > > (for-each > (lambda (lingua mo-directory) > (symlink (string-append mo-directory "/" lingua) > lingua)) > (list #$@%linguas) > '#$(map lingua-mo-files %linguas)) > > (I have not tried.) Seems to work. I have guix build -f .guix.scm but only one lingua got built so far, it looks right. Patch attached. Shall I push or … > > Or should website/apps/base/templates/components.scm look up the > language dropdown’s language names in a different way such as from the > PO file, which is more complicated? Regards, Florian --2nms44kmafgk4eoy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-website-Make-available-all-.mo-files-for-each-langua.patch" >From 947a7b98beda5b49890a61f0751d5765157f5cde Mon Sep 17 00:00:00 2001 From: Florian Pelz Date: Thu, 28 Oct 2021 10:21:52 +0200 Subject: [PATCH] website: Make available all .mo files for each language. Because the language selection dropdown needs all. Fixes . * website/.guix.scm (lingua-web-site): When building one language, still use 'lingua-mo-files' for all languages. --- website/.guix.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/website/.guix.scm b/website/.guix.scm index 3beb0e8..c5cb367 100644 --- a/website/.guix.scm +++ b/website/.guix.scm @@ -215,8 +215,12 @@ ;; Build the website for LINGUA. (apps i18n) calls ;; 'bindtextdomain' on $PWD so provide .mo files right here. - (symlink (string-append #$(lingua-mo-files lingua) "/" lingua) - lingua) + (for-each + (lambda (lingua mo-directory) + (symlink (string-append mo-directory "/" lingua) + lingua)) + (list #$@%linguas) + '#$(map lingua-mo-files %linguas)) (setenv "LC_ALL" (string-append lingua ".utf8")) (format #t "Running 'haunt build' for lingua ~a...~%" lingua) -- 2.33.1 --2nms44kmafgk4eoy--