From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qCCQENPQ2WakwQAAqHPOHw:P1 (envelope-from ) for ; Thu, 05 Sep 2024 15:40:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id qCCQENPQ2WakwQAAqHPOHw (envelope-from ) for ; Thu, 05 Sep 2024 17:40:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=De+nbQKm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725550803; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0S+L3oAFhOWVm+aOnBJZX/5Ew2qm+HnINSAy0mnJjTU=; b=uKGoqZixbBJ/YrngxypOhGoi60w1LbtkViIowyJTaDJyKkMTg5jaFbb51RKvKxFwh0vATX TPZ9oy4+I6ga3GXzfQcF2wW7tU70KNg8g2uJbWyVe2EvOB8qvpBZlrexDetmZb4bpiGjBq 3Yvw+xf3csusSkJPI3JofJWxZhlDr5zuyOgTHY/1+hCoLZFlDnzHgefF5bh3AAVIwW7AeY b6VaztVLI1wov3dQvM5uoAR5FceJacBxqZCbI9T8okD5nBhVYTPKsi6VgUZTCoeM2bix6q O030cRFGJHzGE1f808gONb85UPRoccU+eVkf9FeAiJnx4QjsGFnG8CltrmO2sQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725550803; a=rsa-sha256; cv=none; b=LV5Jdq8G5EeQJEirJToGCx0qEk29qLB79HXxlyePf8yeYzW0CYZleW/DWQGY+YqQGI+nad nyDbpePoRWfT8eOSx6x3ogZog8uyANe/9GbolHQ8XRibK2lkXKFDOPevE9xa4ICwd4qfmK iuU1cu9xq9F/Qwe/iNJW4+OxmyCUWNKRVY0006Mv2Aw3+sw7fSxUpE47E8sKRwfj2e6VrX nFSOUC9+AP1DlzqrhLpOhwwggCtxHQu/5WbIQco2AjuHNHhSt9CCtfitsahV7ElKPWrq3D znYCPo7xzlQLEOw1ZwNf4Dv0kKxRhTddqe4GQr1hYQzkNFPtgFL7/oLEZD6OFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=De+nbQKm; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" 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 27EB4664B2 for ; Thu, 5 Sep 2024 17:40:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smEZu-00051j-OO; Thu, 05 Sep 2024 11:39:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smEZs-00051a-CG for guix-devel@gnu.org; Thu, 05 Sep 2024 11:39:20 -0400 Received: from relay.yourmailgateway.de ([188.68.63.170]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smEZq-0008Gn-9c for guix-devel@gnu.org; Thu, 05 Sep 2024 11:39:20 -0400 Received: from mors-relay8203.netcup.net (localhost [127.0.0.1]) by mors-relay8203.netcup.net (Postfix) with ESMTPS id 4X03SM1vKLz8Zfj; Thu, 5 Sep 2024 15:39:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1725550755; bh=m31jdDs02G/Oz72Dj84uiRPjGlS4WpSxMDQ/B+aQilE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=De+nbQKmE+azqhDFq5ol0QSo4hZKxIdVocTPQBWSUJ10HzdMuCCf6dk/vH1O/tjVH bJzi/iBISA71fOwDnZyQm0bcnexp2pN5wqr9l7qR8K+MU86SgMePYjFZ3+x1B2SxLO iGMzmyQ/TRK3mtoVM6Dg3ipH4NT7Ynesy/timqITWC3n24Vw2C8Uo0n7HCa0UfUxEo rxHxwIrqIBmmTDotQw5YavaZOZVyvTuMvVS2od/dHfE9oL4FSufqtsqUw96f7hUi2N GNj4WSIGG9i3wVIKhHKjSydxcGtMeApWHiz3sWESg+IN9fdHwERC5NbLc8GjKNPwQy NLtpXo6gTmNQA== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay8203.netcup.net (Postfix) with ESMTPS id 4X03SM1Bn3z8Zfb; Thu, 5 Sep 2024 15:39:15 +0000 (UTC) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4X03SL5f8mz8sZh; Thu, 5 Sep 2024 17:39:14 +0200 (CEST) Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 6BF7C84169; Thu, 5 Sep 2024 17:39:09 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Christopher Baines Cc: guix-devel@gnu.org Subject: Re: zh-CN or zh-cn for the Guix manual URL? In-Reply-To: <874j6uw98a.fsf@cbaines.net> (Christopher Baines's message of "Thu, 05 Sep 2024 13:55:33 +0100") References: <874j6uw98a.fsf@cbaines.net> Date: Thu, 05 Sep 2024 17:39:09 +0200 Message-ID: <87bk122jqa.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 6BF7C84169 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: FLNY2VxNBA5aFfCwZDIFYcXsIDQ0jBIHuG/0KoWFauzySao/HN1OCJii Received-SPF: pass client-ip=188.68.63.170; envelope-from=pelzflorian@pelzflorian.de; helo=relay.yourmailgateway.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_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 27EB4664B2 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -8.51 X-Spam-Score: -8.51 X-TUID: h//KtkyYDv91 Hello Christopher and again thank you for the initiative to get rid of the duplicate locale in the URLs in maintenance.git. After more thought, I suggest to only temporarily keep the optional #:append-locale argument you added. The problem is that @documentlanguage in Texinfo differs from the locale sometimes. The proper fix would be to make the header URL for manual and cookbook translatable with Weblate. This would use the same translation functionality that is already used for all the links in the text below the header. diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm index 58ffbe1..cf884fc 100644 --- a/website/apps/base/templates/components.scm +++ b/website/apps/base/templates/components.scm @@ -427,7 +427,10 @@ manual. (string-append "GNU Guix Manual " (latest-guix-version) "")) #:active-item active-item - #:url (guix-url "manual/" #:append-locale #t)) + ;; TRANSLATORS: This is the stable manual link in + ;; the header bar. Please choose the English (en) + ;; manual or a more appropriate translation. + #:url (G_ (guix-url "manual/en/" #:localize #f))) (C_ "website menu" (menu-item #:label "GNU Guix Manual (latest)" #:active-item active-item I will push such a change and adapt the translations directly in the PO file, then revert your #:append-locale. Later I will put the translations on Weblate. Regards, Florian