From patchwork Wed Apr 6 13:43:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leo-Andres Hofmann X-Patchwork-Id: 5452 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4KYQjC00vTz3x1b for ; Wed, 6 Apr 2022 13:44:14 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4KYQj972CFzZ5; Wed, 6 Apr 2022 13:44:13 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4KYQj96c1lz2yZf; Wed, 6 Apr 2022 13:44:13 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4KYQj90DsLz2xks for ; Wed, 6 Apr 2022 13:44:13 +0000 (UTC) Received: from arche.uberspace.de (arche.uberspace.de [185.26.156.147]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4KYQj82Mytz3D for ; Wed, 6 Apr 2022 13:44:12 +0000 (UTC) Received: (qmail 20781 invoked by uid 990); 6 Apr 2022 13:44:11 -0000 From: Leo-Andres Hofmann To: development@lists.ipfire.org Subject: [PATCH] header.pl: Add translation to DHCP leases table Date: Wed, 6 Apr 2022 15:43:57 +0200 Message-Id: <20220406134357.130-1-hofmann@leo-andres.de> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 X-Rspamd-Bar: - X-Rspamd-Report: MID_CONTAINS_FROM(1) MIME_HTML_ONLY(0.2) BAYES_HAM(-3) X-Rspamd-Score: -1.8 Received: from unknown (HELO unkown) (::1) by arche.uberspace.de (Haraka/2.8.28) with ESMTPSA; Wed, 06 Apr 2022 15:44:11 +0200 ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1649252652; a=rsa-sha256; cv=none; b=Frs5jKtN42oIeNvACSp6esZ9gSQVwALl3QusAcjxJAoRAVr9YDemhzo+bTGK6qwQjPAF/6 Vmn5ub/6ry09EVE6e7N3kLZXEKlhJlo4XCZmSIX8z7LodTGh+153FEoqe/KkVQm6DA7jJQ WzxwpvSAhX1goNpFnFQwUuds8wQB4ui24B8tUKi3MZlqYyfuSGE4YOmQlNVL0kNOVpy5Fy ls4MNTMZQd+8MSCWvtVCGmseKJIJLHd+vcLfAoJzzvySNWoESz/p+ojVuCTnD/mxexO/BN SzZxLvr815sQyl4LdWvmuiXjG20auNkFrjANdYl85+MDcALWitS3Z7L8Z/gBjw== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=none; dmarc=pass (policy=quarantine) header.from=leo-andres.de; spf=pass (mail01.ipfire.org: domain of hofmann@leo-andres.de designates 185.26.156.147 as permitted sender) smtp.mailfrom=hofmann@leo-andres.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1649252652; h=from:from: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; bh=s6oYTHQ1DO1aZmoaVguxLBvPi9b9Os2jYEry8JCjxbw=; b=TMLZkY91PsFI2GknEBgIL+yVQK4cbyWdXQqTVmAbj/LU2ieMoQa5MoaLkgw638kICbyltS VcvCpV2Z7Sja6um8K47rKazPCc6761kma22O5L2tspLMCmHu3N87bMPPIQMUlE3eZt1JQk 6S42nN7YulGZlA53U/7Q/t6n6jQyx++yywDZHdmikdXQK40lddAoU2hU/qPszEuySYJgRJ ZuN9K1GytFJDsbWXmuwAqUV7VG/30lRRBaXj2sTYk3UIMDv4dayPMoY7hPD3aM1Iftjr1P marcZOBordNPxmVBuUdzDp41gfqsgyzT4/X+OVft4P1NVIzOKD4L2uI2ptDNgA== X-Rspamd-Queue-Id: 4KYQj82Mytz3D X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-3.54 / 11.00]; BAYES_HAM(-2.99)[99.94%]; MID_CONTAINS_FROM(1.00)[]; SPF_REPUTATION_HAM(-0.85)[-0.85284036141121]; NEURAL_HAM(-0.70)[-0.695]; DMARC_POLICY_ALLOW(-0.50)[leo-andres.de,quarantine]; MX_INVALID(0.50)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_HTML_ONLY(0.20)[]; IP_REPUTATION_HAM(-0.01)[asn: 205766(0.00), country: DE(-0.01), ip: 185.26.156.147(0.00)]; MIME_TRACE(0.00)[0:~]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:205766, ipnet:185.26.156.0/24, country:DE]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[185.26.156.147:from]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; ARC_NA(0.00)[] Authentication-Results: mail01.ipfire.org; dkim=none; dmarc=pass (policy=quarantine) header.from=leo-andres.de; spf=pass (mail01.ipfire.org: domain of hofmann@leo-andres.de designates 185.26.156.147 as permitted sender) smtp.mailfrom=hofmann@leo-andres.de X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Leo-Andres Hofmann Reviewed-by: Peter Müller --- config/cfgroot/header.pl | 12 ++++++------ langs/de/cgi-bin/de.pl | 1 + langs/en/cgi-bin/en.pl | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/config/cfgroot/header.pl b/config/cfgroot/header.pl index e97f90d67..5ddea348e 100644 --- a/config/cfgroot/header.pl +++ b/config/cfgroot/header.pl @@ -381,15 +381,15 @@ sub CheckSortOrder { sub PrintActualLeases { - &openbox('100%', 'left', $tr{'current dynamic leases'}); + &openbox('100%', 'left', $Lang::tr{'current dynamic leases'}); print < -$tr{'ip address'} -$tr{'mac address'} -$tr{'hostname'} -$tr{'lease expires'} (local time d/m/y) -Add to fix leases +$Lang::tr{'ip address'} +$Lang::tr{'mac address'} +$Lang::tr{'hostname'} +$Lang::tr{'lease expires'} (local time d/m/y) +$Lang::tr{'dhcp make fixed lease'} END ; diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 0be097609..fb725acc7 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -793,6 +793,7 @@ 'dhcp dns update secret' => 'Schlüssel', 'dhcp fixed lease err1' => 'Für eine feste Zuordnung müssen entweder die Hardware Adresse (MAC-Adresse) oder der Hostname oder beide eingetragen werden.', 'dhcp fixed lease help1' => 'IP Adressen können als FQDN angegeben werden.', +'dhcp make fixed lease' => 'Feste Zuordnung erzeugen', 'dhcp mode' => 'DHCP', 'dhcp server' => 'DHCP-Server', 'dhcp server disabled' => 'DHCP-Server deaktiviert. Angehalten.', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index d98422621..0c54a8ecc 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -827,6 +827,7 @@ 'dhcp dns update secret' => 'Secret', 'dhcp fixed lease err1' => 'For a fix lease you have to enter the MAC address or the hostname, or you enter both.', 'dhcp fixed lease help1' => 'IP Addresses might be entered as FQDN', +'dhcp make fixed lease' => 'Add to fix leases', 'dhcp mode' => 'DHCP', 'dhcp server' => 'DHCP Server', 'dhcp server disabled' => 'DHCP server disabled. Stopped.',