From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] optionsfw.cgi: properly translate on/off radio buttons Date: Mon, 27 Apr 2020 17:56:16 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3170119020272362087==" List-Id: --===============3170119020272362087== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable This patch also scrubs a forgotten Smoothwall comment and replaces it by our IPFire template. :-) Signed-off-by: Peter M=C3=BCller --- html/cgi-bin/optionsfw.cgi | 84 +++++++++++++++++++++++++-------------------= -- 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/html/cgi-bin/optionsfw.cgi b/html/cgi-bin/optionsfw.cgi index 1ab3c7d79..47aba59cb 100644 --- a/html/cgi-bin/optionsfw.cgi +++ b/html/cgi-bin/optionsfw.cgi @@ -1,16 +1,24 @@ #!/usr/bin/perl -# -# SmoothWall CGIs -# -# This code is distributed under the terms of the GPL -# -# (c) The SmoothWall Team -# -# Copyright (C) 01-02-2002 Graham Smith -# -# $Id: optionsfw.cgi,v 1.1.2.10 2005/10/03 00:34:10 gespinasse Exp $ -# -# +############################################################################= ### +# = # +# IPFire.org - A linux based firewall = # +# Copyright (C) 2014-2020 IPFire Team = # +# = # +# This program is free software: you can redistribute it and/or modify = # +# it under the terms of the GNU General Public License as published by = # +# the Free Software Foundation, either version 3 of the License, or = # +# (at your option) any later version. = # +# = # +# This program is distributed in the hope that it will be useful, = # +# but WITHOUT ANY WARRANTY; without even the implied warranty of = # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the = # +# GNU General Public License for more details. = # +# = # +# You should have received a copy of the GNU General Public License = # +# along with this program. If not, see . = # +# = # +############################################################################= ### + # enable only the following on debugging purpose #use warnings; #use CGI::Carp 'fatalsToBrowser'; @@ -206,41 +214,41 @@ END =20 - - - - =09 - -on / - off -<= td align=3D'left'>on / - off + + + + + +$Lang::tr{'on'} / + $Lang::tr{'off'} +<= td align=3D'left'>$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang:= :tr{'fw logging'}
$Lang::tr{'drop newnotsyn'}on / - off
$Lang::tr{'drop input'}on / - off
$Lang::tr{'drop forward'}on / - off
$Lang::tr{'drop outgoing'}on / - off
$Lang::tr{'drop portscan'}on / - off
$Lang::tr{'drop wirelessinput'}
$Lang::tr{'drop wirelessforward'}
$Lang::tr{'drop newnotsyn'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop input'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop forward'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop outgoing'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop portscan'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop wirelessinput'}
$Lang::tr{'drop wirelessforward'}

=20 - - + +
$Lang:= :tr{'fw blue'}
$Lang::tr{'drop proxy'}on / - off
$Lang::tr{'drop samba'}on / - off
$Lang::tr{'drop proxy'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'drop samba'}$Lang::tr{'on'} / + $Lang::tr{'off'}

- -on / - off =09 -= -<= td align=3D'left'>on / - off = =09 + +$Lang::tr{'on'} / + $Lang::tr{'off'} += +<= td align=3D'left'>$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang:= :tr{'fw settings'}
$Lang::tr{'fw settings color'}on / - off
$Lang::tr{'fw settings remark'}
$Lang::tr{'fw settings ruletable'}on / - off
$Lang::tr{'fw settings dropdown'}
$Lang::tr{'fw settings color'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'fw settings remark'}
$Lang::tr{'fw settings ruletable'}$Lang::tr{'on'} / + $Lang::tr{'off'}
$Lang::tr{'fw settings dropdown'}
=20
--=20 2.16.4 --===============3170119020272362087==--