From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 04:13:58 2021 Received: (at submit) by debbugs.gnu.org; 28 Oct 2021 08:13:58 +0000 Received: from localhost ([127.0.0.1]:51274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg0Xu-0003on-8h for submit@debbugs.gnu.org; Thu, 28 Oct 2021 04:13:58 -0400 Received: from lists.gnu.org ([209.51.188.17]:49788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mg0Xr-0003of-Jm for submit@debbugs.gnu.org; Thu, 28 Oct 2021 04:13:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg0Xr-0003h4-3c for bug-guix@gnu.org; Thu, 28 Oct 2021 04:13:55 -0400 Received: from pelzflorian.de ([5.45.111.108]:50260 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 1mg0Xo-0002pN-SX; Thu, 28 Oct 2021 04:13:54 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 998B13606B3; Thu, 28 Oct 2021 10:13:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1635408829; bh=oBYgwPXtG2ZY5ec33rjUGsJtwDx0CSd1pCPRF7isZeo=; h=Date:From:To:Cc:Subject; b=oOsvayRWO3oGOCyF7L/ouz0n/3U9SXVt906jlZpvQ94PjZEZtx+SMz8OqI5aIhtK5 XpyozFWHmD3lf35pYN/VcUqY32+FLrcxQ7qgPwyN6U7ZKoTV4495BMKGRVlKxSLGIq 6uGGjDkOxeSaeY9+/IB+ZzoxuMz/OoMpMTLrfTaE= Date: Thu, 28 Oct 2021 10:13:40 +0200 From: "pelzflorian (Florian Pelz)" To: bug-guix@gnu.org Subject: website: Language selection dropdown not translated Message-ID: <20211028081340.hj2ceeagqfjay2m2@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Ludo recently divided building the website into one computed file for each language (“lingua”) in order to offload the build (a good thing; thank you Ludo). However, this includes making available for each lingua only the translations MO file for that lingua. Specifically .guix.scm now links only that file: (symlink (string-append #$(lingua-mo-files lingua) "/" lingua) lingua) But on the website, there is a language selection dropdown at the top right and the names of alternative language are taken from that language’s MO file. Because the build does not have available all MO files anymore, all foreign languages are now called English. (Another effect is that the contact web page only lists the German message for the Help mailing list on the German website but meh …) 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.) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 28 06:10:14 2021 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)" To: bug-guix@gnu.org Subject: Re: website: Language selection dropdown not translated 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --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-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 02 11:08:36 2021 Received: (at 51456-done) by debbugs.gnu.org; 2 Nov 2021 15:08:36 +0000 Received: from localhost ([127.0.0.1]:37795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhvOu-0005kC-Js for submit@debbugs.gnu.org; Tue, 02 Nov 2021 11:08:36 -0400 Received: from pelzflorian.de ([5.45.111.108]:49872 helo=mail.pelzflorian.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhvOt-0005k3-4S for 51456-done@debbugs.gnu.org; Tue, 02 Nov 2021 11:08:35 -0400 Received: from pelzflorian.localdomain (unknown [5.45.111.108]) by mail.pelzflorian.de (Postfix) with ESMTPSA id 64BD53606B4 for <51456-done@debbugs.gnu.org>; Tue, 2 Nov 2021 16:08:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pelzflorian.de; s=mail; t=1635865713; bh=sXc1L/SH3bv+I+Qaur1jBpbzWdulI1y0FpZAsbWaAtk=; h=Date:From:To:Subject:References:In-Reply-To; b=JBQbTZe+lmRnfsI5zek/HXN6ZRVuR2nDijxwxhMBXdoPV+NG5NQ05MqbHGek8E2Eg J3MtCuHIRTkfg7nmy9Tqnxe9tqnX0dFMvgpGjh96ADA//Nd9Yk2Vu9y+iZTj03Mlg7 k35Z7BzAye/Xeh+U8EJqzFYxHq8CGlm0J/5FeLrk= Date: Tue, 2 Nov 2021 16:08:25 +0100 From: "pelzflorian (Florian Pelz)" To: 51456-done@debbugs.gnu.org Subject: Re: bug#51456: website: Language selection dropdown not translated Message-ID: <20211102150825.ghde3dpk5tpjmlaj@pelzflorian.localdomain> References: <20211028081340.hj2ceeagqfjay2m2@pelzflorian.localdomain> <20211028100956.iebrx6v7iommkgdn@pelzflorian.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211028100956.iebrx6v7iommkgdn@pelzflorian.localdomain> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 51456-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Thu, Oct 28, 2021 at 12:09:56PM +0200, pelzflorian (Florian Pelz) wrote: > 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? Patch pushed as f2ac98776b321755b672a8f6a1b07d4ab10fff7c. This undid some of Ludo’s 3689f95c7f197ca83fd78b4e1693c18779da8bb1 and 4d5bf8522e24e2939968dc40ab1ff9809e423ac6, but it seems the only clean solution. Regards, Florian From unknown Thu Aug 21 14:52:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 01 Dec 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator