Commit 920d0fc7 authored by Franco Fichtner's avatar Franco Fichtner

Merge pull request #979 from fabianfrz/translation

some cleanup and translation
parents ffc17035 123e68c3
......@@ -55,17 +55,17 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
<tr>
<th></th>
<th colspan="3">
<?=gettext("Pool: ");?> <?=$pool;?>
<?=gettext("usage: ");?> <?=$pool_data['usage'];?>
<?=gettext("online: ");?> <?=$pool_data['online'];?>
<?= gettext("Pool:") ?> <?= $pool ?>
<?= gettext("Usage:") ?> <?= $pool_data['usage'] ?>
<?= gettext("Online:") ?> <?= $pool_data['online'] ?>
</th>
<th></th>
</tr>
<tr>
<th></th>
<th><?=gettext("User");?></th>
<th><?=gettext("Host");?></th>
<th><?=gettext("Status");?></th>
<th><?= gettext("User") ?></th>
<th><?= gettext("Host") ?></th>
<th><?= gettext("Status") ?></th>
<th></th>
</tr>
</thead>
......@@ -76,11 +76,11 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
foreach ($pool_data['items'] as $lease): ?>
<tr>
<td></td>
<td><?=htmlspecialchars($lease['user']);?></td>
<td><?=htmlspecialchars($lease['address']);?></td>
<td><?= htmlspecialchars($lease['user']) ?></td>
<td><?= htmlspecialchars($lease['address']) ?></td>
<td>
<span class='glyphicon glyphicon-transfer text-<?=$lease['status'] == 'online' ? "success" : "danger";?>'></span>
(<?=htmlspecialchars($lease['status']);?>)
<span class='glyphicon glyphicon-transfer text-<?= $lease['status'] == 'online' ? "success" : "danger" ?>'></span>
(<?= htmlspecialchars($lease['status']) ?>)
</td>
<td></td>
</tr>
......@@ -90,7 +90,7 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
<tr>
<td></td>
<td colspan="3">
<?=gettext("No leases from this pool yet.");?>
<?= gettext("No leases from this pool yet.") ?>
</td>
<td></td>
</tr>
......@@ -109,7 +109,7 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
<table class="table table-striped">
<thead>
<tr>
<th><?=gettext("No IPsec pools.");?></th>
<th><?= gettext("No IPsec pools.") ?></th>
</tr>
</thead>
</table>
......
......@@ -1849,7 +1849,7 @@ include("head.inc");
endforeach;
endif;?>
</select>
<button type="button" class="btn btn-sm" id="btn_show_add_gateway" title="<?=gettext("add a new one.");?>" data-toggle="tooltip"><span class="glyphicon glyphicon-plus"></span></button>
<button type="button" class="btn btn-sm" id="btn_show_add_gateway" title="<?=gettext("Add a new one.");?>" data-toggle="tooltip"><span class="glyphicon glyphicon-plus"></span></button>
<div class="hidden" id="addgateway">
<br/>
<table class="table table-striped table-condensed">
......@@ -1888,7 +1888,7 @@ include("head.inc");
<div class="hidden" for="help_for_gateway">
<?=gettext("If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the link above."); ?><br />
<?=gettext("On local LANs the upstream gateway should be \"none\"."); ?>
<p><strong><?=gettext("NOTE:"); ?></strong> <?=gettext("You can manage Gateways"); ?> <a target='_blank' href='system_gateways.php'><?=gettext("here"); ?></a>.</p>
<p><?= sprintf(gettext("You can manage Gateways %shere%s."),'<a target="_blank" href="system_gateways.php">','</a>') ?></p>
</div>
</td>
</tr>
......@@ -1999,7 +1999,7 @@ include("head.inc");
</label>
</div>
<div class="hidden" for="help_for_dhcpprotocol_timing">
<?=sprintf(gettext("The values in these fields are DHCP %sprotocol timings%s used when requesting a lease. "),'<a target="_blank" href="http://www.freebsd.org/cgi/man.cgi?query=dhclient.conf&amp;sektion=5#PROTOCOL_TIMING">','</a>') ?>
<?=sprintf(gettext("The values in these fields are DHCP %sprotocol timings%s used when requesting a lease."),'<a target="_blank" href="http://www.freebsd.org/cgi/man.cgi?query=dhclient.conf&amp;sektion=5#PROTOCOL_TIMING">','</a>') ?>
</div>
</td>
</tr>
......@@ -2013,23 +2013,23 @@ include("head.inc");
<?=gettext("Send Options"); ?><br />
<input name="adv_dhcp_send_options" type="text" id="adv_dhcp_send_options" value="<?=$pconfig['adv_dhcp_send_options'];?>" />
<div class="hidden" for="help_for_dhcp_lease_requirements_and_requests">
<?=gettext("The values in this field are DHCP options to be sent when requesting a DHCP lease. [option declaration [, ...]] <br />" .
<?=gettext("The values in this field are DHCP options to be sent when requesting a DHCP lease. [option declaration [, ...]] <br />" .
"Value Substitutions: {interface}, {hostname}, {mac_addr_asciiCD}, {mac_addr_hexCD} <br />" .
"Where C is U(pper) or L(ower) Case, and D is \" :-.\" Delimiter (space, colon, hyphen, or period) (omitted for none). <br />" .
"Some ISPs may require certain options be or not be sent. "); ?>
"Some ISPs may require certain options be or not be sent."); ?>
</div>
<hr/>
<?=gettext("Request Options");?>
<input name="adv_dhcp_request_options" type="text" id="adv_dhcp_request_options" value="<?=$pconfig['adv_dhcp_request_options'];?>" />
<div class="hidden" for="help_for_dhcp_lease_requirements_and_requests">
<?=gettext("The values in this field are DHCP option 55 to be sent when requesting a DHCP lease. [option [, ...]] <br />" .
"Some ISPs may require certain options be or not be requested. "); ?>
<?=gettext("The values in this field are DHCP option 55 to be sent when requesting a DHCP lease. [option [, ...]] <br />" .
"Some ISPs may require certain options be or not be requested."); ?>
</div>
<hr/>
<?=gettext("Require Options");?>
<input name="adv_dhcp_required_options" type="text" id="adv_dhcp_required_options" value="<?=htmlspecialchars($pconfig['adv_dhcp_required_options']);?>" />
<div class="hidden" for="help_for_dhcp_lease_requirements_and_requests">
<?=gettext("The values in this field are DHCP options required by the client when requesting a DHCP lease. [option [, ...]] "); ?>
<?=gettext("The values in this field are DHCP options required by the client when requesting a DHCP lease. [option [, ...]]"); ?>
</div>
</td>
</tr>
......@@ -2038,7 +2038,7 @@ include("head.inc");
<td>
<input name="adv_dhcp_option_modifiers" type="text" id="adv_dhcp_option_modifiers" value="<?=$pconfig['adv_dhcp_option_modifiers'];?>" />
<div class="hidden" for="help_for_dhcp_option_modifiers">
<?=gettext("The values in this field are DHCP option modifiers applied to obtained DHCP lease. [modifier option declaration [, ...]] <br /> " .
<?=gettext("The values in this field are DHCP option modifiers applied to obtained DHCP lease. [modifier option declaration [, ...]] <br />" .
"modifiers: (default, supersede, prepend, append)"); ?><br/>
<a target="FreeBSD_DHCP" href="http://www.freebsd.org/cgi/man.cgi?query=dhcp-options&amp;sektion=5"><?=gettext("FreeBSD manual");?></a>
</div>
......@@ -2052,7 +2052,7 @@ include("head.inc");
<?=gettext("The value in this field is the full absolute path to a DHCP client configuration file. [/[dirname/[.../]]filename[.ext]] <br /> " .
"Value Substitutions in Config File: {interface}, {hostname}, {mac_addr_asciiCD}, {mac_addr_hexCD} <br />" .
"Where C is U(pper) or L(ower) Case, and D is \" :-.\" Delimiter (space, colon, hyphen, or period) (omitted for none). <br />" .
"Some ISPs may require certain options be or not be sent. "); ?>
"Some ISPs may require certain options be or not be sent."); ?>
<a target="FreeBSD_DHCP" href="http://www.freebsd.org/cgi/man.cgi?query=dhclient.conf&amp;sektion=5"><?=gettext("FreeBSD manual");?></a>
</div>
</td>
......@@ -2359,11 +2359,11 @@ include("head.inc");
endforeach;
endif;?>
</select>
<button type="button" class="btn btn-sm" id="btn_show_add_gatewayv6" title="<?=gettext("add a new one.");?>" data-toggle="tooltip"><span class="glyphicon glyphicon-plus"></span></button>
<button type="button" class="btn btn-sm" id="btn_show_add_gatewayv6" title="<?=gettext("Add a new one.");?>" data-toggle="tooltip"><span class="glyphicon glyphicon-plus"></span></button>
<div class="hidden" for="help_for_gatewayv6">
<?=gettext("If this interface is an Internet connection, select an existing Gateway from the list or add a new one using the link above."); ?><br />
<?=gettext("On local LANs the upstream gateway should be \"none\"."); ?>
<p><strong><?=gettext("NOTE:"); ?></strong> <?=gettext("You can manage Gateways"); ?> <a target='_blank' href='system_gateways.php'><?=gettext("here"); ?></a>.</p>
<?=gettext('On local LANs the upstream gateway should be "none".'); ?>
<p><?= sprintf(gettext("You can manage Gateways %shere%s."),'<a target="_blank" href="system_gateways.php">','</a>') ?></p>
</div>
<div class="hidden" id="addgatewayv6">
<br/>
......
......@@ -78,7 +78,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
for ($i=0; isset($config['load_balancer']['virtual_server'][$i]); $i++) {
if (($pconfig['name'] == $config['load_balancer']['virtual_server'][$i]['name']) && ($i != $id)) {
$input_errors[] = gettext("This virtual server name has already been used. Virtual server names must be unique.");
$input_errors[] = gettext("This virtual server name has already been used. Virtual server names must be unique.");
}
}
......@@ -191,7 +191,7 @@ include("head.inc");
<table class="table table-striped opnsense_standard_table_form">
<tr>
<td width="22%">
<strong><?=gettext("Add/edit - Virtual Server entry"); ?></strong>
<strong><?=gettext("Add/edit - Virtual Server entry"); ?></strong>
</td>
<td width="78%" align="right">
<small><?=gettext("full help"); ?> </small>
......@@ -215,7 +215,7 @@ include("head.inc");
<td>
<input type="text" id="ipadd" name="ipaddr" value="<?=$pconfig['ipaddr'];?>" />
<div class="hidden" for="help_for_ipaddr">
<?=gettext("This is normally the WAN IP address that you would like the server to listen on. All connections to this IP and port will be forwarded to the pool cluster."); ?>
<?=gettext("This is normally the WAN IP address that you would like the server to listen on. All connections to this IP and port will be forwarded to the pool cluster."); ?>
<br /><?=gettext("You may also specify a host alias listed in Firewall -&gt; Aliases here."); ?>
</div>
</td>
......@@ -225,7 +225,7 @@ include("head.inc");
<td>
<input type="text" name="port" id="port" value="<?=$pconfig['port'];?>" />
<div class="hidden" for="help_for_port">
<?=gettext("This is the port that the clients will connect to. All connections to this port will be forwarded to the pool cluster."); ?>
<?=gettext("This is the port that the clients will connect to. All connections to this port will be forwarded to the pool cluster."); ?>
<br /><?=gettext("If left blank, listening ports from the pool will be used."); ?>
<br /><?=gettext("You may also specify a port alias listed in Firewall -&gt; Aliases here."); ?>
</div>
......
......@@ -140,7 +140,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pool = $_GET['pool'];
}
} else {
$savemsg = gettext("The DHCP Server can only be enabled on interfaces configured with static IP addresses") . ".<br/><br/>" . gettext("Only interfaces configured with a static IP will be shown") . ".";
$savemsg = gettext("The DHCP Server can only be enabled on interfaces configured with static IP addresses.") . "<br/><br/>" . gettext("Only interfaces configured with a static IP will be shown.");
}
/* If no interface is provided, choose first one from interfaces */
......@@ -708,7 +708,7 @@ include("head.inc");
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td>
<td>
<input name="enable" id="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> />
<strong><?php printf(gettext("Enable DHCP server on " . "%s " ."interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong>
<strong><?php printf(gettext("Enable DHCP server on the %s interface"),!empty($config['interfaces'][$if]['descr']) ? htmlspecialchars($config['interfaces'][$if]['descr']) : strtoupper($if));?></strong>
</td>
</tr>
<?php
......@@ -729,7 +729,7 @@ include("head.inc");
<td>
<input name="denyunknown" type="checkbox" value="yes" <?=!empty($pconfig['denyunknown']) ? "checked=\"checked\"" : ""; ?> />
<div class="hidden" for="help_for_denyunknown">
<?=gettext("If this is checked, only the clients defined below will get DHCP leases from this server. ");?>
<?=gettext("If this is checked, only the clients defined below will get DHCP leases from this server.");?>
</div>
</td>
</tr>
......@@ -843,7 +843,7 @@ include("head.inc");
<td>
<input name="gateway" type="text" class="form-control host" value="<?=$pconfig['gateway'];?>" />
<div class="hidden" for="help_for_gateway">
<?=gettext("The default is to use the IP on this interface of the firewall as the gateway. Specify an alternate gateway here if this is not the correct gateway for your network. Type \"none\" for no gateway assignment.");?>
<?=gettext('The default is to use the IP on this interface of the firewall as the gateway. Specify an alternate gateway here if this is not the correct gateway for your network. Type "none" for no gateway assignment.');?>
</div>
</td>
</tr>
......@@ -861,16 +861,16 @@ include("head.inc");
<td>
<input name="domainsearchlist" type="text" id="domainsearchlist" value="<?=$pconfig['domainsearchlist'];?>" />
<div class="hidden" for="help_for_domainsearchlist">
<?=gettext("The DHCP server can optionally provide a domain search list. Use the semicolon character as separator ");?>
<?=gettext("The DHCP server can optionally provide a domain search list. Use the semicolon character as separator.");?>
</div>
</td>
</tr>
<tr>
<td><a id="help_for_defaultleasetime" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Default lease time");?> (<?=gettext("seconds");?>)</td>
<td><a id="help_for_defaultleasetime" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Default lease time (seconds)")?></td>
<td>
<input name="defaultleasetime" type="text" id="defaultleasetime" value="<?=$pconfig['defaultleasetime'];?>" />
<div class="hidden" for="help_for_defaultleasetime">
<?=gettext("This is used for clients that do not ask for a specific " . "expiration time."); ?><br />
<?=gettext("This is used for clients that do not ask for a specific expiration time."); ?><br />
<?=gettext("The default is 7200 seconds.");?>
</div>
</td>
......@@ -880,7 +880,7 @@ include("head.inc");
<td>
<input name="maxleasetime" type="text" id="maxleasetime" value="<?=$pconfig['maxleasetime'];?>" />
<div class="hidden" for="help_for_maxleasetime">
<?=gettext("This is the maximum lease time for clients that ask"." for a specific expiration time."); ?><br />
<?=gettext("This is the maximum lease time for clients that ask for a specific expiration time."); ?><br />
<?=gettext("The default is 86400 seconds.");?>
</div>
</td>
......@@ -892,7 +892,7 @@ include("head.inc");
<td>
<input name="failover_peerip" type="text" class="form-control host" id="failover_peerip" value="<?=$pconfig['failover_peerip'];?>" />
<div class="hidden" for="help_for_failover_peerip">
<?=gettext("Leave blank to disable. Enter the interface IP address of the other machine. Machines must be using CARP. Interface's advskew determines whether the DHCPd process is Primary or Secondary. Ensure one machine's advskew<20 (and the other is >20).");?>
<?=gettext("Leave blank to disable. Enter the interface IP address of the other machine. Machines must be using CARP. Interface's advskew determines whether the DHCPd process is Primary or Secondary. Ensure one machine's advskew<20 (and the other is >20).");?>
</div>
</td>
</tr>
......
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