VPN Checksubnets: Buttons are now Language Strings
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 13 Mar 2014 14:27:01 +0000 (15:27 +0100)
committerAlexander Marx <alexander.marx@ipfire.org>
Thu, 13 Mar 2014 14:27:01 +0000 (15:27 +0100)
html/cgi-bin/ovpnmain.cgi
html/cgi-bin/vpnmain.cgi

index c315e9e..877e09c 100644 (file)
@@ -4579,7 +4579,7 @@ END
                print "$warnmessage<br>";
                print "$Lang::tr{'fwdfw warn1'}<br>";
                &Header::closebox();
-               print"<center><form method='post'><input type='submit' name='ACTION' value='ok' style='width: 5em;'></form>";
+               print"<center><form method='post'><input type='submit' name='ACTION' value='$Lang::tr{'ok'}' style='width: 5em;'></form>";
                &Header::closepage();
                exit 0;
        }
index 8324ae7..5affdd8 100644 (file)
@@ -1410,7 +1410,7 @@ END
        if ($cgiparams{'TYPE'} eq 'net'){
                $warnmessage=&General::checksubnets('',$cgiparams{'REMOTE_SUBNET'},'ipsec');
                if ($warnmessage ne ''){
-                       $warnmessage=$Lang::tr{'remote subnet'}." ($cgiparams{'REMOTE_SUBNET'}) ".$warnmessage;
+                       $warnmessage=$Lang::tr{'remote subnet'}." ($cgiparams{'REMOTE_SUBNET'}) <br>".$warnmessage;
                }
        }
 
@@ -2616,7 +2616,7 @@ EOF
                print "$warnmessage<br>";
                print "$Lang::tr{'fwdfw warn1'}<br>";
                &Header::closebox();
-               print"<center><form method='post'><input type='submit' name='ACTION' value='ok' style='width: 5em;'></form>";
+               print"<center><form method='post'><input type='submit' name='ACTION' value='$Lang::tr{'ok'}' style='width: 5em;'></form>";
                &Header::closepage();
                exit 0;
        }