Revision 0a8a90f7
Added by Phil Davis over 9 years ago
src/usr/local/www/services_dhcp.php | ||
---|---|---|
293 | 293 |
} |
294 | 294 |
if ($cpdata['timeout'] > $deftime) { |
295 | 295 |
$input_errors[] = sprintf(gettext( |
296 |
"The Captive Portal zone '%s' has Hard Timeout parameter set to a value bigger than Default lease time (%s)."), $cpZone, $deftime);
|
|
296 |
'The Captive Portal zone (%1$s) has Hard Timeout parameter set to a value bigger than Default lease time (%2$s).'), $cpZone, $deftime);
|
|
297 | 297 |
} |
298 | 298 |
} |
299 | 299 |
} |
... | ... | |
1134 | 1134 |
|
1135 | 1135 |
$section->addInput(new Form_StaticText( |
1136 | 1136 |
null, |
1137 |
'<div class="alert alert-info"> ' . gettext('Enter the DHCP option number and the value for each item you would like to include in the DHCP lease information. ' . |
|
1138 |
'For a list of available options please visit this ') . '<a href="http://www.iana.org/assignments/bootp-dhcp-parameters/" target="_blank">' . gettext("URL") . '</a></div>'
|
|
1137 |
'<div class="alert alert-info"> ' . gettext('Enter the DHCP option number and the value for each item you would like to include in the DHCP lease information.') . ' ' .
|
|
1138 |
sprintf(gettext('For a list of available options please visit this %1$s URL%2$s'), '<a href="http://www.iana.org/assignments/bootp-dhcp-parameters/" target="_blank">', '</a></div>')
|
|
1139 | 1139 |
)); |
1140 | 1140 |
|
1141 | 1141 |
if (!$pconfig['numberoptions']) { |
src/usr/local/www/services_dhcpv6.php | ||
---|---|---|
195 | 195 |
do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |
196 | 196 |
|
197 | 197 |
if (($_POST['prefixrange_from'] && !is_ipaddrv6($_POST['prefixrange_from']))) { |
198 |
$input_errors[] = gettext("A valid range must be specified."); |
|
198 |
$input_errors[] = gettext("A valid prefix range must be specified.");
|
|
199 | 199 |
} |
200 | 200 |
if (($_POST['prefixrange_to'] && !is_ipaddrv6($_POST['prefixrange_to']))) { |
201 | 201 |
$input_errors[] = gettext("A valid prefix range must be specified."); |
... | ... | |
878 | 878 |
?> |
879 | 879 |
<div class="infoblock blockopen"> |
880 | 880 |
<?php |
881 |
print_info_box(gettext('The DNS servers entered in ') . '<a href="system.php">' . gettext(' System: General setup') . '</a>' . |
|
882 |
gettext(' (or the ') . '<a href="services_dnsmasq.php"/>' . gettext('DNS forwarder') . '</a>, ' . gettext('if enabled) ') . |
|
883 |
gettext('will be assigned to clients by the DHCP server.') . '<br />' . |
|
884 |
gettext('The DHCP lease table can be viewed on the ') . '<a href="status_dhcpv6_leases.php">' . |
|
885 |
gettext('Status: DHCPv6 leases') . '</a>' . gettext(' page.'), |
|
886 |
'info', |
|
887 |
false); |
|
881 |
print_info_box( |
|
882 |
sprintf( |
|
883 |
gettext('The DNS servers entered in %1$sSystem: General setup%3$s (or the %2$sDNS forwarder%3$s if enabled) will be assigned to clients by the DHCP server.'), |
|
884 |
'<a href="system.php">', |
|
885 |
'<a href="services_dnsmasq.php"/>', |
|
886 |
'</a>') . |
|
887 |
'<br />' . |
|
888 |
sprintf( |
|
889 |
gettext('The DHCP lease table can be viewed on the %1$sStatus: DHCPv6 leases%2$s page.'), |
|
890 |
'<a href="status_dhcpv6_leases.php">', |
|
891 |
'</a>'), |
|
892 |
'info', |
|
893 |
false); |
|
888 | 894 |
?> |
889 | 895 |
</div> |
890 | 896 |
<div class="panel panel-default"> |
src/usr/local/www/services_dhcpv6_relay.php | ||
---|---|---|
118 | 118 |
if ($_POST['server']) { |
119 | 119 |
foreach ($_POST['server'] as $checksrv => $srv) { |
120 | 120 |
if (!is_ipaddrv6($srv[0])) { |
121 |
$input_errors[] = gettext("A valid Destination Server IPv6 address must be specified.");
|
|
121 |
$input_errors[] = gettext("A valid Destination Server IPv6 address must be specified."); |
|
122 | 122 |
} |
123 | 123 |
|
124 | 124 |
|
src/usr/local/www/services_dnsmasq.php | ||
---|---|---|
344 | 344 |
?> |
345 | 345 |
<div class="infoblock blockopen"> |
346 | 346 |
<?php |
347 |
print_info_box(sprintf("If the DNS forwarder is enabled, the DHCP". |
|
348 |
" service (if enabled) will automatically serve the LAN IP". |
|
349 |
" address as a DNS server to DHCP clients so they will use". |
|
350 |
" the forwarder. The DNS forwarder will use the DNS servers". |
|
351 |
" entered in %sSystem: General setup%s". |
|
352 |
" or those obtained via DHCP or PPP on WAN if the "Allow". |
|
353 |
" DNS server list to be overridden by DHCP/PPP on WAN"". |
|
354 |
" is checked. If you don't use that option (or if you use". |
|
355 |
" a static IP address on WAN), you must manually specify at". |
|
356 |
" least one DNS server on the %sSystem:". |
|
357 |
"General setup%s page.",'<a href="system.php">','</a>','<a href="system.php">','</a>'), 'info', false); |
|
347 |
print_info_box( |
|
348 |
sprintf( |
|
349 |
gettext('If the DNS forwarder is enabled, the DHCP service (if enabled) will automatically' . |
|
350 |
' serve the LAN IP address as a DNS server to DHCP clients so they will use the forwarder.' . |
|
351 |
' The DNS forwarder will use the DNS servers entered in %1$sSystem: General setup%3$s or' . |
|
352 |
' those obtained via DHCP or PPP on WAN if "Allow DNS server list to be overridden by DHCP/PPP on WAN" is checked.' . |
|
353 |
' If you don\'t use that option (or if you use a static IP address on WAN),' . |
|
354 |
' you must manually specify at least one DNS server on the %2$sSystem:General setup%3$s page.'), |
|
355 |
'<a href="system.php">', |
|
356 |
'<a href="system.php">', |
|
357 |
'</a>'), |
|
358 |
'info', false); |
|
358 | 359 |
?> |
359 | 360 |
</div> |
360 | 361 |
|
... | ... | |
435 | 436 |
|
436 | 437 |
<div class="infoblock blockopen"> |
437 | 438 |
<?php |
438 |
print_info_box(gettext("Entries in this section override individual results from the forwarders.") . |
|
439 |
print_info_box(gettext("Entries in this section override individual results from the forwarders.") . " " .
|
|
439 | 440 |
gettext("Use these for changing DNS results or for adding custom DNS records."), 'info', false); |
440 | 441 |
?> |
441 | 442 |
</div> |
src/usr/local/www/services_dnsmasq_domainoverride_edit.php | ||
---|---|---|
198 | 198 |
null, |
199 | 199 |
'hidden', |
200 | 200 |
$pconfig['id'] |
201 |
))->setHelp('You may enter a description here for your reference (not parsed).');
|
|
201 |
)); |
|
202 | 202 |
} |
203 | 203 |
|
204 | 204 |
$form->add($section); |
Also available in: Unified diff
Internationalize services_d*