mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
Translate Proxies tabs. (#1884)
This commit is contained in:
parent
3765909351
commit
bd1f1c266c
@ -53,7 +53,7 @@ class ControllerBase extends ControllerRoot
|
||||
}
|
||||
$tab = array();
|
||||
$tab[] = $node->attributes()->id;
|
||||
$tab[] = $node->attributes()->description;
|
||||
$tab[] = gettext((string)$node->attributes()->description);
|
||||
if (isset($node->subtab)) {
|
||||
$tab["subtabs"] = $this->parseFormNode($node);
|
||||
} else {
|
||||
@ -64,7 +64,7 @@ class ControllerBase extends ControllerRoot
|
||||
case "subtab":
|
||||
$subtab = array();
|
||||
$subtab[] = $node->attributes()->id;
|
||||
$subtab[] = $node->attributes()->description;
|
||||
$subtab[] = gettext((string)$node->attributes()->description);
|
||||
$subtab[] = $this->parseFormNode($node);
|
||||
$result[] = $subtab;
|
||||
break;
|
||||
@ -76,12 +76,7 @@ class ControllerBase extends ControllerRoot
|
||||
case "hint":
|
||||
case "label":
|
||||
// translate text items if gettext is enabled
|
||||
if (function_exists("gettext")) {
|
||||
$result[$key] = gettext((string)$node);
|
||||
} else {
|
||||
$result[$key] = (string)$node;
|
||||
}
|
||||
|
||||
$result[$key] = gettext((string)$node);
|
||||
break;
|
||||
default:
|
||||
// default behavior, copy in value as key/value data
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user