Commit 094ad4e8 authored by Frédéric LIETART (TheLinuxFr)'s avatar Frédéric LIETART (TheLinuxFr) Committed by Franco Fichtner
parent d37aff72
...@@ -335,7 +335,7 @@ function download_begin(act, i, j) { ...@@ -335,7 +335,7 @@ function download_begin(act, i, j) {
if (document.getElementById("useaddr").value == "other") { if (document.getElementById("useaddr").value == "other") {
if (document.getElementById("useaddr_hostname").value == "") { if (document.getElementById("useaddr_hostname").value == "") {
alert("Please specify an IP address or hostname."); alert("<?=gettext('Please specify an IP address or hostname.') ?>'");
return; return;
} }
useaddr = document.getElementById("useaddr_hostname").value; useaddr = document.getElementById("useaddr_hostname").value;
...@@ -364,11 +364,11 @@ function download_begin(act, i, j) { ...@@ -364,11 +364,11 @@ function download_begin(act, i, j) {
var conf = document.getElementById("conf").value; var conf = document.getElementById("conf").value;
if (usepass && (act.substring(0,4) == "inst")) { if (usepass && (act.substring(0,4) == "inst")) {
if (!pass || !conf) { if (!pass || !conf) {
alert("The password or confirm field is empty"); alert("<?=gettext('The password or confirm field is empty') ?>");
return; return;
} }
if (pass != conf) { if (pass != conf) {
alert("The password and confirm fields must match"); alert("<?=gettext('The password and confirm fields must match') ?>");
return; return;
} }
} }
...@@ -382,7 +382,7 @@ function download_begin(act, i, j) { ...@@ -382,7 +382,7 @@ function download_begin(act, i, j) {
var proxyport = document.getElementById("proxyport").value; var proxyport = document.getElementById("proxyport").value;
if (useproxy) { if (useproxy) {
if (!proxyaddr || !proxyport) { if (!proxyaddr || !proxyport) {
alert("The proxy ip and port cannot be empty"); alert("<?=gettext('The proxy ip and port cannot be empty') ?>");
return; return;
} }
...@@ -397,15 +397,15 @@ function download_begin(act, i, j) { ...@@ -397,15 +397,15 @@ function download_begin(act, i, j) {
var proxyconf = document.getElementById("proxyconf").value; var proxyconf = document.getElementById("proxyconf").value;
if (useproxypass) { if (useproxypass) {
if (!proxyuser) { if (!proxyuser) {
alert("Please fill the proxy username and password."); alert("<?=gettext('Please fill the proxy username and password.') ?>");
return; return;
} }
if (!proxypass || !proxyconf) { if (!proxypass || !proxyconf) {
alert("The proxy password or confirm field is empty"); alert("<?=gettext('The proxy password or confirm field is empty') ?>");
return; return;
} }
if (proxypass != proxyconf) { if (proxypass != proxyconf) {
alert("The proxy password and confirm fields must match"); alert("<?=gettext('The proxy password and confirm fields must match') ?>");
return; return;
} }
} }
......
...@@ -174,7 +174,7 @@ function download_begin(act) { ...@@ -174,7 +174,7 @@ function download_begin(act) {
if (document.getElementById("useaddr").value == "other") { if (document.getElementById("useaddr").value == "other") {
if (document.getElementById("useaddr_hostname").value == "") { if (document.getElementById("useaddr_hostname").value == "") {
alert("Please specify an IP address or hostname."); alert("<?=gettext('Please specify an IP address or hostname.') ?>");
return; return;
} }
useaddr = document.getElementById("useaddr_hostname").value; useaddr = document.getElementById("useaddr_hostname").value;
...@@ -190,7 +190,7 @@ function download_begin(act) { ...@@ -190,7 +190,7 @@ function download_begin(act) {
var proxyport = document.getElementById("proxyport").value; var proxyport = document.getElementById("proxyport").value;
if (useproxy) { if (useproxy) {
if (!proxyaddr || !proxyport) { if (!proxyaddr || !proxyport) {
alert("The proxy ip and port cannot be empty"); alert("<?=gettext('The proxy ip and port cannot be empty') ?>");
return; return;
} }
...@@ -205,15 +205,15 @@ function download_begin(act) { ...@@ -205,15 +205,15 @@ function download_begin(act) {
var proxyconf = document.getElementById("proxyconf").value; var proxyconf = document.getElementById("proxyconf").value;
if (useproxypass) { if (useproxypass) {
if (!proxyuser) { if (!proxyuser) {
alert("Please fill the proxy username and password."); alert("<?=gettext('Please fill the proxy username and password.') ?>");
return; return;
} }
if (!proxypass || !proxyconf) { if (!proxypass || !proxyconf) {
alert("The proxy password or confirm field is empty"); alert("<?=gettext('The proxy password or confirm field is empty') ?>");
return; return;
} }
if (proxypass != proxyconf) { if (proxypass != proxyconf) {
alert("The proxy password and confirm fields must match"); alert("<?=gettext('The proxy password and confirm fields must match') ?>");
return; return;
} }
} }
......
...@@ -1157,14 +1157,14 @@ endif; ?> ...@@ -1157,14 +1157,14 @@ endif; ?>
<table border="0" cellpadding="2" cellspacing="0" summary="certificate depth"> <table border="0" cellpadding="2" cellspacing="0" summary="certificate depth">
<tr><td> <tr><td>
<select name="cert_depth" class="form-control"> <select name="cert_depth" class="form-control">
<option value="">Do Not Check</option> <option value=""><?=gettext('Do Not Check') ?></option>
<?php <?php
$openvpn_cert_depths = array( $openvpn_cert_depths = array(
1 => "One (Client+Server)", 1 => gettext('One (Client+Server)'),
2 => "Two (Client+Intermediate+Server)", 2 => gettext('Two (Client+Intermediate+Server)'),
3 => "Three (Client+2xIntermediate+Server)", 3 => gettext('Three (Client+2xIntermediate+Server)'),
4 => "Four (Client+3xIntermediate+Server)", 4 => gettext('Four (Client+3xIntermediate+Server)'),
5 => "Five (Client+4xIntermediate+Server)" 5 => gettext('Five (Client+4xIntermediate+Server)')
); );
foreach ($openvpn_cert_depths as $depth => $depthdesc) : foreach ($openvpn_cert_depths as $depth => $depthdesc) :
$selected = ""; $selected = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment