Commit 27b4d61b authored by Ad Schellevis's avatar Ad Schellevis

(mvc) gettext some defaults, closes https://github.com/opnsense/core/issues/727

parent 394ad989
......@@ -135,7 +135,7 @@ class AuthenticationServerField extends BaseField
$result = array();
// if authentication server is not required and single, add empty option
if (!$this->internalIsRequired && !$this->internalMultiSelect) {
$result[""] = array("value"=>"none", "selected" => 0);
$result[""] = array("value"=>gettext("none"), "selected" => 0);
}
// explode authentication servers
......
......@@ -90,7 +90,7 @@ class CertificateField extends BaseField
$result = array ();
// if certificate is not required, add empty option
if (!$this->internalIsRequired) {
$result[""] = array("value"=>"none", "selected" => 0);
$result[""] = array("value" => gettext("none"), "selected" => 0);
}
foreach (self::$internalOptionList as $optKey => $optValue) {
if ($optKey == $this->internalValue) {
......@@ -98,7 +98,7 @@ class CertificateField extends BaseField
} else {
$selected = 0;
}
$result[$optKey] = array("value"=>$optValue, "selected" => $selected);
$result[$optKey] = array("value" => $optValue, "selected" => $selected);
}
return $result;
......
......@@ -128,7 +128,7 @@ class ConfigdActionsField extends BaseField
$result = array();
// if interface is not required, add empty option
if (!$this->internalIsRequired) {
$result[""] = array("value"=>"none", "selected" => 0);
$result[""] = array("value" => gettext("none"), "selected" => 0);
}
foreach (self::$internalOptionList[$this->internalCacheKey] as $optKey => $optValue) {
......@@ -137,7 +137,7 @@ class ConfigdActionsField extends BaseField
} else {
$selected = 0;
}
$result[$optKey] = array("value"=>$optValue, "selected" => $selected);
$result[$optKey] = array("value" => $optValue, "selected" => $selected);
}
......
......@@ -141,7 +141,7 @@ class InterfaceField extends BaseField
$result = array();
// if interface is not required and single, add empty option
if (!$this->internalIsRequired && !$this->internalMultiSelect) {
$result[""] = array("value"=>"none", "selected" => 0);
$result[""] = array("value" => gettext("none"), "selected" => 0);
}
// explode interfaces
......@@ -152,7 +152,7 @@ class InterfaceField extends BaseField
} else {
$selected = 0;
}
$result[$optKey] = array("value"=>$optValue, "selected" => $selected);
$result[$optKey] = array("value" => $optValue, "selected" => $selected);
}
return $result;
......
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