Commit 4b95bed1 authored by Franco Fichtner's avatar Franco Fichtner

src: translation tweaks by SimonB

parent 2dcb24c5
......@@ -129,7 +129,7 @@ class PortField extends BaseField
{
$validators = parent::getValidators();
if ($this->internalValidationMessage == null) {
$msg = "please specify a valid portnumber (1-65535) or name (" . implode(",", self::$wellknownservices) .
$msg = "please specify a valid port number (1-65535) or name (" . implode(",", self::$wellknownservices) .
")";
} else {
$msg = $this->internalValidationMessage;
......
......@@ -232,7 +232,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$natent['target'] = $pconfig['targetip'];
}
// handle fields containing portnumbers
// handle fields containing port numbers
if (in_array($pconfig['protocol'], explode(" ", "any tcp udp tcp/udp"))) {
if (isset($pconfig['staticnatport']) && empty($pconfig['nonat'])) {
$natent['staticnatport'] = true;
......
......@@ -93,7 +93,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors[] = gettext("A valid IP address must be specified, or # for an exclusion or ! to not forward at all.");
}
if (!empty($pconfig['port']) && !is_port($pconfig['port'])) {
$input_errors[] = gettext("A valid portnumber must be specified.");
$input_errors[] = gettext("A valid port number must be specified.");
}
if (!empty($pconfig['dnssrcip']) && !in_array($pconfig['dnssrcip'], get_configured_ip_addresses())) {
$input_errors[] = gettext("An interface IP address must be specified for the DNS query source.");
......
......@@ -437,7 +437,7 @@ SureGPS = #Sure Electronics SKG16B
<input name="noselect" type="checkbox" id="gpsselect" <?=!empty($pconfig['noselect']) ? " checked=\"checked\"" : ""; ?> />
</td>
<td>
<?=gettext("NTP should not use this clock, it will be displayed for reference only(default: disabled)."); ?>
<?=gettext("NTP should not use this clock, it will be displayed for reference only (default: disabled)."); ?>
</td>
</tr>
<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