From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +LvqENZbemFRugAAgWs5BA (envelope-from ) for ; Thu, 28 Oct 2021 10:14:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CL+LDNZbemGBNAAAbx9fmQ (envelope-from ) for ; Thu, 28 Oct 2021 08:14:14 +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 4F9D829A18 for ; Thu, 28 Oct 2021 10:14:13 +0200 (CEST) Received: from localhost ([::1]:46392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mg0Y8-0003j7-06 for larch@yhetil.org; Thu, 28 Oct 2021 04:14:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mg0Xy-0003iq-Na for bug-guix@gnu.org; Thu, 28 Oct 2021 04:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39728) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mg0Xy-0002rU-Ed for bug-guix@gnu.org; Thu, 28 Oct 2021 04:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mg0Xy-0003pH-7D for bug-guix@gnu.org; Thu, 28 Oct 2021 04:14: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 08:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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.163540883814685 (code B ref -1); Thu, 28 Oct 2021 08:14:02 +0000 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)" 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-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=1635408854; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1gccwGuLmixaZGWwMtfGgTzl4LZFitv0AzwvlgoGf2k=; b=W5jGSgQxpGZVUDkONfDGmYny5Q6RbbzH1vjqABC05nD5SLfQNwE5EjxTVoAswPv5ix0TWU 9SmvjakTSSDuD8Ps8ijq7KNjdgJeZp5vkxPMwDNFfXl/A0iGq0vebhTL53rCZZAQAulA+8 DgdNwrDpFPzFZfAGJsE2AByABHT8xvei7382TnKhkfjuFsfHOwSSbajRXlnOS/pEvPLrlC 7bo9xvLXmjUFrvVzkNwgXSQZ6sTWYNzEKKt2m2XJmzTQpNb5tAvt4jcPSxDxNtIdjTIOhX gkx/20cLcoXOzW6EtrR3wjcC+UTrtlbSGUe4BmVkMyURoYhpn1Jpr8EIms32KA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635408854; a=rsa-sha256; cv=none; b=fiSsiTkOl4TnksB3byXjaA4KHmpaKdZvHRpOqS3sDhB2eY5dD1A6zvhhfWNu097QUKgh0E JcCTq7Ew8CXBn37j+SMJGSCl2+dQhnG8shyTjfAMoKXT552aZCo7hNLmnsyky5ypUya9Iv 36ZVQYQf9x8zjBvY0t3CY00w/xIGA69nce1SjF36TWvERuPoH/jmRzd49DWXYyhubMGjhP 1DsIFS2fPBEeyQ+gUZpn2av3FJYU9kMpukGlBBwuq5L6QWRLSvUASNVqiSUaytT9l7lvrj d6e3VEVVkGAvVvAzjk6STEZt4hskOb5MT90Sj/HMqPRXgKOgJKrhyfsw+A1JpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=oOsvayRW; 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-Spam-Score: -1.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=mail header.b=oOsvayRW; 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: 4F9D829A18 X-Spam-Score: -1.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: xv3Usbmr35TC 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