Commit 50c1d95a authored by Fabian Franz's avatar Fabian Franz

some cleanup and translation

parent 0b635bd7
...@@ -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><strong><?=gettext("NOTE:"); ?></strong> <?= 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>
...@@ -2013,23 +2013,23 @@ include("head.inc"); ...@@ -2013,23 +2013,23 @@ include("head.inc");
<?=gettext("Send Options"); ?><br /> <?=gettext("Send Options"); ?><br />
<input name="adv_dhcp_send_options" type="text" id="adv_dhcp_send_options" value="<?=$pconfig['adv_dhcp_send_options'];?>" /> <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"> <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 />" . "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><strong><?=gettext("NOTE:"); ?></strong> <?= 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/>
......
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