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