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) {
if (document.getElementById("useaddr").value == "other") {
if (document.getElementById("useaddr_hostname").value == "") {
alert("Please specify an IP address or hostname.");
alert("<?=gettext('Please specify an IP address or hostname.') ?>'");
return;
}
useaddr = document.getElementById("useaddr_hostname").value;
......@@ -364,11 +364,11 @@ function download_begin(act, i, j) {
var conf = document.getElementById("conf").value;
if (usepass && (act.substring(0,4) == "inst")) {
if (!pass || !conf) {
alert("The password or confirm field is empty");
alert("<?=gettext('The password or confirm field is empty') ?>");
return;
}
if (pass != conf) {
alert("The password and confirm fields must match");
alert("<?=gettext('The password and confirm fields must match') ?>");
return;
}
}
......@@ -382,7 +382,7 @@ function download_begin(act, i, j) {
var proxyport = document.getElementById("proxyport").value;
if (useproxy) {
if (!proxyaddr || !proxyport) {
alert("The proxy ip and port cannot be empty");
alert("<?=gettext('The proxy ip and port cannot be empty') ?>");
return;
}
......@@ -397,15 +397,15 @@ function download_begin(act, i, j) {
var proxyconf = document.getElementById("proxyconf").value;
if (useproxypass) {
if (!proxyuser) {
alert("Please fill the proxy username and password.");
alert("<?=gettext('Please fill the proxy username and password.') ?>");
return;
}
if (!proxypass || !proxyconf) {
alert("The proxy password or confirm field is empty");
alert("<?=gettext('The proxy password or confirm field is empty') ?>");
return;
}
if (proxypass != proxyconf) {
alert("The proxy password and confirm fields must match");
alert("<?=gettext('The proxy password and confirm fields must match') ?>");
return;
}
}
......
......@@ -174,7 +174,7 @@ function download_begin(act) {
if (document.getElementById("useaddr").value == "other") {
if (document.getElementById("useaddr_hostname").value == "") {
alert("Please specify an IP address or hostname.");
alert("<?=gettext('Please specify an IP address or hostname.') ?>");
return;
}
useaddr = document.getElementById("useaddr_hostname").value;
......@@ -190,7 +190,7 @@ function download_begin(act) {
var proxyport = document.getElementById("proxyport").value;
if (useproxy) {
if (!proxyaddr || !proxyport) {
alert("The proxy ip and port cannot be empty");
alert("<?=gettext('The proxy ip and port cannot be empty') ?>");
return;
}
......@@ -205,15 +205,15 @@ function download_begin(act) {
var proxyconf = document.getElementById("proxyconf").value;
if (useproxypass) {
if (!proxyuser) {
alert("Please fill the proxy username and password.");
alert("<?=gettext('Please fill the proxy username and password.') ?>");
return;
}
if (!proxypass || !proxyconf) {
alert("The proxy password or confirm field is empty");
alert("<?=gettext('The proxy password or confirm field is empty') ?>");
return;
}
if (proxypass != proxyconf) {
alert("The proxy password and confirm fields must match");
alert("<?=gettext('The proxy password and confirm fields must match') ?>");
return;
}
}
......
......@@ -1157,14 +1157,14 @@ endif; ?>
<table border="0" cellpadding="2" cellspacing="0" summary="certificate depth">
<tr><td>
<select name="cert_depth" class="form-control">
<option value="">Do Not Check</option>
<option value=""><?=gettext('Do Not Check') ?></option>
<?php
$openvpn_cert_depths = array(
1 => "One (Client+Server)",
2 => "Two (Client+Intermediate+Server)",
3 => "Three (Client+2xIntermediate+Server)",
4 => "Four (Client+3xIntermediate+Server)",
5 => "Five (Client+4xIntermediate+Server)"
1 => gettext('One (Client+Server)'),
2 => gettext('Two (Client+Intermediate+Server)'),
3 => gettext('Three (Client+2xIntermediate+Server)'),
4 => gettext('Four (Client+3xIntermediate+Server)'),
5 => gettext('Five (Client+4xIntermediate+Server)')
);
foreach ($openvpn_cert_depths as $depth => $depthdesc) :
$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