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 ms11 with LMTPS id WzpdMTtrE2A0agAA0tVLHw (envelope-from ) for ; Fri, 29 Jan 2021 01:56:11 +0000 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 UNXpLDtrE2BxNQAAbx9fmQ (envelope-from ) for ; Fri, 29 Jan 2021 01:56: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 1572294042F for ; Fri, 29 Jan 2021 01:56:11 +0000 (UTC) Received: from localhost ([::1]:43350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5J18-0008C5-39 for larch@yhetil.org; Thu, 28 Jan 2021 20:56:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5J10-0008BT-RU for guix-patches@gnu.org; Thu, 28 Jan 2021 20:56:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5J10-0003vq-Km for guix-patches@gnu.org; Thu, 28 Jan 2021 20:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5J10-0005DL-JZ for guix-patches@gnu.org; Thu, 28 Jan 2021 20:56:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46166] [PATCH] [website] Add link to Weblate in language menu. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 29 Jan 2021 01:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46166 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46166@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161188532219980 (code B ref -1); Fri, 29 Jan 2021 01:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2021 01:55:22 +0000 Received: from localhost ([127.0.0.1]:50694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5J0L-0005CC-P5 for submit@debbugs.gnu.org; Thu, 28 Jan 2021 20:55:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:37466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5J0K-0005C3-47 for submit@debbugs.gnu.org; Thu, 28 Jan 2021 20:55:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5J0H-00088Z-Ta for guix-patches@gnu.org; Thu, 28 Jan 2021 20:55:19 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:58338) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5J0C-0003hi-MH for guix-patches@gnu.org; Thu, 28 Jan 2021 20:55:15 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id bd5baa4b for ; Fri, 29 Jan 2021 01:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=e10 e+AWQ2wzGOchrG5W7CiWXDwADWfRSbw1dx6iKwJM=; b=V46mg1BVsoV7CPTfrA7 UFh3UVeGIOkvOwQWmTplydGY3tkatSGLYlAGm/z/h7+5ztP/BKP6xuAIM+1/yUTs K8gwdE9TEKK8SLUsuQlOlKSxKTMzktuT0YGcE/9fffrugdAh4ijNStgXS4DseXC8 pl7o8eySFegodZ0YqMeCuLkrkToRKe8JBKHrNNy/y0iA+eUVQuGT1QNxIYXIKMfW uqpNPpsMoHhjuMMfmvloCjK5RKua69t751O8+EpEIqdQO/YHYZn31/66viVxPqzk yqpeIgn6Jh7vK3k0fJnYRd9gMTxysWZGcQXgeakeCQ3KTpS31SqOaj7URWbMexlQ m7w== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 72d1f12f (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Fri, 29 Jan 2021 01:55:11 +0000 (UTC) Date: Fri, 29 Jan 2021 02:55:04 +0100 From: Julien Lepiller Message-ID: <20210129025504.51d43e4f@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_//TN8=W3olaytjNF2HXm7Fq4" Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu 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 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: 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 X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=V46mg1BV; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 1572294042F X-Spam-Score: -1.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: qHJdXzRkzALU --MP_//TN8=W3olaytjNF2HXm7Fq4 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline This patch adds a simple link "Translate" to at the bottom of the language dropdown. It goes to the website domain on weblate, so translators can immediately start working on the translation :) --MP_//TN8=W3olaytjNF2HXm7Fq4 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-website-Add-link-to-Weblate-in-language-menu.patch >From 37c8fa06c756a1e051b3ec496032bfee077cbcaa Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Fri, 29 Jan 2021 02:30:43 +0100 Subject: [PATCH] website: Add link to Weblate in language menu. * website/apps/base/templates/components.scm (navbar): Add a link to Weblate in the language dropdown. --- website/apps/base/templates/components.scm | 35 ++++++++++++---------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/website/apps/base/templates/components.scm b/website/apps/base/templates/components.scm index 44d410e..7ca76cc 100644 --- a/website/apps/base/templates/components.scm +++ b/website/apps/base/templates/components.scm @@ -430,21 +430,26 @@ manual. ;; Languages dropdown. ,(menu-dropdown #:label (locale-display-name) #:active-item active-item #:items - (map-in-order - (lambda (ietf-info) - (let ((lingua (car ietf-info)) - (code (cdr ietf-info))) - (setlocale LC_ALL (string-append lingua ".utf8")) - (let ((out (menu-item #:label (locale-display-name) - #:active-item active-item - #:url (guix-url (string-append code "/") - #:localize #f)))) - (setlocale LC_ALL "") - out))) - (sort (delete %current-lingua - ietf-tags-file-contents - (lambda (a b) (string=? a (car b)))) - (lambda (a b) string