Merge pull request #1224 from scottbedard/patch-4
Translate component group
This commit is contained in:
commit
3e95ee555f
|
|
@ -15,7 +15,7 @@ class ComponentHelpers
|
|||
* @param mixed $component The component object
|
||||
* @param boolean $addAliasProperty Determines if the Alias property should be added to the result.
|
||||
* @param boolean $returnArray Determines if the method should return an array.
|
||||
* @return string
|
||||
* @return string
|
||||
*/
|
||||
public static function getComponentsPropertyConfig($component, $addAliasProperty = true, $returnArray = false)
|
||||
{
|
||||
|
|
@ -53,7 +53,7 @@ class ComponentHelpers
|
|||
/*
|
||||
* Translate human values
|
||||
*/
|
||||
$translate = ['title', 'description', 'options'];
|
||||
$translate = ['title', 'description', 'options', 'group'];
|
||||
foreach ($property as $name => $value) {
|
||||
if (!in_array($name, $translate)) {
|
||||
continue;
|
||||
|
|
@ -100,7 +100,7 @@ class ComponentHelpers
|
|||
/**
|
||||
* Returns a component name.
|
||||
* @param mixed $component The component object
|
||||
* @return string
|
||||
* @return string
|
||||
*/
|
||||
public static function getComponentName($component)
|
||||
{
|
||||
|
|
@ -115,7 +115,7 @@ class ComponentHelpers
|
|||
/**
|
||||
* Returns a component description.
|
||||
* @param mixed $component The component object
|
||||
* @return string
|
||||
* @return string
|
||||
*/
|
||||
public static function getComponentDescription($component)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue