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); ...@@ -55,17 +55,17 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
<tr> <tr>
<th></th> <th></th>
<th colspan="3"> <th colspan="3">
<?=gettext("Pool: ");?> <?=$pool;?> <?= gettext("Pool:") ?> <?= $pool ?>
<?=gettext("usage: ");?> <?=$pool_data['usage'];?> <?= gettext("Usage:") ?> <?= $pool_data['usage'] ?>
<?=gettext("online: ");?> <?=$pool_data['online'];?> <?= gettext("Online:") ?> <?= $pool_data['online'] ?>
</th> </th>
<th></th> <th></th>
</tr> </tr>
<tr> <tr>
<th></th> <th></th>
<th><?=gettext("User");?></th> <th><?= gettext("User") ?></th>
<th><?=gettext("Host");?></th> <th><?= gettext("Host") ?></th>
<th><?=gettext("Status");?></th> <th><?= gettext("Status") ?></th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -76,11 +76,11 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true); ...@@ -76,11 +76,11 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
foreach ($pool_data['items'] as $lease): ?> foreach ($pool_data['items'] as $lease): ?>
<tr> <tr>
<td></td> <td></td>
<td><?=htmlspecialchars($lease['user']);?></td> <td><?= htmlspecialchars($lease['user']) ?></td>
<td><?=htmlspecialchars($lease['address']);?></td> <td><?= htmlspecialchars($lease['address']) ?></td>
<td> <td>
<span class='glyphicon glyphicon-transfer text-<?=$lease['status'] == 'online' ? "success" : "danger";?>'></span> <span class='glyphicon glyphicon-transfer text-<?= $lease['status'] == 'online' ? "success" : "danger" ?>'></span>
(<?=htmlspecialchars($lease['status']);?>) (<?= htmlspecialchars($lease['status']) ?>)
</td> </td>
<td></td> <td></td>
</tr> </tr>
...@@ -90,7 +90,7 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true); ...@@ -90,7 +90,7 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
<tr> <tr>
<td></td> <td></td>
<td colspan="3"> <td colspan="3">
<?=gettext("No leases from this pool yet.");?> <?= gettext("No leases from this pool yet.") ?>
</td> </td>
<td></td> <td></td>
</tr> </tr>
...@@ -109,7 +109,7 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true); ...@@ -109,7 +109,7 @@ $ipsec_leases = json_decode(configd_run("ipsec list leases"), true);
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th><?=gettext("No IPsec pools.");?></th> <th><?= gettext("No IPsec pools.") ?></th>
</tr> </tr>
</thead> </thead>
</table> </table>
......
...@@ -1849,7 +1849,7 @@ include("head.inc"); ...@@ -1849,7 +1849,7 @@ include("head.inc");
endforeach; endforeach;
endif;?> endif;?>
</select> </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"> <div class="hidden" id="addgateway">
<br/> <br/>
<table class="table table-striped table-condensed"> <table class="table table-striped table-condensed">
...@@ -1888,7 +1888,7 @@ include("head.inc"); ...@@ -1888,7 +1888,7 @@ include("head.inc");
<div class="hidden" for="help_for_gateway"> <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("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\"."); ?> <?=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> </div>
</td> </td>
</tr> </tr>
...@@ -1999,7 +1999,7 @@ include("head.inc"); ...@@ -1999,7 +1999,7 @@ include("head.inc");
</label> </label>
</div> </div>
<div class="hidden" for="help_for_dhcpprotocol_timing"> <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> </div>
</td> </td>
</tr> </tr>
...@@ -2016,20 +2016,20 @@ include("head.inc"); ...@@ -2016,20 +2016,20 @@ include("head.inc");
<?=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 />" . "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 />" . "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> </div>
<hr/> <hr/>
<?=gettext("Request Options");?> <?=gettext("Request Options");?>
<input name="adv_dhcp_request_options" type="text" id="adv_dhcp_request_options" value="<?=$pconfig['adv_dhcp_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"> <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 />" . <?=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. "); ?> "Some ISPs may require certain options be or not be requested."); ?>
</div> </div>
<hr/> <hr/>
<?=gettext("Require Options");?> <?=gettext("Require Options");?>
<input name="adv_dhcp_required_options" type="text" id="adv_dhcp_required_options" value="<?=htmlspecialchars($pconfig['adv_dhcp_required_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"> <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> </div>
</td> </td>
</tr> </tr>
...@@ -2038,7 +2038,7 @@ include("head.inc"); ...@@ -2038,7 +2038,7 @@ include("head.inc");
<td> <td>
<input name="adv_dhcp_option_modifiers" type="text" id="adv_dhcp_option_modifiers" value="<?=$pconfig['adv_dhcp_option_modifiers'];?>" /> <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"> <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/> "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> <a target="FreeBSD_DHCP" href="http://www.freebsd.org/cgi/man.cgi?query=dhcp-options&amp;sektion=5"><?=gettext("FreeBSD manual");?></a>
</div> </div>
...@@ -2052,7 +2052,7 @@ include("head.inc"); ...@@ -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 /> " . <?=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 />" . "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 />" . "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> <a target="FreeBSD_DHCP" href="http://www.freebsd.org/cgi/man.cgi?query=dhclient.conf&amp;sektion=5"><?=gettext("FreeBSD manual");?></a>
</div> </div>
</td> </td>
...@@ -2359,11 +2359,11 @@ include("head.inc"); ...@@ -2359,11 +2359,11 @@ include("head.inc");
endforeach; endforeach;
endif;?> endif;?>
</select> </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"> <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("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\"."); ?> <?=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> </div>
<div class="hidden" id="addgatewayv6"> <div class="hidden" id="addgatewayv6">
<br/> <br/>
......
...@@ -140,7 +140,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -140,7 +140,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$pool = $_GET['pool']; $pool = $_GET['pool'];
} }
} else { } 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 */ /* If no interface is provided, choose first one from interfaces */
...@@ -708,7 +708,7 @@ include("head.inc"); ...@@ -708,7 +708,7 @@ include("head.inc");
<td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td> <td><i class="fa fa-info-circle text-muted"></i> <?=gettext("Enable");?> </td>
<td> <td>
<input name="enable" id="enable" type="checkbox" value="yes" <?=!empty($pconfig['enable']) ? "checked=\"checked\"" : ""; ?> /> <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> </td>
</tr> </tr>
<?php <?php
...@@ -729,7 +729,7 @@ include("head.inc"); ...@@ -729,7 +729,7 @@ include("head.inc");
<td> <td>
<input name="denyunknown" type="checkbox" value="yes" <?=!empty($pconfig['denyunknown']) ? "checked=\"checked\"" : ""; ?> /> <input name="denyunknown" type="checkbox" value="yes" <?=!empty($pconfig['denyunknown']) ? "checked=\"checked\"" : ""; ?> />
<div class="hidden" for="help_for_denyunknown"> <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> </div>
</td> </td>
</tr> </tr>
...@@ -843,7 +843,7 @@ include("head.inc"); ...@@ -843,7 +843,7 @@ include("head.inc");
<td> <td>
<input name="gateway" type="text" class="form-control host" value="<?=$pconfig['gateway'];?>" /> <input name="gateway" type="text" class="form-control host" value="<?=$pconfig['gateway'];?>" />
<div class="hidden" for="help_for_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> </div>
</td> </td>
</tr> </tr>
...@@ -861,16 +861,16 @@ include("head.inc"); ...@@ -861,16 +861,16 @@ include("head.inc");
<td> <td>
<input name="domainsearchlist" type="text" id="domainsearchlist" value="<?=$pconfig['domainsearchlist'];?>" /> <input name="domainsearchlist" type="text" id="domainsearchlist" value="<?=$pconfig['domainsearchlist'];?>" />
<div class="hidden" for="help_for_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> </div>
</td> </td>
</tr> </tr>
<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> <td>
<input name="defaultleasetime" type="text" id="defaultleasetime" value="<?=$pconfig['defaultleasetime'];?>" /> <input name="defaultleasetime" type="text" id="defaultleasetime" value="<?=$pconfig['defaultleasetime'];?>" />
<div class="hidden" for="help_for_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.");?> <?=gettext("The default is 7200 seconds.");?>
</div> </div>
</td> </td>
...@@ -880,7 +880,7 @@ include("head.inc"); ...@@ -880,7 +880,7 @@ include("head.inc");
<td> <td>
<input name="maxleasetime" type="text" id="maxleasetime" value="<?=$pconfig['maxleasetime'];?>" /> <input name="maxleasetime" type="text" id="maxleasetime" value="<?=$pconfig['maxleasetime'];?>" />
<div class="hidden" for="help_for_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.");?> <?=gettext("The default is 86400 seconds.");?>
</div> </div>
</td> </td>
......
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